I have AB for 2 months
Here is a Relative strength indicator .....
/* Relative Strength Comparison with Relative Strength Moving Average
compare to SP 500
compare to Vix - Volatility
Normalize
Plot
*/
RelStrength1 = EMA(Close,5) / Foreign("^GSPC","close");
RelStrength2 = EMA(Close,5) / Foreign("^Vix","close");
RelStren1 = RelStrength1 / Sum(RelStrength1,10);
RelStren2 = RelStrength2 / Sum(RelStrength2,10);
Plot(RelStren1,"RS1",colorBlue,5);
Plot(RelStren2,"RS1",colorGreen,5);
a
It works
Is this good & efficient syntax
can it be reduced
b
can the plot color be changed ;
eg. if Plot(today) > plot(yesterday) then green else red
Please note that this group is for discussion between users only.
To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com
For other support material please check also:
http://www.amibroker.com/support.html
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/amibroker/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/