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

Point to Point Conversion Factor – MetaTrader 4 Library | MT4 EA Download – MetaTrader 4 Resources

author EAcpu | 3 reads | 0 comments |

Description: This is a conversion factor. Used to detect whether the broker is 4 or 5 digits. Since MetaTrader 4 uses points to calculate everything, coders can use this function to convert points into points for machine reading.

For example: If you want to set a stop loss of 50 pips for 5 brokers, please refer to this function to convert it to 500 pips for machine reading.

If it's a 5-digit broker:


Attachment download

📎 pips_to_points_conversion_factor.mq4 (1.25 KB)

Source: MQL5 #15636

Point-to-point conversion coefficient - MetaTrader 4 library | MT4 EA download - MetaTrader 4 resource usage and screening recommendations

Point-to-point conversion coefficient - MetaTrader 4 library | MT4 EA download - MetaTrader 4 resources belong to MT4 EA 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