Hi, all I am using Amibroker. How can I set the chart only show the morning session by Program without changing the database setting? I wanna have one chart showing both Morning and Night Session. And another chart is showing the morning session only. Many Thanks! Ben
I have no experience myself with such sessions, but search in Help for "session". You should get a help page with these contents: "... Show 24 hours trading (no filtering) - all data are displayed (no filtering at all) Show day session only - only the data between day session (RTH) start and end times are displayed Show night session only - only the data between night sesison (ETH) start and times are displayed Show day and night session only - only the data between either day session start/end time or night session start/end time are displayed ..." And another help page is about Views and sessions...
Color the bars: For example: color=iif( hour()==8,colorlightblue,coloryellow); PlotOHLC(O,H,L,C,"", color, stylebar) ;
i would like to write the program that the chart will eliminate the data of night session and only show the day session and the other chart show both day and night session I dun wanna change the database session as i wanna collect the night session data as well Thanks
Other than going formula level you may set per group intraday sessions! So for example if you have Asian stocks or futures you may move them to some "Group" and if you have some US symbols you move those ones to some other "Group". See "Symbol - Organize Assignments" of menu bar. If you have assigned them then they will be visible in Symbols window in Groups section too. Then you go to menu bar's "Symbol - Categories - Groups" and look for your created group, click on each of them and then you check "Group uses own intraday settings" for each one separately. Then in same window you click "Intraday settings" button and set your per group intraday settings. Of course those ones have to be set for each group separately too.Those settings will be independent from data base intraday settings and being applied for each group separately.
I'm not sure of your provider but I use IQFeed and the session options in options will not effect this. My intraday database asks for 100000 1 minute bars and Amibroker doesn't filter the bars it receives. I can go into options at any point and allow night session or morning session as I please. These options just hide the data basically, but it's always there. The API requests the last 100000 bars, it doesn't know it's session or care at the time of request. Maybe look into your provider and see how it works.