[WARNING CLOSED!] Any newbie question, so as not to clutter up the forum. Professionals, don't go by. Can't go anywhere without you. - page 963
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
you have to find another way to analyse, graphical functions are very slow
I removed everything as you said and the speed has increased by 60-70%, but now it is more difficult to see which order is where on the chart. And I have not yet applied Igor's advice with if.
If will not give you much performance, just a couple of calculations. Tell us exactly what you want to put on the graph - we can think how to do it without performance loss
if(NormalizeDouble(Bid,Digits)<=NormalizeDouble(TL_TPdown[B],Digits)
? A couple of cycles? The question is not even about the numerical number, but about the optimization of calculations - there is information about the full calculation of conditions in mql4 - it has been repeatedly written on the forum
in mql5, a reduced calculation of conditions has already been implemented.
If won't give you much performance, just a couple of clock cycles. Tell me exactly what you want to put on the graph, we can think about how to do it without losing performance
if(NormalizeDouble(Bid,Digits)<=NormalizeDouble(TL_TPdown[B],Digits)
? a couple of cycles? The question is not even about the numerical number, but about the optimization of calculations - there is information about full calculation of conditions in mql4 - it has been repeatedly written on the forum
in mql5 a reduced calculation of conditions is already implemented
yes it is, I see, but on the priority should first decide what prevents the expert to test...
well, if by priority, it is enough to make a copy of the EA - in the copy delete all Comment(), Print() and graphics, and everything into the tester for optimisation, finding approximate parameters, start testing year by year, and then assemble the final version with graphics
I did so
the chart is sure to slow down
And do not forget that in mql4 there is a full calculation of conditions in if(), i.e. if you have several && then all values will be calculated and compared, although one false is enough to make construction with && be false
it is possible to split it into several if()
in this case, after the first if() has not been executed, the whole structure below will not be considered
Why does the speed of the tester drop towards the end of the third year pass ?