Download MetaTrader 5

How to get Average Volume of last 20 candles?

To add comments, please log in or register
Sherif Hasan
7401
Sherif Hasan  

Your support is appreciated..

honest_knave
Moderator
2318
honest_knave  
long AvgVol;
for(int i=0; i<20; i++)
  {
   AvgVol+=Volume[i];
  }
AvgVol/=20;
To add comments, please log in or register