Hello Everyone!
Its been a while i am still learning mql coding and asking for help for a tweak to change the background color when the buffer is being triggered. well i found 2 method of doing this but both have disadvantages.
1st was
.
2nd was
Then i chose the 2nd line of code that can do it but the problem is background don't return back to default color after the buffers being not triggered again.., It wud be helpfull if anyone know how to do that!? thanks in advance!
Below here i upoaded the mq4 file also examples of the chart color background changes when buffers are being triggered but they dont change back to default till next sell/buy buffer being triggered. wish it will be normal background when there is no arrow ))
Its been a while i am still learning mql coding and asking for help for a tweak to change the background color when the buffer is being triggered. well i found 2 method of doing this but both have disadvantages.
1st was
MQL4:
ObjectCreate( "back", OBJ_LABEL, 0, 0, 0 ); ObjectCreate(0,name,OBJ_RECTANGLE_LABEL,0,Time[0],Close[0]);
2nd was
MQL4:
ChartSetInteger(0,CHART_COLOR_BACKGROUND,clrDarkBlue);
Below here i upoaded the mq4 file also examples of the chart color background changes when buffers are being triggered but they dont change back to default till next sell/buy buffer being triggered. wish it will be normal background when there is no arrow ))
Attachments
Last edited: