Please consider the following code:
TimeFrameSet(in5minute);
hh = High;
bb = BarIndex();
dd = DateTime();
StaticVarSet("_xxHigh1",Hh);
StaticVarSet("_xxBarc1",BB);
SetChartOptions( 0, chartShowArrows | chartShowDates );
_N( Title = StrFormat( "{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 ) ) ) );
Plot( C, "Close", ParamColor( "Color", colorDefault ), styleNoTitle | ParamStyle( "Style" ) | GetPriceStyle() );
printf("Close = "+C+"\n");
printf("Datetime = "+DateTimeToStr(selectedvalue(DateTime())));
TimeFrameRestore();
StaticVarSet("_xxHigh2",High);
StaticVarSet("_xxBarc2",BarIndex());
My understanding is that the static vars that store compressed arrays (like _xxHigh1) will first be automatically expanded and then stored to shared memory.
Am I right?
Because when I try to retrieve them from another window, they seem to be expanded.