Hi Marina
Test this function
input: price(NumericSeries),length(NumericSimple),barsago(NumericSimple);
vars:movaverage(0);
movaverage= XAverage (price,length);
if movaverage[barsago]> movaverage then __AverageTrendSlop=-1 else __AverageTrendSlop=1
And this
input: price(NumericSeries),length(NumericSimple),barsago(NumericSimple);
if XAverage [barsago] (price,length) > XAverage (price,length)then __AverageTrendSlop=-1 else __AverageTrendSlop=1
Both is compile ,both is same what I want ....but write different
1º work ...the second give return of 1 all charts
Thanks
jo
PLEditor
- Marina Pashkova
- Posts: 2758
- Joined: 27 Jul 2007