Paintbar scaling wrong

Questions about MultiCharts and user contributed studies.
User avatar
Geoff
Posts: 198
Joined: 18 Apr 2007
Has thanked: 15 times
Been thanked: 4 times

Paintbar scaling wrong

Postby Geoff » 07 Jul 2008

Having just installed version 3.1 the attached paintbar study no longer plots the paint bar on to of the OHLC bar as it should. I checked the scaling and it is still correctly set to Same as Symbol.
Attachments
shl.xml
(3.27 KiB) Downloaded 315 times

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

Postby TJ » 07 Jul 2008

SetPlotWidth[Value1](1,BarWidth);

the value1 should be an offset from current bar.
The value1 is NOT a bar number or drawing object reference number.

User avatar
Geoff
Posts: 198
Joined: 18 Apr 2007
Has thanked: 15 times
Been thanked: 4 times

Postby Geoff » 07 Jul 2008

Thanks TJ,

I think the SwingHighBar and SwingLowBar functions return the bar offset to Value1 and Value2 but I'm no expert I just modified the ALTSWING code from TS forum to remove the alternate hi/low logic and use a paintbar rather than plot. This has worked fine in previous versions and only stopped working when I installed 3.1 so I cannot see how the code is now wrong?
Attachments
20050211171618ALTSWING.ELD
(3.67 KiB) Downloaded 216 times

User avatar
Geoff
Posts: 198
Joined: 18 Apr 2007
Has thanked: 15 times
Been thanked: 4 times

Postby Geoff » 17 Jul 2008

Would anyone from TSsupport please comment as to why this indicator does not plot correctly in 3.1
I am unable to upgrade until this is resolved.

Thanks,
Geoff

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

Postby Marina Pashkova » 18 Jul 2008

Hi Geoff,

I asked our programmers to look into the problem that you are describing, but they can't understand what exactly is wrong.

Could you please specify what exactly the discrepancies are compared to the older version?

Also, try to apply the same indicator from TS (the scale should be same as symbol) and your modified indicator. If you have the same inputs the results must be the same (at least that's what they were on our end). The only thing is that your indicator generally has more paintbars than the indicator points.

I can also suggest contacting our customer support via LiveChat. Our engineers would then connect to your PC to see what's going on.

Regards.

User avatar
Geoff
Posts: 198
Joined: 18 Apr 2007
Has thanked: 15 times
Been thanked: 4 times

Postby Geoff » 18 Jul 2008

See attached
Attachments
30.png
Version 3.0 with correct swing highs and lows
(25.44 KiB) Downloaded 704 times
31.png
Not sure what is going on in 3.1
(25.71 KiB) Downloaded 713 times

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

Postby TJ » 18 Jul 2008

not only the scaling are different, are they from the same indicator?!?!
they look like 2 different indicators because the plots are different too !

User avatar
Geoff
Posts: 198
Joined: 18 Apr 2007
Has thanked: 15 times
Been thanked: 4 times

Postby Geoff » 18 Jul 2008

Yes TJ, I had not noticed that as it takes so long to upgrade and recompile the indicators, but after taking the screen shots that can be seen, it was obvious that a paintbar should be on top of the OHLC bar not above or below it!
I am also a little surprised that Tssupport engineers were not able to reproduce the problem if they tried the indicator on both versions.

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

Postby TJ » 18 Jul 2008

Yes TJ, I had not noticed that as it takes so long to upgrade and recompile the indicators, but after taking the screen shots that can be seen, it was obvious that a paintbar should be on top of the OHLC bar not above or below it!
I am also a little surprised that Tssupport engineers were not able to reproduce the problem if they tried the indicator on both versions.
not necessary. All depends on the visual order you assigned to it.

right click on the indicator... half way down the pop up box.

User avatar
Geoff
Posts: 198
Joined: 18 Apr 2007
Has thanked: 15 times
Been thanked: 4 times

Postby Geoff » 25 Jul 2008

Marina,

Any progress on this, have your engineers been able to reproduce the problem?

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

Postby Marina Pashkova » 25 Jul 2008

Hi Geoff,

Attached, you will find the modified code.

The problem was that the offset was used for plotPaintBar
plotPB[Value1](High,Low,"scalper",ColorHigh);
but not for the argument. We have corrected that.
Attachments
SwingHiLo_mod.zip
(1.31 KiB) Downloaded 151 times

User avatar
Geoff
Posts: 198
Joined: 18 Apr 2007
Has thanked: 15 times
Been thanked: 4 times

Postby Geoff » 28 Jul 2008

Marina,

Works just like it used to. Thank you very much.


Return to “MultiCharts”