ochan chin:
Hello,
I would like to ask if it is possible to use the Bid/Ask price in OnCalculate ... if not, how do we get the current price and not only the high and the low of the previous candle?
Thanks in advance
Yes
double m_Bid = NormalizeDouble(SymbolInfoDouble(_Symbol,SYMBOL_BID),(int)SymbolInfoInteger(_Symbol,SYMBOL_DIGITS)); // Get the Bid Price
double m_Ask = NormalizeDouble(SymbolInfoDouble(_Symbol,SYMBOL_ASK),(int)SymbolInfoInteger(_Symbol,SYMBOL_DIGITS)); // Get the Bid Price
ochan chin: I would like to ask if it is possible to use the Bid/Ask price in OnCalculate ... if not, how do we get the current price and not only the high and the low of the previous candle?
thanks everyone , it worked ))
![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
Hello,
I would like to ask if it is possible to use the Bid/Ask price in OnCalculate ... if not, how do we get the current price and not only the high and the low of the previous candle?
Thanks in advance