Would be interested to see if this ES/DJIA system works over a bigger time frame. It’s designed for 5 min bars. Can someone with more data please test and show the results?
cp = 4 //(default)
if high[cp] >= highest[2*cp+1](high) then
LH = 1
else
LH=0
endif
if low[cp] <= lowest[2*cp+1](low) then
LL= -1
else
LL=0
endif
if LH=1 then
hil = high[cp]
endif
if LL = -1 then
LOL=low[cp]
endif
z = hil-lol
zz = close-hil
x = zz<.1*z
//return lol coloured(255,0,0) as "Low Fractal",hil coloured(0,255,0) as "High Fractal"
a = close>hil and close[1]<hil[1]
IF NOT LongOnMarket AND a and x THEN
BUY 10 CONTRACTS AT MARKET
ENDIF
//set the stoploss
buycond = NOT longonmarket and a and x
if buycond then
set target profit .9*((z-zz))
set stop loss (z-zz)
endif
if z>60 then
set target pprofit (z-zz)/2
endif
Thanks Inertia.
Can you try 2 contracts on FTSE and DAX please?