Forum

PositionOpen volume param

Hello! I am a bit confused about the volume param in the PositionOpen function https://www.mql5.com/en/docs/standardlibrary/tradeclasses/ctrade/ctradepositionopen The function definition does not give you any info on it, so I do not know what the volume is based on but I am guessing that it means

AccountInfoDouble(ACCOUNT_BALANCE) returns 0 in Demo account with 10000$ balance

Hello! I have a demo account and in my client Trade tab I can see that I have 10000 Balance, Equity, and Free margin but when I call AccountInfoDouble( ACCOUNT_BALANCE ) in my Expert Advisor I get returned 0, this also happens with Equity and Free Margin. Might this be because this is a demo account

MqlRates spread gives spread on pips ?

I am an experienced programmer but I am new to FX trading. When I check the .spread property in a MqlRates instance I always get whole numbers like 2 or 7, but then if for instance it is 7, does that mean that the spread is 7 pips

Do events like OnTick() queue up ?

I am working in an Expert Advisor which makes heavy calculations in the OnTick() event which can take seconds and I am wondering what happens with OnTick() events that are triggered while the current OnTick() event is being handled. I do not mind "loosing" OnTick() events but I am concerned about