Hello,
Nothing wrong.
Arrays length does NOT change with any AFL function, including TimeFrame.
What happens is that array contains values time-compressed at the END of array,
unused array elements at the beginning are filled with NULLs.
Best regards,
Tomasz Janeczko
amibroker.com
On 2010-07-19 13:41, tiedemj wrote:
> Executing the following code on a 15 min bar chart returns the same value for
> gSite.getArraySize()
>
> arraySize = gSite.GetArraySize(); //returns bars in 15 min chart
>
> AmiVar args[ 1 ];
> args[0] = makeAmiVarFloat(3600); //proper amibroker var
> gSite.CallFunction("TimeFrameSet",1,args);
>
> arraySize = gSite.GetArraySize(); // still bars in 15 min chart
>
> also, if I try to change timeframe in AFL code:
>
> TimeFrameSet(3600);
> myPlugin();
> TimeFrameRestore();
> myPlugin();
>
> a call to gSite.GetArraySize() returns the same value in both calls to
> myPlugin(); Also the build in variable "barCount" returns the same value.
> What am I doing wrong?
>
> Best regards
> Jens
>
>
>
>
>
>
> ------------------------------------
>
> **** 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/
>
> Yahoo! Groups Links
>
>
>
>