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

[amibroker] Re: Programmatically exporting intraday data



PureBytes Links

Trading Reference Links

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

--- In amibroker@xxxxxxxxxxxxxxx, Steve Wong <swstevewong38@xxx> 
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/

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:amibroker-digest@xxxxxxxxxxxxxxx 
    mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx

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