Hello Fellow Traders
Attached – Fibonaci 61.8% Retrace System for Dax 1H.
Backtest results shown are Spreadbet (@ £1 per point) with a 2 point spread.
Please BackTest over 200K bars (I have max 100K bars) and post results on here.
Please code up improvements and post on here.
Cheers
GraHal
//Author: GraHal (inspiration & thanks to Nicolas for his Fib Screener)
//Fibonacci 61.8% Retrace Auto-System for DAX 1 Hour
DEFPARAM CUMULATEORDERS = False
hh = highest[100](high)
ll = lowest[110](low)
fib618 = (hh-ll)*0.618
//GO LONG
LONGlevel618 = hh-fib618
LONGnearpercent = ABS(1-(close/LONGlevel618))*100
If Close > Average[200](close) AND LONGnearpercent < 0.004 Then
Buy 1 Contract at Market
Endif
//EXIT LONG
If LONGonmarket Then
SET TARGET PPROFIT 135
SET STOP PLOSS 60
Endif
//GO SHORT
SHORTlevel618 = ll+fib618
SHORTnearpercent = ABS(1-(close/SHORTlevel618))*100
If Close < Average[165](close) AND SHORTnearpercent < 0.004 Then
SellShort 1 Contract at Market
Endif
//EXIT SHORT
If SHORTonmarket Then
SET TARGET PPROFIT 190
SET STOP PLOSS 60
Endif
Your 100k bars optimisation of moving average periods, takeprofit and stoploss values has introduce a bias for this period. Even if the overall result is not so bad, I suggest a WF analysis with Out of Sample tests 🙂 Done with TP/SL and highest high / lowest low period in the first example (with a 200SMA for your exit conditions) and with the SMA period too in the second example attached.