Hello
I am using different timeframes and I need to know which bar (barindex) from the lower timeframe corresponds to which bar (barindex) from the higher timeframe. I concluded that only way to map them accurately is to force the use of entire database (ie SetBarsRequired( -2, -2 ); ). The array that holds the conversion is LowToHighTFBarindex:
TF = in15Minute;
TimeFrameSet( TF );
HTFbi = BarIndex();
LowToHighTFBarindex = TimeFrameExpand( HTFbi, TF, expandmode ); // Contains the HTF barindex, (that corresponds to the datetime of LTF)
TimeFrameRestore();
More detailed code is here:
http://bbb-amibroker.blogspot.gr/2016/03/timeframeset-and-barindex-of-compressed.html
http://bbb-amibroker.blogspot.gr/2016/03/timeframeset-and-barindex-of-compressed.html
__._,_.___
Posted by: "B. Pitatzidis" <bobptz@gmail.com>
Reply via web post | • | Reply to sender | • | Reply to group | • | Start a New Topic | • | Messages in this topic (1) |
Upgrade your account with the latest Yahoo Mail app
Get organized with the fast and easy-to-use Yahoo Mail app. Upgrade today!
**** 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/
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/
.
__,_._,___
EmoticonEmoticon