| stevehopwoodforex.com https://www.stevehopwoodforex.com/phpBB3/ Print view |
|
| Is it possible to code in an Auto Price Scale function? https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=4118 |
Page 1 of 1 |
| Author: | RedLineFred [ Mon Feb 16, 2015 2:50 am ] |
| Post subject: | Is it possible to code in an Auto Price Scale function? |
I have coded an indicator that updates the chart depending on the user's input. All works as it should, but there are times when the prices to be displayed are higher/lower than the current zoom level on the price scale, and so off chart. I have tried looking for any code snippets that would allow me to effectively AutoScale, but to no avail. My thinking is to calculate the max and min prices within the range of bars being displayed and then adjusting the price scale to show these extents. Can this be achieved? Any clues as to how? cheers Fred |
|
| All times are UTC | Page 1 of 1 |
|
Powered by phpBB® Forum Software © phpBB Limited |
|