I would like to know if there is an alternative to StaticVarGet( ''varname', align, mode = compressOpen).
(the last parameter is not implemented, only for TimeFrameCompress).
On a 1-min exploration I am storing data I need to retrieve on 5/15/etc min charts.StaticVarGet seems to operate in mode "compressLast", but I'd actually need the first value of the period.
The best (partial solution) I was able to come is to compress/expand while exploring. This will repeat the first value over the 5-min period(s) (so StaticVarGet getting the last of those will get the 'correct' one):
StaticVarSet("DB_1m_Profile_Segments_" + Name(), TimeFrameExpand(TimeFrameCompress(Segments, in5Minute, compressOpen), in5Minute, expandFirst));
StaticVarSet("DB_1m_Profile_BarIndex_" + Name(), TimeFrameExpand(TimeFrameCompress(BarIndex(), in5Minute, compressOpen), in5Minute, expandFirst));
Posted by: gabor.s.kuti@gmail.com
Reply via web post | • | Reply to sender | • | Reply to group | • | Start a New Topic | • | Messages in this topic (1) |
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