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

[amibroker] "fixed" ticker question



PureBytes Links

Trading Reference Links

Hi,

I was trying to implement a "fixed" ticker, see below.
What is wrong with the code and how can the equity made fixed to the 
ticker too ?

Thanks a lot,

Dan


// test for "fixed" ticker
// try this with a list of tickers, including ^NDX
// plot should not change with selected symbol 
// but equity does ..

C=Foreign("^NDX","C");

BuyPrice=C;
SellPrice=C;

Buy = C>EMA(C,20);
Sell = NOT Buy;

eq=Equity();
Plot(C,"^NDX_C",colorBlue);
Plot(eq,"Equity",colorRed);



------------------------ 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/