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

Re: [amibroker] Scaling volume to fit on price chart



PureBytes Links

Trading Reference Links

Hello,

You would need to write:

Graph0 = Close;
Graph0Style = 64;
Graph1 = Volume;
Graph1Style = 6;
Graph1 = (LastValue(Highest(Graph0))/LastValue(Highest(Graph1))) * Graph1;

The price pane in AmiBroker is not implemented in AFL (yet)
- it uses completely separate scaling for volume and price axes and is somewhat
"special" (buy/sell arrows go only there).

Best regards,
Tomasz Janeczko
amibroker.com

----- Original Message ----- 
From: <dreamcircle60@xxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Thursday, November 29, 2001 11:21 PM
Subject: [amibroker] Scaling volume to fit on price chart


> 
> 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
> 
> 
> 
> 
> 
> 
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 
> 
> 
>