You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
The expert works on all ticks. Not on opening prices at all. In the download - test for February 8
I haven't had time to record an inbox. And I don't have an inbox working on weekends. I don't quite understand. The testing should be performed in that mode, which is used in the Expert Advisor's code. If the algorithm implies working with all ticks, it is incorrect to test "by opening prices". You are only fooling yourself.
You need to understand why the results are different in different modes. At the same time "at opening prices" is a worse result. Usually the opposite is true.
Moreover, if the Expert Advisor works "at opening prices", the test result must coincide with the result of "at all ticks". Almost coincide.
It's all about the tester's tick generator. The conditions there are ideal. E.g. entry condition: a = 1.5001. In the tester it will be 100% true, but in reality it may not. The price can jump from 1.4999 to 1.5003 per 1 tick. The condition is missed, the trade was not opened. If I'm wrong - correct me, I would be grateful.
Here is my tick test:
Opening prices:
I have provided in my Expert Advisor the switching between ticks/bars. Of course, when enabling bar opening control, testing based on ticks and bars coincides. The picture is the same as the one drawn above by opening prices.
It's the tester's tick generator. Price can jump from 1.4999 to 1.5003 per tick. The condition was missed, the trade didn't open.
Yes, it is possible. Nevertheless. I think it is inadmissible to test an Expert Advisor that works with all ticks at opening prices. And we will obtain unreliable data on large timeframes. On the contrary, if this expert works at open prices, then testing "at all ticks" is possible and necessary.....
And there is a parameter for slippage - extern int Slippage=...;
Good afternoon everyone! This question may seem naive, but it's what got me into trouble...
I have an indicator that I want to use in my Expert Advisor. Here is the chart. Here is the code.
I can't figure out how to set the condition for changing from red to green and vice versa!
And how do I set the i Custom expression to implement this transition... Please answer if you know...