//==================================
LB = SelectedValue(BarIndex());
UB = Status("lastvisiblebarindex"); // get the rightmost bar in chart window
Plot(Lb, "select" ,colorGreen, styleNoLabel);
Plot(ub, "right most" ,colorGreen, styleNoLabel);
Plot(C,"K",Null,64+styleOwnScale);
for(w=lb; w<=ub; w++)
{
Q= C[w];
}
//==================================
Paste to AFL Editor ---> Click Apply indicator -----> Success !!!
--------> click Chart window by mouse ----> Q= C[w]; Subscript out of
range
----------> but I find LB and UB value that is in range of C[ ] array