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

[amibroker] What is wrong with my relative strength indicator?



PureBytes Links

Trading Reference Links

Below is my indicator to calculate the relative strength based on the 
startpoint, say 2001/09/21

//startpint can be selected
//startpoint = Param("Startpoint", 1010921, 1000101, 1031231, 1);
//default is 2001/sept/21 = 101 09 21
startpoint = 1010921;
price = Close;
baseprice = ValueWhen( DateNum() == startpoint, C);
Plot( 100 * ( price/baseprice - 1), Name(), colorBrightGreen, 
styleThick );

//Ticker can be selected
ticker = ParamStr("Ticker 1", "SPY" );
price = Foreign( ticker, "C");
baseprice = ValueWhen( DateNum() == startpoint, price);
Plot( 100 * ( price/baseprice -1 ), ticker, colorRed );


It shows fine. But if I edit the startpoint and change it to 1011021, 
there is no display for the indicatior. It is strange. Can anybody 
help me? Thanks

Gary



------------------------ 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/l.m7sD/LIdGAA/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/