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

Re: [amibroker] Re: Programmatically exporting intraday data



PureBytes Links

Trading Reference Links

Thanks Paul. This works fine and is easier than I think; I was originally hindered by the thought that Jump being defined daily must be a shorter array, which by your hint I saw it is not.


From: Paul Ho <paul..tsho@xxxxxxxxx>
To: amibroker@xxxxxxxxxxxxxxx
Sent: Thursday, February 19, 2009 11:30:10 AM
Subject: [amibroker] Re: Programmatically exporting intraday data

Try this
Cond = Jump > 300;
....if(cond[ i])

--- In amibroker@xxxxxxxxx ps.com, Steve Wong <swstevewong38@ ...>
wrote:
>
> Hello:
>
> Suppose you have access to intraday 1minute data and are
interested in daily opening Jump > 300 points where Jump is
defined below as:   
>
> todayOpen = TimeFrameGetPrice( "O",inDaily) ;
> yesterdayClose = TimeFrameGetPrice( "C",inDaily, -1);
> Jump = Abs(todayOpen - yesterdayClose) ;
>
> You therefore wish to export all the intraday bars of those
particular days where Jump > 300, and thinking about creating below
loop to do this:
>
> fh = fopen(...);
>
> if (fh) {
>    for (i = 0; i < BarCount; i++) {   // loop intraday 1minute
bars
>       if ( Condtion ? ) {    // should check whether this day's
Jump is > 300
>           fputs(...);  // puts the O[i],H[i],L[ i],C[i] to file 
>       }
>   }
> }
> fclose(fh);
>
> The question is: Any AFL function that can be used in order to
write the condition checking part as in the above loop?
>
> I have tried to look at the reference but still/unable to find
a solution. Any idea will be appreciated.  
>




__._,_.___


**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

TO GET TECHNICAL SUPPORT send an e-mail directly to
SUPPORT {at} amibroker.com

TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/





Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___