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

Re: [amibroker] I have a problem with Export .csv and Import Wizard



PureBytes Links

Trading Reference Links

And (I forgot) the second parameter should be enclosed in quotation marks too:

T_Close = Foreign( "T" , "C" );

As for SAR as Jayson wrote it uses indirectly not only Close but High and Low arrays therefore
you have to use SetForeign

SetForeign("T");
Short = Cross(SAR( 0.005, 0.05), Close);
Cover = Cross(Close, SAR(0.005, 0.05));
RestorePriceArrays();

Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message ----- 
From: "Tomasz Janeczko" <amibroker@xxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Tuesday, March 16, 2004 7:10 PM
Subject: Re: [amibroker] Using Foreign with SAR, Short & Cover


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


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/