Ask/Bid on the main fuction OnCalculate
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 ))
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