From: Joris M.schuller <jmschuller@xxxxxxxxxxx>
Subject: RE: [amibroker] How to chart 2 different symbols with very different values but normalized?
To: amibroker@xxxxxxxxxxxxxxx
Date: Monday, November 9, 2009, 3:38 AM
There are many ways: type Plot in AB editor and hit F1 key. This will show you everything you care to know about plot. You can use combinations of styleownscale, styleLeftAxisScale and the regular right hand axis scale. In addition you can use the AB RS-Comparative Relative Strength. Only the actual values for one symbol are displayed on the right hand scale.
Below an example that allows toggling between the displayed values on the RH Scale
Symbol1="AUD.CAD-IDEALPRO- CASH";//Put whatever selected symbol between ""
Symbol2="AUD.JPY-IDEALPRO- CASH";
SymbolSelection=ParamToggle("Right Hand Scale","Symbol1|Symbol2",1);//
if(SymbolSelection)
{
Plot(Foreign(Symbol1,"C"),StrMid(Symbol1,0,7),colorRed,styleOwnScale|5);
Plot(Foreign(Symbol2,"C"),StrMid(Symbol2,0,7),colorGreen,5); //displays values on RH Scale
}
if(!SymbolSelection)
{
Plot(Foreign(Symbol2,"C"),StrMid(Symbol2,0,7),colorGreen,styleOwnScale|5);
Plot(Foreign(Symbol1,"C"),StrMid(Symbol1,0,7),colorRed,5); //displays values on RH Scale
}
From: amibroker@xxxxxxxxx ps.com [mailto:amibroker@ yahoogroups. com] On Behalf Of consolejoker
Sent: Friday, November 06, 2009 7:45 PM
To: amibroker@xxxxxxxxx ps.com
Subject: [amibroker] How to chart 2 different symbols with very different values but normalized?
I'd like to chart two symbols, Gold and USD on the same pane, but they are so different in values that the result is two almost flat lines. Is there a way to scale the two together or normalize them to see their relative moves?
No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 8.5.425 / Virus Database: 270.14.55/2489 - Release Date: 11/08/09 07:37:00