Hello!
i want to make a system that mean reverting on specifick Points, so lets say DAX opens at 13 100 when DAX go up 30 Points to 13 130 i want to short or down to 13 070 (30p) i want to go long.
Can you help me with this code? many thanks!
/L
There you go:
DEFPARAM CumulateOrders = false
ONCE Distance = 30 * pipsize
IF IntraDayBarIndex = 0 THEN
OpenPrice = open
ENDIF
EntryLong = OpenPrice - Distance
EntryShort = OpenPrice + Distance
IF close <= EntryLong AND Not OnMarket THEN
BUY 1 CONTRACT AT MARKET
ENDIF
IF close >= EntryShort AND Not OnMarket THEN
SELLSHORT 1 CONTRACT AT MARKET
ENDIF
SET TARGET pPROFIT 100
SET STOP pLOSS 50