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


Postby gregorio123456 » 29 Oct 2007

Hi Marina

Test this function

input: price(NumericSeries),length(NumericSimple),barsago(NumericSimple);

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


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”