Re: Coding help ...

#742
Hi
Im trying to make the background for the 15 min a specific color and then go back to another color for all other timeframes.
Can someone help?
Thanks.


//+------------------------------------------------------------------+
//| background.mq4 |
//| Copyright 2018, MetaQuotes Software Corp. |
//| https://www.mql5.com |
//+------------------------------------------------------------------+
#property indicator_chart_window

int start()
{
color clr;

if (PERIOD_M15) clr = LavenderBlush;
else clr = Black;

ChartSetInteger( 0, CHART_COLOR_BACKGROUND, clr );

return (0);
}

Who is online

Users browsing this forum: No registered users and 3 guests