You need to use:
ChartSetInteger(0,CHART_COLOR_FOREGROUND, myColor);
Run a loop through your open orders, figure out what color you want the axes to be, then set the color using the above code.
You need to use:
Run a loop through your open orders, figure out what color you want the axes to be, then set the color using the above code.
hmmm i am not getting it to do that.
i am trying to use this in a ea, would that matter?
Shouldn't do. I just dropped this EA onto a chart with the same effect
void OnTick() { ChartSetInteger(0,CHART_COLOR_FOREGROUND, clrPink); }
Shouldn't do. I just dropped this EA onto a chart with the same effect
i have got it running through a loop under ontick. i place the trades with a button, ea doesnt make any trades at all it is a manual assistant.
if i take ChartSetInteger(0,CHART_COLOR_FOREGROUND,clrBlue); out of the loop it works fine but in the loop it doesnt.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
I have searched google and the MQL's but I cant find any examples on how to change the colors of the axis, scale, etc.
I would like to cahnge the according what order is open.
red for sell,green for buy,blue for no orders.