PureBytes Links
Trading Reference Links
|
Hi
Gary,
<SPAN
class=578253116-11052004>
I am
still struggling with my Foreign problem, would you be willing to help me out
once more? Clould you copy the code below in an indicator and apply it, use any
stock you like. Do you see anything wrong with my code? I cannot get the
Foreign() to work properly. See the Blue line below? That is what I get when i
use minute prices retrieved with Foreign() and switch the to the Daily
TimeFrame. Your help is much appreciated!
<SPAN
class=578253116-11052004>herman.
<SPAN
class=578253116-11052004>
<IMG
alt="" hspace=0 src="jpg00057.jpg" align=baseline
border=0>
<SPAN
class=578253116-11052004>
//
Working with 1 minute database, pick any current
stockTimeFrameSet(in1Minute); // redundent...CForeignMin=
Foreign(Name(),"C");CCurrentMin= C;
<SPAN
class=578253116-11052004>TimeFrameSet(inDaily);CForeignDaily=
Foreign(Name(),"C");CCurrentDaily= C;
<SPAN
class=578253116-11052004>TimeFrameRestore();
<SPAN
class=578253116-11052004>Plot(CCurrentMin,"CCurrentMin",2,1); // origional 1
minutesPlot(TimeFrameExpand(CCurrentDaily,inDaily),"CCurrentDaily",7,1);
<SPAN
class=578253116-11052004>Plot(CForeignMin,"CForeignMin",1,1); // origional 1
minutesPlot(TimeFrameExpand(CForeignDaily,inDaily),"CForeignDaily",6,1);
<SPAN
class=578253116-11052004>
<SPAN
class=578253116-11052004>
<SPAN
class=578253116-11052004>
<SPAN
class=578253116-11052004>
<SPAN
class=578253116-11052004>
<SPAN
class=578253116-11052004>
<FONT face=Tahoma
size=2>-----Original Message-----From: Gary A. Serkhoshian
[mailto:serkhoshian777@xxxxxxxxx]Sent: Monday, May 10, 2004 9:15
PMTo: amibroker@xxxxxxxxxxxxxxxSubject: Re: [amibroker]
Foreign() in TimeFrames questionHerman,I ran
your code with ES #F (don't have QQQ), and itran 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 <A
href="">http://hotjobs.sweepstakes.yahoo.com/careermakeover
Send BUG REPORTS to bugs@xxxxxxxxxxxxxSend
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
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 Sponsor
ADVERTISEMENT
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 the Yahoo! Terms of Service.
Attachment:
Description: ""
|