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

[amibroker] Computation efficiency



PureBytes Links

Trading Reference Links

Herman,

I ran your code with ES #F (don't have QQQ), and it
ran perfectly in 1 min and daily.

Regards,
Gary


--- Herman van den Bergen <psytek@xxxxxxxx> wrote:
> Can somebody explain how to use Foreign() and/or
> SetForeign() in Time
> Frames?
> 
> We setting the current stock to the QQQ and setting
> AA Periodicity to Daily
> the code below gives expected results with and
> without the Foreign()
> statement. However when setting my AA Periodicity to
> 1Minute the system
> doesn't seem to work.
> 
> Can Foreign() and SetForeign() be used within
> TimeFrames?
> 
> Thanks for any help you can give!
> herman.
> 
> 
>
----------------------------------------------------------------------------
> ----
> 
> TimeFrameSet(inDaily);
> SetForeign("QQQ"); // <<<<<<<<<<<<<<<<<<<
> Buy=Cross( MACD(), Signal() );
> Sell = Cross( Signal(), MACD() );
> TimeFrameRestore();
> Buy=TimeFrameExpand(Buy,inDaily);
> Sell=TimeFrameExpand(Sell,inDaily);
> Short=Sell;
> Cover=Buy;
> 
>
----------------------------------------------------------------------------
> ----
> 
> 
> 



	
		
__________________________________
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs  
http://hotjobs.sweepstakes.yahoo.com/careermakeover 


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/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 
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/