onedognight:
If the values are not important to you and you just use the 4th value visually then you will need to scale it's values so it fits within the range of the other 3 values. Unfortunately there is no option to have Y axis scales on the left as well as on the right, just one Y axis is available.
Hi
I want to display 3 indicators in separate window but show those and a 4th value in data window. Everything works except that the scale of the 4th value causes the display of the first 3 values to be crammed together. How do I prevent the 4th value from affecting the vertical scale of the display window? Suggestions gratefully received.
onedognight:
I assume you mean that the code works fine as posted, but (a) you have to change #property indicator_buffers to 4 to make the ATR/SD appear in the data window, and then (b) doing that alters the scale of the indicator.I want to display 3 indicators in separate window but show those and a 4th value in data window. Everything works except that the scale of the 4th value causes the display of the first 3 values to be crammed together. How do I prevent the 4th value from affecting the vertical scale of the display window? Suggestions gratefully received.
I haven't had to try anything like this before, but it would appear that you can keep the values in the data window while preventing the line from affecting the scale of the indicator by using SetIndexDrawBegin(). For example, adding SetIndexDrawBegin(3, 999999999); seems to work in terms of keeping the data values, but completely suppressing any aspect of the drawing.
onedognight:
Thanks jjc; that worked!
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi
I want to display 3 indicators in separate window but show those and a 4th value in data window. Everything works except that the scale of the 4th value causes the display of the first 3 values to be crammed together. How do I prevent the 4th value from affecting the vertical scale of the display window? Suggestions gratefully received.