Automatic Fixed Scale with Top/Bottom Margins

Automatic Fixed Scale with Top/Bottom Margins

This code was written as an indicator. It adds top and bottom margins to the chart. Both can be adjusted separately.

This gives some breathing space to the top and bottom of the chart for drawing. It’s changing chart scale to fixed scale, then finds Highest and Lowest price visible on the chart. Then adjust those prices with selected margin, and those are used for Fixed scale.

Also added automatic switch to auto-scroll when the chart is moved.

Head Margin by default bigger is on top of the price is above mid-range (uptrend), and on the bottom of the price is below mid-range.

Register to download