if LastBarOnChart then begin
if lastCurrentBar <> CurrentBar then begin
vol = Volume;
lastVolume = 0;
end else begin
vol = Volume - lastVolume;
end;
lastCurrentBar = CurrentBar;
lastVolume = lastVolume + vol;
Ask(GetSymbolName, CurrentAsk, AskSize);
Bid(GetSymbolName, CurrentBid, BidSize);
Last(GetSymbolName, Close, vol);
end;
Does the value of vol play any role in the trading of the sim account?
Comment