1. create an array full of nulls

for( i=0; i < barcount; i++)
{
   MyArray[i] = null;
}
2.  Load only the positions into the array that you want to appear 
in the plot.  Something like: 

for( i = (barcount - 1) - nbars; i < barcount; i++)
{
   MyArray[i] = PlotVales[i];
}

3. Plot the array

Plot(MyArray; "My Array" - - - - 

You can also plot a segment in the middle of the array, but the indexing gets 
trickier.

ReefBreak


--- In [email protected], "osp2osp" <osp2...@...> wrote:
>
> How to plot 21 days EMA only for the last 21 bars.  
> 
> Thank you.
> 
> Warm Regards.
> 
> K Karunakaran
>


Reply via email to