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

Convert mouse clicks on the chart to price values ​​(helper function) - MetaTrader 5 Script - MT4/MT5 Resources

author EAcpu | 5 reads | 0 comments |

Translating mouse click on chart into price value (Helper function) - indicator for MetaTrader 5

This is a helper function that allows you to convert (x, y) pixel values ​​into the prices you see on the Y-axis using a button click in an OnChartEvent.

Translating mouse click on chart into price value (Helper function) - indicator for MetaTrader 5


Attachment download

📎 getgridvals.mq5 (2.35 KB)

Source: MQL5 #46320

Convert mouse clicks on the chart to price values ​​(helper function) - MetaTrader 5 script usage and filtering recommendations

Convert mouse clicks on the chart into price values ​​(helper function) - MetaTrader 5 script belongs to Grid 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