Trend following – Swing trading entry, screening of VZ
Next step:
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")
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