PureBytes Links
Trading Reference Links
|
I'm trying to write a function calculating and plotting weekly RSI(9)
onto daily frame + daily RSI(9). I borrowed this from the example
using MA's and it works on that but not RSI.
Below is my attempt. I notice though that when i scrol the weekly
seems to float . I must have missed timeframe command or incorrectly
understanding what im doing ..
any ideas ???
wC = TimeFrameCompress( Close, inWeekly );
/* now the time frame is still unchanged (say daily) and our RSI will
operate on daily data */
dailyma =RSI(9);
/* but if we call RSI on compressed array, it will give RSI from
other time frame */
weeklyma = RSI(9); // note that argument is time-compressed array
Plot( dailyma, "Dailyrsi", colorRed );
Plot( 30, "line30", colorWhite );
weeklyma = TimeFrameExpand( weeklyma, inWeekly ); // expand for
display
Plot( weeklyma, "Weeklyrsi", colorBlue );
------------------------ Yahoo! Groups Sponsor --------------------~-->
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~->
Check AmiBroker web page at:
http://www.amibroker.com/
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
<*> To unsubscribe from this group, send an email to:
amibroker-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|