Only look for entries when Weekly indicator is rising
Author: mgreco19
Creation Date: 8/24/2017 3:00 PM
profile picture

mgreco19

#1
How would I code to only look for daily entries while the weekly derivative oscillator histogram or MACD Histogram is rising in value? ex. The weekly derivative oscillator for AAPL was rising from 12/9/16 to 3/10/17 and I would only look to enter trades during this time let's say if price dropped below SMA 20 to buy at market.
profile picture

Eugene

#2
There are lots of examples on the forum and in Wealth-Lab itself. Check them out:

1. WealthScript Programming Guide > Multi-Time Frame Analysis > Daily/Weekly
2. Built-in "Elder Triple Screen" system
3. Some downloadable Strategies based on multiple time frames i.e. Weekly:

RSI Trifecta
ActiveTrader 2009-04 | Crossover system filtered by Impulse system (weekly)
profile picture

mgreco19

#3
Thanks, Eugene. I took a look at the scripts and found the Elder Triple Screen helpful but I'm still doing something wrong here because trades are still triggering in the down trend. Can you let me know what I'm doing wrong here?

CODE:
Please log in to see this code.
profile picture

Eugene

#4
You're making nice progress. Your intention was to compare for equality but a couple of syntax errors has turned it into an assignment i.e. an everlasting uptrend or downtrend:

CODE:
Please log in to see this code.

CODE:
Please log in to see this code.