Hello,
Thank you very much for your e-mail.
OK, will think about providing the functionality you need.
Best regards,
Tomasz Janeczko
amibroker.com
On 2016-06-09 18:33, gabor.s.kuti@gmail.com [amibroker] wrote:
Thanks Tomasz, but unfortunately, no.. the settings are as above.
I see timestamps of 9.30, 9.35 on the 5-min BUT their values come from 9.34, 9.39, etc. Mind you, I am talking about a StaticVar set on the 1-min exploration.
Run this in a 1-minute analysis window:Filter=1;if(status( "stocknum" ) == 0) { StaticVarRemove("DB_1m_*"); }StaticVarSet("DB_1m_Profile_BarIndex_" + Name(), BarIndex());StaticVarSet("DB_1m_Profile_DateTime_" + Name(), DateTime());
Then, open create two charts (1-min and 5-min) with the following code:SetChartOptions(0,chartShowArrows|chartShowDates);_N(Title = StrFormat("{{NAME}} BarDate={{DATE}} " ));Plot( C, "Close", ParamColor("Color", colorDefault ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() );ProfileDateTime=StaticVarGet("DB_1m_Profile_DateTime_" + Name());_N(Title=Title + "ProfileDateTime=" + DateTimeToStr(SelectedValue(ProfileDateTime)));ProfileBarIndex=StaticVarGet("DB_1m_Profile_BarIndex_" + Name());_N(Title=Title + "\nProfileBarIndex=" + ProfileBarIndex);
On the 5-min I see:AAPL BarDate=09/06/2016 09:30:00 ProfileDateTime=09/06/2016 09:34:00AAPL BarDate=09/06/2016 09:35:00 ProfileDateTime=09/06/2016 09:39:00etc, etc...
The same applies to the barindex numbers. Going to the 1-min chart, selecting today's open (9.30) I see for ProfileBarIndex:9.30: 336935, 9.31: 336936, 9.32: 336937, 9.33: 336938, 9.34: 336939, 9.35: 336940Now, going onto the 5-min chart I see:9.30: 336939, 9:35: 336944
Therefore, the value of the LAST bar in the period is shown. This may be intentional but there is no way to ask to return the first one (unless I do some twisted timeframe manipulation for each target timeframe).
Also, for the record, changing the settings you mentioned would update the 'BarDate' but the ProfileDateTime stays constant between these changes.
Thanks.
__._,_.___
Posted by: Tomasz Janeczko <groups@amibroker.com>
Reply via web post | • | Reply to sender | • | Reply to group | • | Start a New Topic | • | Messages in this topic (4) |
Have you tried the highest rated email app?
With 4.5 stars in iTunes, the Yahoo Mail app is the highest rated email app on the market. What are you waiting for? Now you can access all your inboxes (Gmail, Outlook, AOL and more) in one place. Never delete an email again with 1000GB of free cloud storage.
**** 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