faustf:
hi guys i run this code
but return me
2020.10.02 11:47:26.025 EURUSD,H1: 1601632045: Bid = 1.1721 Ask = 1.1722 Volume = 0
volume is always at 0 why ???
thankz
forex doesn't have volume
Jean Francois Le Bas: forex doesn't have volume
OP is printing tick volume (count) not real volume.
faustf:
hi guys i run this code
but return me
2020.10.02 11:47:26.025 EURUSD,H1: 1601632045: Bid = 1.1721 Ask = 1.1722 Volume = 0
volume is always at 0 why ???
thankz
MqlTick last_tick; if(SymbolInfoTick(Symbol(),last_tick)) { MqlRates lasttick[]; if (CopyRates(Symbol(),Period(),last_tick.time,1,lasttick)>0) { Print(lasttick[0].time,": Close = ",lasttick[0].close," Tick Volume = ",lasttick[0].tick_volume); ZeroMemory(lasttick); } else { Print(last_tick.time,": Bid = ",last_tick.bid," Ask = ",last_tick.ask," Volume = ",last_tick.volume); } } else { Print("SymbolInfoTick() failed, error = ",GetLastError()); }

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
hi guys i run this code
but return me
2020.10.02 11:47:26.025 EURUSD,H1: 1601632045: Bid = 1.1721 Ask = 1.1722 Volume = 0
volume is always at 0 why ???
thankz