Trend following – Swing trading entry, screening of VZ
- W(Weekly tf): Screening for trend 10 vs. 20W EMA (can be optimized by 5, 10, 20, 50..).
- W(Weekly tf): Screening for price (close) crossing 20W EMA (can be optimized by 5, 10, 20..).
- D(Daily tf): Screening for MACD (close) crossing the Signal line (X-over in Up / X-under in Dn. -trends)
- Cherry picking: Copy the best results to a Hot-list that is observed in 4H + 1H charts, pending an entry trigger
- create a screener for the entry trigger in 4H+1H
- Backtesting trading system based on the trigger
Trend and VZ in W and D charts
indicator0 = ExponentialAverage(close)
indicator1 = ExponentialAverage(close)
DnTrendW = ( indicator0 < indicator1 )
UpTrendW = (indicator0 > indicator1)
//Value-Zone, price retracement (Zone-level = Indicator20)
indicator13 = ExponentialAverage(close)
VZinDnTrendW = (close >= indicator13)
VZinUpTrendW = (close <= indicator13)
//-A trending trend[W], correction[W])MACD-line crossing Signal-line[D]
indicator10 = MACDline[7,14,3](close)
indicator11 = ExponentialAverage(indicator10)
VZinUpTrendD = indicator10 >= indicator11
VZinDnTrendD = indicator10 <= indicator11
DnTrendSummary = DnTrendW AND VZinDnTrendW AND VZinDnTrendD
UpTrendSummary = UpTrendW AND VZinUpTrendW AND VZinUpTrendD
If DnTrendSummary then
myTrend = -1
myTrend = 0
If UpTrendSummary then
myTrend = 1
myTrend = 0
If mytrend = 1 then
Filter = 1
Elsif myTrend = -1 then
Filter = 1
Filter = 0
SCREENER[Filter] (myTrend AS "Lng.1|Sht.-1")
No information on this site is investment advice or a solicitation to buy or sell any financial instrument. Past performance is not indicative of future results. Trading may expose you to risk of loss greater than your deposits and is only suitable for experienced investors who have sufficient financial means to bear such risk.ProRealTime ITF files and other attachments :
Filename : download the ITF filesHow to import ITF files into ProRealTime platform?
PRC is also on YouTube, subscribe to our channel for exclusive content and tutorials
Thank you for this valuable stock screener. However, I can’t get bearish signals with the code (mytrend=-1)?
To “backtest” the signals, we could compare the actual Close with the Close when the signal occurred X bars ago in ProScreener.
Thanks for your advice, that is useful and I will study that option. I found that problem as well, and have developed it further. Are there any way that I can edit it online at this time ? (Or, alternatively how do I proceed ? )
You can send me updates through the form on the contact page: https://www.prorealcode.com/contact/
Thank you very much for your contribution!
Thank you ! Have you realised your “next step” ?
guten Tag, gibt es bereits die Aktualisierte Datei?
Gents – An update – I have been studying various trading approaches, as this one that is based on the moves in a trend, detecting triggers on the variations within. I was not able to find satisfactory repeatable and predictive outcome. As you know, here is where the money management kick in and the end-result comes form the balance between. If i may suggest a way forward, tweak the parameters on for example an instrument that by observations moves less random than often seen by forex and if successful in no less than 4 out of 10 triggers – the rest is done by money management. (I have moved over to more trend following on longer timeframes W and M to mitigate the stress of the trading “robots” as it took too much an effort to deal with it.) P