Download MetaTrader 5

How to get Average Volume of last 20 candles?

To add comments, please log in or register
Freelance service: the safe way to order a trading robot. Try it!
Sherif Hasan
7290
Sherif Hasan 2015.12.17 19:55 

Your support is appreciated..

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