Current Buy Volume = Last Buy Volume + Current Traded Volume
if Current Traded Price >= Current Ask Price and Current Sell Volume = Last Sell Volume + Current Traded Volume If Current Traded Price <= Current Bid Price
Remark: Trades executed between the bid and ask prices are ignored. Now, what does it meant by each term and how it can interpreted in MQ4 language? Thanks for your support and guidance.
double Current Traded Price =Close[0];
double Current Bid Price = MarketInfo("EURUSD",MODE_BID); double Current Ask Price = MarketInfo("EURUSD",MODE_ASK); if Current Traded Price >= Current Ask Price Current Buy Volume = Last Buy Volume + Current Traded Volume
If Current Traded Price <= Current Bid Price
Current Sell Volume = Last Sell Volume + Current Traded Volume