PureBytes Links
Trading Reference Links
|
I am relatively new to AmiBroker, having transfered my system from
Metastock this year. I have used TradeSim and MS to portfolio test my
strategy, but am struggling getting one aspect of my system to
operate using AmiBroker.
I am trying to get an indicator based on an index to display on
weekly charts using daily index, or foriegn, data. The code that I
have come up with is as follows;
price=TimeFrameExpand( Foreign("XSO","Close"), inDaily);
Q = Param("RSI periods",34,2,40,1);
n=ROC(Price,1);
Z=Wilders(IIf(n>0,n,0),Q);
Y=Wilders(IIf(n<0,abs(n),0),Q);
RS=Z/Y;
R=100-(100/(1+RS));
Index = (R-LLV(R,q))/(HHV(R,q)-LLV(R,q))*100;
TimeFrameRestore();
Plot(index,"StoRSI",colorWhite,styleLine);
I understand that there are other ways of doing this. This is just
one approach that I have tried, but I am not having any success no
matter what I try.
I tried to change the weekly system from weekly to daily and it
looked good on the chart, but the signals didn't line up in quite the
same way. I also want to use the daily index in weekly timeframe for
system testing and exploring.
What is the right approach to this?
Steve
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com. Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/GHeqlB/TM
---------------------------------------------------------------------~->
Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
|