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

[amibroker] Re: Using TimeFrame functions on BarIndex()



PureBytes Links

Trading Reference Links

Thinking about it, I'm not sure what I'm trying to do will work...

The time frame fucntions actually concatinate or de-concatinate arrays
to produce psuedo 'other time frame' arrays... they don't actually
genuinely change the interval of the arrays... hence I'm not sure they
can be used to manipulate BarIndex().

TJ or anyone else... is there a way of manipulating BarIndex() to get
correct values for differet intervals...?? Or is actually changing the
interval by hand the only way...? There's no way to change interval
via AFL right...?

TIA

--- In amibroker@xxxxxxxxxxxxxxx, Steve Wong <swstevewong38@xxx> wrote:
>
> I think must switch but not compress the timeframe:
> 
> Old_BI = BarIndex(); 
> ...
> TimeFrameSet(in3Minute); 
> New_BI = BarIndex(); 
> TimeFrameRestore(); 
> 
> Because for example if BarIndex() is 0..1..2..3..4..5..then after
compress it should be 0..1.. right
> but how about 
> 
> price = TimeFrameCompress(Close, 180);  
> 
> We can see if compress on Close Price the logic contradicts to
compressing BarIndex().
> 
> 
> 
> ________________________________
> From: sidhartha70 <sidhartha70@xxx>
> To: amibroker@xxxxxxxxxxxxxxx
> Sent: Saturday, February 14, 2009 10:56:40 PM
> Subject: [amibroker] Using TimeFrame functions on BarIndex()
> 
> 
> Hi All,
> 
> I'm trying to locate some BarIndex() values across different time
> frames... Is this possible using the built in Time Frame fucntions...
> 
> I thought this would work... Let's pretend my base interval is 1min,
> and I want to get the BarIndex() for a 3min interval...
> 
> New_BI = TimeFrameCompress( BarIndex( ),180);
> 
> But it doesn't seem to work... any ideas...?
> 
> TIA
>




------------------------------------

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