RogH:
ChartSetInteger(0,CHART_SHOW_BID_LINE,!ChartGetInteger(0,CHART_SHOW_BID_LINE));
ChartSetInteger(0,CHART_SHOW_ASK_LINE,!ChartGetInteger(0,CHART_SHOW_ASK_LINE));
ChartSetInteger(0,CHART_SHOW_BID_LINE,!ChartGetInteger(0,CHART_SHOW_BID_LINE));
ChartSetInteger(0,CHART_SHOW_ASK_LINE,!ChartGetInteger(0,CHART_SHOW_ASK_LINE));
ChartRedraw();
The problem is it flips between the bid and the ask. Would anyone know how I could arrange this code so it turns both the bid and the ask on and off at the same time?
(The toggle affect works with a hot-key)
Thanks
Please use the SRC button when you post code.
bool toggle = (bool)ChartGetInteger(0,CHART_SHOW_BID_LINE); ChartSetInteger(0,CHART_SHOW_BID_LINE,!toggle); ChartSetInteger(0,CHART_SHOW_ASK_LINE,!toggle); ChartRedraw();
RogH:
Hi Traders,
An other time, please don't change your first post after you got a reply.
Hi Traders,
I wonder if anyone knows how I could arrange this code so it turns both the bid and the ask on and off at the same time?
Currently it switches the Bid and then the Ask on and off sequentially. I'd be most grateful if someone could help.
Many thanks
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
I wonder if anyone knows how I could arrange this code so it turns both the bid and the ask on and off at the same time?
Currently it switches the Bid and then the Ask on and off sequentially. I'd be most grateful if someone could help.
Many thanks