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.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
defparamcumulateorders=false
timeframe(3000ticks,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(100ticks,updateonclose)
ifintradaybarindex=0andc0then
buy1contractatmarket
endif
set stopploss2
set targetpprofit2
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 ?
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.