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

RE: [amibroker] "fixed" ticker question



PureBytes Links

Trading Reference Links









You might want to use setForeign() instead
of Foreign() to get your equity right.

 

 

Thomas

 

<span
>-----Original Message-----
From: nobonzo
[mailto:nobonzo@xxxxxxxx] 
Sent: Wednesday, November 12, 2003
1:13 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker]
"fixed" ticker question

<span
> 

<span
>Hi,<span
>

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);






<font size=2
face="Courier New">Send BUG REPORTS to
bugs@xxxxxxxxxxxxx<span
>
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to:
amiquote@xxxxxxxxxxxxxxx 
(Web page: <a
href="">http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: <a
href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html


Your use of
Yahoo! Groups is subject to the Yahoo!
Terms of Service. 










Yahoo! Groups Sponsor


  ADVERTISEMENT 









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 the Yahoo! Terms of Service.