9.1 r3, incorrect Max numb bars study will ref  [SOLVED]

Questions about MultiCharts and user contributed studies.
TCust
Posts: 249
Joined: 01 Sep 2011
Has thanked: 6 times
Been thanked: 26 times

9.1 r3, incorrect Max numb bars study will ref

Postby TCust » 04 Mar 2016

See screenshot, this problem and on tick chart's.

MC where elementary percent calculation in trendline, this very difficult ?
Attachments
BarNumbers.PNG
(57.39 KiB) Downloaded 571 times

User avatar
TJ
Posts: 7740
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1033 times
Been thanked: 2221 times

Re: 9.1 r3, incorrect Max numb bars study will ref

Postby TJ » 04 Mar 2016

See screenshot, this problem and on tick chart's.

MC where elementary percent calculation in trendline, this very difficult ?
What is the problem?

TCust
Posts: 249
Joined: 01 Sep 2011
Has thanked: 6 times
Been thanked: 26 times

Re: 9.1 r3, incorrect Max numb bars study will ref

Postby TCust » 04 Mar 2016

For study I select 5 bars for calculation, how you see indicator draw after 600 bars.

Ps. May bee problem complex, I don know why indicator calculate " after more bars ", use in formula redraw operator

SetPlotColor[myTLB](2,Green);
SetPlotWidth[myTLB](2,6);
plot3[ic](...
Last edited by TCust on 04 Mar 2016, edited 1 time in total.

TCust
Posts: 249
Joined: 01 Sep 2011
Has thanked: 6 times
Been thanked: 26 times

Re: 9.1 r3, incorrect Max numb bars study will ref

Postby TCust » 04 Mar 2016

Now add check arrays, have same result, indicator drawing after 120 bars

if myTHB > myTLB and maxlist(myTLB,myTHB) < CurrentBar then
begin
SetPlotColor[myTHB](1,Red);
SetPlotWidth[myTHB](1,6);
end;

How I see this operator change Max numb bar study will ref, this not critical but not comfortably ?

User avatar
JoshM
Posts: 2195
Joined: 20 May 2011
Location: The Netherlands
Has thanked: 1544 times
Been thanked: 1565 times
Contact:

Re: 9.1 r3, incorrect Max numb bars study will ref  [SOLVED]

Postby JoshM » 04 Mar 2016

Now add check arrays, have same result, indicator drawing after 120 bars

if myTHB > myTLB and maxlist(myTLB,myTHB) < CurrentBar then
begin
SetPlotColor[myTHB](1,Red);
SetPlotWidth[myTHB](1,6);
end;

How I see this operator change Max numb bar study will ref, this not critical but not comfortably ?
It's because of the `myTHB` offset with the set plot keywords. In another, similar thread about plotting a horizontal price line Henry said:
That is expected behavior. Plots do have BarsBack and the displacement directly affects the BarsBack.
Source.

So that you're seeing a much higher max bars back value than you've specified manually seems to be caused by displacing the plots.

You can also draw a trend line that doesn't have this max bars back problem, if that's an option for your script.

TCust
Posts: 249
Joined: 01 Sep 2011
Has thanked: 6 times
Been thanked: 26 times

Re: 9.1 r3, incorrect Max numb bars study will ref

Postby TCust » 04 Mar 2016

Ok Thank JoshM


Return to “MultiCharts”