I am trying to compare the current candle volume to the average volume data for x amount of bars.
I have looked at a ton of different things and tried all of them but none seem to be working.
Does any one know the code to do this?
I have the math correct (once I have the average) I just can't seem to get the average code correct.
This is my last attempt:
Any help is appreciated.
I have looked at a ton of different things and tried all of them but none seem to be working.
Does any one know the code to do this?
I have the math correct (once I have the average) I just can't seem to get the average code correct.
This is my last attempt:
Inserted Code
double a = iVolume(NULL,0,lookback)/Point; //Look back is number of bars to average out over double c = Volume[Current]; //Current Candle Volume
Any help is appreciated.
The trend always ends.