Paintbar scaling wrong
Paintbar scaling wrong
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 318 times
- TJ
- Posts: 7743
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2222 times
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?
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 218 times
- Marina Pashkova
- Posts: 2758
- Joined: 27 Jul 2007
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.
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.
- TJ
- Posts: 7743
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2222 times
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.
I am also a little surprised that Tssupport engineers were not able to reproduce the problem if they tried the indicator on both versions.
- TJ
- Posts: 7743
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2222 times
not necessary. All depends on the visual order you assigned to it.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.
right click on the indicator... half way down the pop up box.
- Marina Pashkova
- Posts: 2758
- Joined: 27 Jul 2007
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.
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 152 times