Have dropped the ITF below, and the full strategy code following:
//RUNS ON 1HOUR TIMEFRAME
defparam cumulateorders = false
defparam preloadbars = 10000
positionsize = 8
timestart = 090000
timeend = 220000
TIMEFRAME (DAILY)
clxd, ignored, ignored, ignored, ignored, ignored, ignored, ignored, ignored, ignored, ignored, ignored, ignored, ignored, ignored = CALL "Clean SP x ML ON v2 Indicator"
TIMEFRAME (DAILY, updateonclose)
ignored, nobuy, dshortframe, dlongframe, bulltrend, DaytriggerBULL, DAYCALL, ignored, ignored, ignored,ignored, ignored, ignored, ignored, ignored = CALL "Clean SP x ML ON v2 Indicator"
TIMEFRAME (4 hour)
ignored, ignored, ignored, ignored, ignored, ignored, ignored, clx4, ignored, ignored, ignored, ignored, ignored, ignored, ignored = CALL "Clean SP x ML ON v2 Indicator"
TIMEFRAME (DEFAULT)
ignored, ignored, ignored, ignored, ignored, ignored, ignored, ignored, cp, CB1H, entry1, Rev1, BollTrig0, trendup, nodayentry = CALL "Clean SP x ML ON v2 Indicator"
golong = (close < nobuy)
//ENTRY METHOD 1
if time >= timestart and time < timeend then
IF DAYCALL and bulltrend and golong and CB1H and close > entry1 and not longonmarket then
buy positionsize contract at market
SET STOP %LOSS 1.3
SET TARGET %PROFIT 2.15
ENDIF
ENDIF
//ENTRY METHOD 2
if DAYCALL and Rev1 and BollTrig0 and trendup and not longonmarket then
buy positionsize contract at market
SET STOP %LOSS 1.3
SET TARGET %PROFIT 2.15
ENDIF
//TRAILING STOP function. WANT TO USE THIS ONE FOR METHOD 1.
trailingstart = 20 //trailing will start @trailinstart points profit
trailingstep = 6 //trailing step to move the "stoploss"
//reset the stoploss value
IF NOT ONMARKET THEN
newSL=0
ENDIF
//manage long positions
IF LONGONMARKET THEN
//first move
IF newSL=0 AND close-tradeprice(1)>=trailingstart*pipsize THEN
newSL = tradeprice(1)+trailingstep*pipsize //(minus för att pris ska bli BE på execution, eftersom både denna och den undre exekverar+6 i första rörelsen)
ENDIF
//next moves
IF newSL>0 AND close-newSL>=trailingstep*pipsize THEN
newSL = newSL+trailingstep*pipsize
ENDIF
ENDIF
//stop order to exit the positions
IF newSL>0 THEN
SELL AT newSL STOP
ENDIF
//BREAKEVEN function. WANT TO USE THIS ONE FOR METHOD 2.
once breakeven1 =1
if breakeven1 then
breakevenPC = 0.4
PointsToKeep = (tradeprice(1)*(0.032/100))
startBreakeven = tradeprice(1)*(breakevenPC/100)
if breakeven1>0 then
IF NOT ONMARKET THEN
breakevenLevel=0
ENDIF
IF LONGONMARKET AND high-tradeprice(1)>=startBreakeven*pipsize THEN
breakevenLevel = tradeprice(1)+PointsToKeep*pipsize
ENDIF
IF breakevenLevel>0 THEN
SELL AT breakevenLevel STOP
ENDIF
endif
endif
//OTHER EXITS
if longonmarket and abs(open-close)<1 and high<high[1] and positionperf>0 and high-close>2.75 then
sell at market
endif
OTD = Barindex - TradeIndex(1) > IntradayBarIndex
if longonmarket and clxd and clx4 and positionperf < 0 and OTD and not nodayentry then
sell at market
endif
Have not yet tried out the alternatives you have dropped during the day as i am on the run for a bit, but will hopefully get a few hours this evening. I appreciate the help big time, mate