I created the code below but it is not working. It just plots a 0 line.
The problem seems to be finding the maximum volume during the lookback period. Its returning 0, but I am not sure why.
Please help me to revise my code.
Code: Select all
inputs: Length( 10);
Vars: VolPrcnt(0);
If Lowest (Volume, Length) <> 0 Then
VolPrcnt = Volume / Highest (Volume, Length);
Plot1( VolPrcnt, "VP" )