//+------------------------------------------------------------------+
int start() {
int limit;
int counted_bars=IndicatorCounted();
int i;
if(counted_bars<0) return(-1);
if(counted_bars>0) counted_bars--;
limit=Bars-counted_bars;
if (limit>Limit && Limit>0) limit = Limit;
for (i = limit;i>=0;i--) WPR = (iWPR(Symbol(),Period(),WPR_Period,i)+50.0)*2.0;
for (i = limit;i>=0;i--) MA = iMAOnArray(WPR,0,MA_Period,0,MA_Mode,i);
return(0);
}
[/mw_shl_code]