Hello, good day programmers, I have tried to eliminate the arrows and trendlines from the autotrades but they are only removed from the current chart but not from the other charts opened by the strategy tester.
and in the same way when I call the function in the OnDeinit() part they are not eliminated at the end of the backtest.
and in options I also have it disabled but I would also like to eliminate it via code.
These continue to appear no matter how I try to eliminate them in the backtest.
It should be noted that I use a multi-symbol advisor that opens operations in different symbols and time frames.
Thanks for read.
Current Backtest Chart:
Second Backtest Chart:
e(no indicator and no objects)?
Yes, the tester.tpl that I use in backtesting is empty, without objects and without indicators. The problem occurs when the expert advisor opens operations, that is when the "autotrade" arrows and lines are created in the symbols being operated.
Yes, I already tried activating and deactivating it.
I was thinking of making a script that deletes all the objects with a key press
yes, a script using ObjectsDeleteAll(0); removes all objects from the current chart each time it is executed but not from different charts opened by the tester in which "autotrade" objects exist
but as you will see in the code I go through all the charts, but even so in backtesting they are not eliminated.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hello, good day programmers, I have tried to eliminate the arrows and trendlines from the autotrades but they are only removed from the current chart but not from the other charts opened by the strategy tester.
and in the same way when I call the function in the OnDeinit() part they are not eliminated at the end of the backtest.
and in options I also have it disabled but I would also like to eliminate it via code.
These continue to appear no matter how I try to eliminate them in the backtest.
It should be noted that I use a multi-symbol advisor that opens operations in different symbols and time frames.
Thanks for read.
Current Backtest Chart:
Second Backtest Chart: