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
What can I do with the information or how I need to change the code?
I don't think it's a repainting issue are you are looking at bar 1 not bar 0 . . .
Did you notice on your screen shot that you have missing arrows ? I wonder if it is an issue with using Bars as part of your object names . . . try using an incrementing Index number instead . . . like this.
Did you notice on your screen shot that you have missing arrows ?
Yes I notice this, but I think it is an performance issue in the backtest. I looked at my CPU monitor at every new bar and the CPU was at 100% for up to 60 seconds until the EA draw my arrow.
So I think everytime the EA call iCustom the indicator will be initilized...
I changed my code like in your suggestion.
I try also changing try to looking Bar 0 instead Bar 1 - but still wrong result :-(
Yes I notice this, but I think it is an performance issue in the backtest. I looked at my CPU monitor at every new bar and the CPU was at 100% for up to 60 seconds until the EA draw my arrow.
So I think everytime the EA call iCustom the indicator will be initilized...
I changed my code like in your suggestion.
I try also changing try to looking Bar 0 instead Bar 1 - but still wrong result :-(
The Strategy Tester runs as fast as your CPU will allow . . . it never runs too fast for the CPU to keep up.
Ok, but what can I do, to get the correct values from the indicator?
Ok, but what can I do, to get the correct values from the indicator?
Is there any way to improve the performance of the iCustom Call?
The EA runs on EURUSD M1 Chart and my CPU are cooking some eggs :-(
Is there any way to improve the performance of the iCustom Call?
The EA runs on EURUSD M1 Chart and my CPU are cooking some eggs :-(
Yes, only call it once per bar . . . ;-)
Thanks a lot. The performance is better now, but I have still strange results.
And I found another issue this morning:
This screen was taken yesterday (15.10. ~16'o'clock CET). This morning everything seems to be god because there are red dots and red arrows as expected.
After reloading the MetaTrader the dots are blue. This seems an repaint issue!? But in Backtest was no repaint at all.
Thanks a lot. The performance is better now, but I have still strange results.
And I found another issue this morning:
This screen was taken yesterday (15.10. ~16'o'clock CET). This morning everything seems to be god because there are red dots and red arrows as expected.
After reloading the MetaTrader the dots are blue. This seems an repaint issue!? But in Backtest was no repaint at all.
IMO you need to be cautious using Indicators directly in the Strategy Tester.
From what I see on my chart the Indicator is doing strange things, but the EA is getting the correct data from the Indicator, so the arrows match the dots.