PLEditor

Questions about MultiCharts and user contributed studies.
gregorio123456
Posts: 117
Joined: 08 Nov 2005
Been thanked: 3 times

PLEditor

Postby gregorio123456 » 29 Oct 2007

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

User avatar
Marina Pashkova
Posts: 2758
Joined: 27 Jul 2007

Postby Marina Pashkova » 29 Oct 2007

Hi jo,

We have reproduced the problem. The second script should not return 1 for all charts. This is a bug and it will be fixed.

Thank you for drawing our attention to the problem. We appreciate your help.


Return to “MultiCharts”