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

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



PureBytes Links

Trading Reference Links

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@xxxxxxxxx>
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/





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

__,_._,___