Post by fxshrat on Mar 17, 2016 13:17:03 GMT
I guess there are several people not being aware of the fact that you can set individual intra-day settings for members of your data base (despite of the 2nd fact that it is being mentioned in the AB help).
So that's why here is a short tutorial on how to achieve that goal of different sessions within same DB.
The below step by step guide is an addition to AB help's article www.amibroker.com/guide/w_dbsettings.html
Example:
Let's suppose you have American and European futures in your data base but you don't want to have the same intra-day sessions for each one of those two groups.
What to do? Well, let's simply make them members of separate groups instead of all of them being part of same one (if you import or set symbols the first time then by default they all move to Group 0).
OK, let's go ahead (if you want to see below pictures being full-sized then just click on them)
Status quo -> all symbols being part of Group 0
forum.amibroker.com/uploads/default/original/2X/b/b2b64e18f7895f83a0d4e70a08c46838c6d92ce8.png
Now in order to separate symbols from each other we go to Symbol - Organize assignments
forum.amibroker.com/uploads/default/original/2X/f/fb3f863a5dd8829dde561c6bee37fde6ceca162b.png
A new window opens - the Assignments organizer:
forum.amibroker.com/uploads/default/original/2X/4/4c25f8c57dc339cf924c1b26afa930fcc766c9e5.png
So we want to move European symbols to a separate group.
Therefore we mark those ones and then click the arrow button to move them to the right side where drop down menu says Group 1:
forum.amibroker.com/uploads/default/original/2X/c/c80614cab33d15778338e4aed9c8a82c3b51fdda.png
After click:
forum.amibroker.com/uploads/default/original/2X/3/33b3474d3896bf537715995a0fb63fc3640a4aa6.png
(You may choose different groups by just choosing them via drop-down menus on the left and right sides.)
OK let's go back to the example... if you close Assignments organizer then Group section of symbols window will be updated too:
forum.amibroker.com/uploads/default/original/2X/8/8bdca51d186f9c37880f20e14a97c41e63c8510b.png
Now you may also re-name default names for each one of the Group of Groups section. So for example you may rename "Group 0" to "US futures" or whatever.
You just have to make a soft click on the group to make it editable:
forum.amibroker.com/uploads/default/original/2X/2/2d6e9963f37f4942e8fed056c0ff9de2ca6270d1.png
Alternatively you may go to Symbols - Categories - Groups in order to rename groups:
forum.amibroker.com/uploads/default/original/2X/c/ca2bdadf295d20033405b7887ae0be7dcd2b5b10.png
Now staying at that very same Categories window there we also may set per group intraday settings (which is our main goal of this tutorial):
forum.amibroker.com/uploads/default/original/2X/9/996358ff879388475de875aec1d2f42a00e67fb6.png
So as you can see in upper picture you first click your group (in this example "Group 0") and then you check "Group uses own intraday settings".
After that you click the "Intra-day settings" button (which is independent one from "Intra-day settings" of File - Database settings):
forum.amibroker.com/uploads/default/original/2X/b/b462832d3fcf40c707862d38ff9692c0d7901d03.png
So the yellow marked area of upper picture are independent settings per Group if "Group uses own intraday settings" is checked.
The only settings that remain global ones in that window are the ones where it says "Per database settings".
Repeat the same intra-day settings procedure for any other group of Categories window (only if you want to have independent settings for members of a Group. Otherwise global intraday settings of File - Database settings - Intraday settings are applied).
So that's why here is a short tutorial on how to achieve that goal of different sessions within same DB.
The below step by step guide is an addition to AB help's article www.amibroker.com/guide/w_dbsettings.html
Example:
Let's suppose you have American and European futures in your data base but you don't want to have the same intra-day sessions for each one of those two groups.
What to do? Well, let's simply make them members of separate groups instead of all of them being part of same one (if you import or set symbols the first time then by default they all move to Group 0).
OK, let's go ahead (if you want to see below pictures being full-sized then just click on them)
Status quo -> all symbols being part of Group 0
forum.amibroker.com/uploads/default/original/2X/b/b2b64e18f7895f83a0d4e70a08c46838c6d92ce8.png
Now in order to separate symbols from each other we go to Symbol - Organize assignments
forum.amibroker.com/uploads/default/original/2X/f/fb3f863a5dd8829dde561c6bee37fde6ceca162b.png
A new window opens - the Assignments organizer:
forum.amibroker.com/uploads/default/original/2X/4/4c25f8c57dc339cf924c1b26afa930fcc766c9e5.png
So we want to move European symbols to a separate group.
Therefore we mark those ones and then click the arrow button to move them to the right side where drop down menu says Group 1:
forum.amibroker.com/uploads/default/original/2X/c/c80614cab33d15778338e4aed9c8a82c3b51fdda.png
After click:
forum.amibroker.com/uploads/default/original/2X/3/33b3474d3896bf537715995a0fb63fc3640a4aa6.png
(You may choose different groups by just choosing them via drop-down menus on the left and right sides.)
OK let's go back to the example... if you close Assignments organizer then Group section of symbols window will be updated too:
forum.amibroker.com/uploads/default/original/2X/8/8bdca51d186f9c37880f20e14a97c41e63c8510b.png
Now you may also re-name default names for each one of the Group of Groups section. So for example you may rename "Group 0" to "US futures" or whatever.
You just have to make a soft click on the group to make it editable:
forum.amibroker.com/uploads/default/original/2X/2/2d6e9963f37f4942e8fed056c0ff9de2ca6270d1.png
Alternatively you may go to Symbols - Categories - Groups in order to rename groups:
forum.amibroker.com/uploads/default/original/2X/c/ca2bdadf295d20033405b7887ae0be7dcd2b5b10.png
Now staying at that very same Categories window there we also may set per group intraday settings (which is our main goal of this tutorial):
forum.amibroker.com/uploads/default/original/2X/9/996358ff879388475de875aec1d2f42a00e67fb6.png
So as you can see in upper picture you first click your group (in this example "Group 0") and then you check "Group uses own intraday settings".
After that you click the "Intra-day settings" button (which is independent one from "Intra-day settings" of File - Database settings):
forum.amibroker.com/uploads/default/original/2X/b/b462832d3fcf40c707862d38ff9692c0d7901d03.png
So the yellow marked area of upper picture are independent settings per Group if "Group uses own intraday settings" is checked.
The only settings that remain global ones in that window are the ones where it says "Per database settings".
Repeat the same intra-day settings procedure for any other group of Categories window (only if you want to have independent settings for members of a Group. Otherwise global intraday settings of File - Database settings - Intraday settings are applied).