freefreecj #: Attached mq4 file
Try this:
void OnStart() { for( int n=ObjectsTotal()-1; n>=0; n-- ){ string str= ObjectName(n); if( ObjectType(str) != OBJ_TREND ) continue; if( StringGetChar(str,0) != '#' ) continue; if(ObjectGet(str,OBJPROP_COLOR)==Blue) ObjectSet(str,OBJPROP_COLOR,Aqua); } }Improperly formatted code edited by moderator.
Please don't wake up an old thread unnecessarily and use the CODE button (Alt-S) when inserting code.
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
Hi there
This is my 1st time on this Forum.
I have a problem with changing the colors of the Trendline in the Strategy Tester output.
The Trendline colors are Red and Blue.
I'm trying to change the blue to Aqua as I'm blind to Blue.
This script works but changes ALL the lines to Aqua.
I'm trying to only select the Blue and change it to Aqua.
The lines in the boxes are my attempts to exclude the Red or includethe Blue but it does not work.
This program currently compiles without any errors and changes ALL the Red and Blue lines to Aqua
provided my 2 attempts in the boxes are hashed out.
Please help.
cheers
CJ