Is there a way to invert the y axis scale
Author: sedelstein
Creation Date: 11/28/2012 8:34 PM
profile picture

sedelstein

#1
Sometimes, it is interesting to look at charts with an inverted scale. To be able to see a chart with declining as bullish (in a sense). I did a search of the forums and came up blank.

Is it possible to do this?
profile picture

Eugene

#2
I did a search too and found this:

Sentiment indicator using Rotation Rank

Eugene.
9/21/2011 10:10 AM

QUOTE:
There's no WealthScript property/feature to invert the scale but you could change the sign of the values in a copy of your DataSeries and plot the copy as usual. So that e.g. RSI 10.0 becomes -10, 65.0 becomes -65.
profile picture

sedelstein

#3
Thanks Eugene

Can you do this for the Price Series in the PricePane?
I suppose you would have to change signs of the Open, High, Low, and Close
profile picture

Eugene

#4
No, but you can plot synthetic bars (or alter the Bars object) and do as this FAQ suggests:

FAQ: Is there ChangeBar method in WL6? + I want to chart an indicator, but without the stock price. Can I hide the PricePane?

CODE:
Please log in to see this code.
profile picture

sedelstein

#5
Thank you! This is excellent
profile picture

sedelstein

#6

I'm getting a strange result when I run this that I can't explain. The PricePane series comes out odd even though I havent operated on it. Can you see whats going on?
CODE:
Please log in to see this code.
profile picture

sedelstein

#7
In addition, the commented out code in the for loop is what I really wanted. The new high should be the negative of the low and vice versa
profile picture

Eugene

#8
What's odd, strange, and what's going on?
profile picture

sedelstein

#9
[IMG][/IMG]
Not sure how to post an IMG but

the main price series keeps the original open low and close but the High is now a negative so I get very long tails

I never did any operations on the original Bars in the code.

1) How can I post a .png or other IMG in this post to show you
2) For other purposes, how should one initialize the Bars object
3) the problem above

Thanks
profile picture

Eugene

#10
You can only get "very long tails" when running on .SPX and that's OK because the Bars collection have been modified. Otherwise you will get a correct chart.
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).