Trading with the trend | W+D screening of Value Zone entries

Category: Screeners By: Per Created: February 21, 2018, 9:41 AM
February 21, 2018, 9:41 AM
Screeners
6 Comments

Trend following – Swing trading entry, screening of VZ

  1. W(Weekly tf): Screening for trend 10 vs. 20W EMA (can be optimized by 5, 10, 20, 50..).
  2. W(Weekly tf): Screening for price (close) crossing 20W EMA (can be optimized by 5, 10, 20..).
  3. D(Daily tf): Screening for MACD (close) crossing the Signal line (X-over in Up / X-under in Dn. -trends)
  4. Cherry picking: Copy the best results to a Hot-list that is observed in 4H + 1H charts, pending an entry trigger

Next step:

  • create a screener for the entry trigger in 4H+1H
  • Backtesting trading system based on the trigger
TIMEFRAME(Weekly)
//
//-Indicators
indicator0 = ExponentialAverage[10](close)
indicator1 = ExponentialAverage[50](close)
//
//-Trend:
DnTrendW = ( indicator0[5] < indicator1[5] )
UpTrendW = (indicator0[5] > indicator1[5])
//
//Value-Zone, price retracement (Zone-level = Indicator20)
indicator13 = ExponentialAverage[20](close)
VZinDnTrendW = (close[0] >= indicator13[0])
VZinUpTrendW = (close[0] <= indicator13[0])
//
TIMEFRAME(Daily)
//
//-A trending trend[W], correction[W])MACD-line crossing Signal-line[D]
//
indicator10 = MACDline[7,14,3](close)
indicator11 = ExponentialAverage[3](indicator10)
VZinUpTrendD = indicator10 >= indicator11
VZinDnTrendD = indicator10 <= indicator11
//
TIMEFRAME(DEFAULT)
//
DnTrendSummary = DnTrendW AND VZinDnTrendW AND VZinDnTrendD 
UpTrendSummary = UpTrendW AND VZinUpTrendW AND VZinUpTrendD
//
//-DnTrend
//
If DnTrendSummary then
 myTrend = -1
else
 myTrend = 0
Endif
//
//-UpTrend
//
If UpTrendSummary then
 myTrend = 1
else
 myTrend = 0
Endif
//
//-Summary
//
If mytrend = 1 then
 Filter = 1
Elsif myTrend = -1 then
 Filter = 1
else 
 Filter = 0
endif

SCREENER[Filter] (myTrend AS "Lng.1|Sht.-1")

Download
Filename: Trading-with-the-trend.itf
Downloads: 493
Per Average
PRT Trading trading by IG. I am following trends, trading with the trend, trend following or a swing with the trend. I am developing coding skills and back-test new strategies to evaluate strategies.
Author’s Profile

Comments

Logo Logo
Loading...