GumRai:
MarketInfo()
iClose()
SymbolInfoTick()
- Which are the best? I want faster, accurate function.
- Should I use 'Bid' or 'Ask' to get current price/tick?
- I'm confused because there's Bid and Ask in MarketInfo() and SymbolInfoTick() to get the current price/tick?
- Is that how we get the current price/tick of a current bar?
- Can I get current price/tick of a current bar in iClose() function. iClose() its sound like closing price of a previous bar.
- Can you explain more how to use correctly this MarketInfo(), iCloser(), SymbolInfoTick().
I don't know which is fastest
MqlTick last_tick; if(!SymbolInfoTick(sym,last_tick)) { Print("SymbolInfoTick() failed, error = ",GetLastError()); // //return; } int dig=(int)SymbolInfoInteger(sym,SYMBOL_DIGITS); double pt=SymbolInfoDouble(sym,SYMBOL_POINT); if(cmd==OP_BUY) { ord_num=OpenBuy(sym,cmd,last_tick.ask,LotSize1,0,0,com); if(ord_num>0) { //Do something }
This is a bit of my recent code where I used SymbolInfoTick()
Can I get current price/tick of a current bar in iClose() function. iClose() its sound like closing price of a previous bar.
iClose on the current bar returns the most recent price.

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
[Indicator] How do you get the current changes in Price/Pips/Ticks in Multi-TimeFrame & Symbol?