See screenshot, this problem and on tick chart's.
MC where elementary percent calculation in trendline, this very difficult ?
9.1 r3, incorrect Max numb bars study will ref [SOLVED]
9.1 r3, incorrect Max numb bars study will ref
- Attachments
-
- BarNumbers.PNG
- (57.39 KiB) Downloaded 571 times
- TJ
- Posts: 7743
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2222 times
Re: 9.1 r3, incorrect Max numb bars study will ref
What is the problem?See screenshot, this problem and on tick chart's.
MC where elementary percent calculation in trendline, this very difficult ?
Re: 9.1 r3, incorrect Max numb bars study will ref
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](...
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.
Re: 9.1 r3, incorrect Max numb bars study will ref
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 ?
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 ?
- 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]
It's because of the `myTHB` offset with the set plot keywords. In another, similar thread about plotting a horizontal price line Henry said: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 ?
Source.That is expected behavior. Plots do have BarsBack and the displacement directly affects the BarsBack.
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.