- ago
He there,
I make my first steps with Wealth Lab.
I would like to run a strategy which must have a "market filter". This is when the SPX is above the EMA of 50 days. Then (and only then) the system should buy stocks as defined with the building blocks.
My only problem is, that i am not able to tell Wealth Lab, that FIRST the SPX has to been above the EMA 50 of the SPX and then buy SPX-stocks.
Is there any help.
I do pardon for my bad English!
Thanks in advance,
Sebastian
0
492
Solved
6 Replies

Reply

Bookmark

Sort
- ago
#1
Hi Sebastian,

Yes, it's definitely possible in Blocks (and of course in C# code). Please check out this topic for a how-to:

https://www.wealth-lab.com/Discussion/SMA-Trendline-on-indicator-in-building-blocks-7507
0
Glitch8
 ( 10.62% )
- ago
#2
Also look at the Qualifier Block “For N Consecutive Bars”
0
- ago
#3
Thank you Eugene and Glitch for your answers. I tried to recreate both but unfortunately neither solved my problem.
I am looking for a setting to map the following strategy:
1st condition: Only buy Dow stocks (or SPX stocks or another Index) when the Dow Jones (or SPX or another index) as an index (!!!) is above its own EMA (50) on a daily basis.
2. if condition 1 is not met, do not buy.
3. if condition 1 is met, then.... (I can map the rest beautifully with Wealth-Lab 8).
So my problem is that WL8 has to look for the SMA(50) of the underlying index as the first condition, whether the index is above or below SMA (50).
Can you guys give me a jump start on this again?
Thanks a lot in advance!!!
Sebastian
0
- ago
#4
Of course SPY as an index, it's been clear from the start. Still the answer can be gathered from the link in my Post #1. Look for Transformer indicators. Drag SmoothInd onto the "Indicator" field of a Block to build the EMA of SPY. The only missing link is I believe is to leverage the SymbolData indicator (it's not under the Transformers group) to make comparison with the smoothed SPY.

If I read you correctly this is how your condition should be set up:

0
Best Answer
- ago
#5
Dear Eugene,
I would like to express my deepest gratitude to you and your team at Wealth Lab!
I have been using WL8 in the 14-day trial version since yesterday (so I am not a paying customer yet).
My first request was answered promptly last night (around Friday noon US time). Unfortunately, I wasn't able to take the necessary steps - so I followed up again this morning (which is very early Saturday US time).
Immediately you replied to me - and quite honestly, there is no way I could have done it without your instructions today and the screenshot. Thanks for taking me by the hand!
But now I have my solution!
You are nice, capable people here!
Thank you very much - and have a nice weekend.
Mine is now filled with testing and trying WL8 ;-)))

0
- ago
#6
Sebastian, thank you for the kind words. Glad to help you and hope you discover some fruitful trading ideas during your evaluation :)
0

Reply

Bookmark

Sort