[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Scaling volume to fit on price chart



PureBytes Links

Trading Reference Links

Dear Tomasz and others,

I am basically starting out learning about AFL, and I am trying to 
plot volume on the same panel as the price. Thus I need to scale the 
volume to fit and right now I am using the Highest() function to 
scale.

graph0 = close;
graph1 = volume;
graph1 = (Highest(graph0)/Highest(graph1)) * graph1;

The problem is that I would like to use the highest value which is 
displayed (not the absolute highest value back to the beginning of 
time). Can anyone suggest how I might do that, or suggest a better 
method for scaling the volume?

Tomasz: are you able to share the AFL code for the basic Price 
Indicator (if there is AFL code) ? This would provide a good example 
for me to work off of.

Thank you very much,

jim