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

RE: [amibroker] How to chart 2 different symbols with very different values but normalized?



PureBytes Links

Trading Reference Links



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@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf Of consolejoker
Sent: Friday, November 06, 2009 7:45 PM
To: amibroker@xxxxxxxxxxxxxxx
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



__._,_.___


**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

TO GET TECHNICAL SUPPORT send an e-mail directly to
SUPPORT {at} amibroker.com

TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/





Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___