Hi all
i am seting a backtest with 2 different timeframe, one on 3 000 ticks to give a trend indicator and the default one on 100 ticks.
defparam cumulateorders = false
timeframe(3000 ticks, updateonclose)
xClose = (Open+High+Low+Close)/4
if(barindex>2) then
xOpen= (xOpen[1] + xClose[1])/2
xHigh= Max(xOpen, xClose)
xLow= Min(xOpen, xClose)
endif
c0 = xclose > xopen
c1 = xclose < xopen
timeframe (100 ticks, updateonclose)
if intradaybarindex =0 and c0 then
buy 1 contract at market
endif
set stop ploss 2
set target pprofit 2
When i try to run it, i have the attached error message but i dont get it: 3000 is a multiple of 100 so 100 is a common denominator to both TF … where is the problem ?
thx for your help !!
Only time-based TF’s are allowed.
No ticks, Renko etc…
Use the correct forum, as highlighted in yellow below.
For strategies use ProOrder. I moved it.
Thank you 🙂