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 <[email protected]> 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
