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

Re: [amibroker] I've problems with the BARCOUNT concept, please



PureBytes Links

Trading Reference Links

Paul,

The ticker symbol in Foreign call should be ENCLOSED with QUOTATION MARKS:

T_Close = Foreign( "T" , Close);

Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message ----- 
From: "Paul A." <amibroker@xxxxxxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Tuesday, March 16, 2004 6:36 PM
Subject: [amibroker] Using Foreign with SAR, Short & Cover


> T_Close = Foreign(T, Close);
> Short = Cross(SAR(T_Close, 0.005, 0.05), T_Close);
> Cover = Cross(T_Close, SAR(T_Close, 0.005, 0.05));
> 
> What is wrong with the above code for backtesting, please?  Yes, I realize 
> that SAR is not documented to take a first argument of a ticker, but then 
> how do I tell SAR that I want it to exit from the current stock when a 
> _different_ stock crosses the different stock's SAR?
> 
> And why am I getting error msgs from the compiler about "T" being 
> "uninitialized"?  How do I explain to the compiler that I wish to refer to 
> the "foreign" ticker symbol "T"?
> 
> Finally, what is wrong with my use of "Short" and "Cover"?  I can't get the 
> compiler to accept this usage at all.
> 
> Thanks for any help.
> 
>      -Paul   
> 
> 
> 
> 
> 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 
> Yahoo! Groups Links
> 
> 
> 
>  
> 
> 


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