change
for(int i=0;i<TotalOB;i++){to
for( int i = TotalOB-1; i >= 0; i--){
Always start at top of list and work down when deleting objects and trades.

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
Hello,
This script clean and change the look of chart built by the MT Tester (button "Open chart" in Tester Window)
I need to "drag and drop" my script 3 times to get what it do.
- At the first "drag and drop", it remove all arrows StopLoss and TakeProfit.
- At the second "drag and drop", it remove all arrows Open/Close trade.
- At the third "drag and drop", it change the color/style or trend lines.
Strange, isn't?
Did you catch any mistake/bugs in my script?
Why does it need 3 "drag and drop" to execute the entire code?
Thanks
I use MT 4.0.211 and ME 4.0.209.