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 [email protected], Steve Wong <swstevewon...@...> 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 <sidharth...@...>
> To: [email protected]
> 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
>


Reply via email to