Changing chart view / price view to "fixed steps"

 

on metatrader, the distance of the "price display" changes nonstop to all kind of ugly numbers, how can i fix it like on the other pic so it always shows distances like 1.13200, 1.13400, 1.13600 etc?

Files:
 

Hello you can fixate the chart scale either by a right click on the chart and then chart properties, or by setting the property in the code for examples see: 

https://www.mql5.com/en/docs/constants/chartconstants/charts_samples

Documentation on MQL5: Constants, Enumerations and Structures / Chart Constants / Examples of Working with the Chart
Documentation on MQL5: Constants, Enumerations and Structures / Chart Constants / Examples of Working with the Chart
  • www.mql5.com
This section contains examples of working with chart properties. One or two complete functions are displayed for each property. These functions allow setting/receiving the value of the property. These functions can be used "as is" in custom mql5 applications. The screenshot below demonstrates the graphic panel illustrating how changing of the...
 
Marco vd Heijden:

Hello you can fixate the chart scale either by a right click on the chart and then chart properties, or by setting the property in the code for examples see: 

https://www.mql5.com/en/docs/constants/chartconstants/charts_samples

cool, thanks!


but when i adjust the price scale manually to 0.00500 per bar it goes back to the automatic scale, no matter which setting i use in chart properties.


is it then CHART_SCALE_PT_PER_BAR or CHART_POINTS_PER_BAR? where do it set the value of 0.00500 per bar?

Reason: