Welcome Forex EA downloads & MT4/MT5 auto-trading resources — EAs, Gold EAs, quant tools and real-world automation.
Sign In Sign Up

Automatic fixed sizing with top/bottom margin - MetaTrader 4 Script | Forex Indicators Download - MT4/MT5 Resources

author EAcpu | 5 reads | 0 comments |

Automatic Fixed Scale with Top/Bottom Margins - indicator for MetaTrader 4

Automatic Fixed Scale with Top/Bottom Margins - indicator for MetaTrader 4

The code is written as an indicator. It adds top and bottom margins to the chart. Both can be adjusted individually.

This gives some breathing room for the top and bottom of the chart to be drawn. It changes the chart scale to a fixed scale and then finds the highest and lowest price visible on the chart. These prices are then adjusted with a selected margin, which are used to fix the size.

Also added is the ability to automatically switch to auto-scrolling when moving the chart.

By default, the head margin is larger and placed at the top if the price is above the middle range (uptrend) and at the bottom if the price is below the middle range.

Automatic Fixed Scale with Top/Bottom Margins - indicator for MetaTrader 4

Automatic Fixed Scale with Top/Bottom Margins - indicator for MetaTrader 4


Attachment download

📎 fixedchartscale.mq4 (5.62 KB)

Source: MQL5 #17200

Automatic fixed sizing with top/bottom margin - MetaTrader 4 script | Forex indicator download - MT4/MT5 resource usage and screening recommendations

Automatic Fixed Scale with Top/Bottom Margin - MetaTrader 4 Script | Forex Indicator Download - MT4/MT5 resources are Forex indicator related resources. Before downloading or referencing, it is recommended to confirm the platform version, transaction type, time period, whether DLL is required, whether source code is included, parameter description and historical update records.

Both automated trading tools and foreign exchange indicators should first undergo backtesting, simulated account observation, and small capital verification. Pay special attention to spreads, slippages, maximum drawdowns, position opening frequency, stop loss methods, trading periods and broker rules, and avoid direct real-time execution based only on titles or short-term profit descriptions.

Verification code Refresh