Hi,
To gather ticks infos, I use the code provided by mql5 with the strategy tester on EURUSD, M1, quality 100% :
And that's simply the error I'm getting :
Anyone to help there ?
What is the total number of variables ticks?
//--- requesting ticks int copied=CopyTicks(_Symbol,tick_array,COPY_TICKS_ALL,0,ticks); // int ticks=?
CopyTicks() doesn't work in the Strategy Tester. Anyway it doesn't make sense to use it with the Strategy Tester.
What is the total number of variables ticks?
CopyTicks() doesn't work in the Strategy Tester. Anyway it doesn't make sense to use it with the Strategy Tester.
Is there any alternative if you wish to work with ticks ?
Work with ticks in the Strategy Tester ? There is no missed ticks there so CopyTicks is useless. If you want to work with ticks the Strategy Tester is useless, it's not real ticks but calculated ones.
The "alternative" is to work on live chart or eventually record the ticks yourself.
Work with ticks in the Strategy Tester ? There is no missed ticks there so CopyTicks is useless. If you want to work with ticks the Strategy Tester is useless, it's not real ticks but calculated ones.
The "alternative" is to work on live chart or eventually record the ticks yourself.
why can't we use copyTicks in the tester ?
i got an indicator that uses the copyTicks function of MT5 to display a line.
When used in Tester, the first few bars are completely off due to the inability to gather data previous to the current bar. If i make a simple MA, i need previous data to create the first value ! I need precise tick data to calculate my indi, i cannot do it without, with only OHLC
so what's the solution to this ? i can only hide the first few bar computation in the tester because they are not right but that's not a solution i'm totally comfortable with.
please change this, thanks
Jeff
doesn't work for me
why can't we use copyTicks in the tester ?
i got an indicator that uses the copyTicks function of MT5 to display a line.
When used in Tester, the first few bars are completely off due to the inability to gather data previous to the current bar. If i make a simple MA, i need previous data to create the first value ! I need precise tick data to calculate my indi, i cannot do it without, with only OHLC
so what's the solution to this ? i can only hide the first few bar computation in the tester because they are not right but that's not a solution i'm totally comfortable with.
please change this, thanks
Jeff
Try it before posting.
This is an obsolete thread/post, real ticks are now available in the Strategy Tester, and CopyTicks is working fine.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi,
To gather ticks infos, I use the code provided by mql5 with the strategy tester on EURUSD, M1, quality 100% :
And that's simply the error I'm getting :
Anyone to help there ?