0

Rather new to easy language, and I am trying to find the 5-day average volume for stock on my radarscanner. So creating an indicator to do this. But how do I set the indicator to always being looking at daily bars, even if my charts are on other time frames?

Heres my code (but as I said, I dont know the reserve word to lock the volume to daily only).

Vars: TotalVolume(0), AvgDailyVolume(0);

For Value1 = 1 To 5 Begin TotalVolume = TotalVolume + volume(value1); End;

AvgDailyVolume = TotalVolume / 5 ;

Plot1(AvgDailyVolume, "5 Day Avg Daily Volume");

Thanks for your help and smarts.

bahamutcog
  • 11
  • 2

0 Answers0