Watch how to download trading robots for free
Find us on Telegram!
Join our fan page
Join our fan page
You liked the script? Try it in the MetaTrader 5 terminal

Translating mouse click on chart into price value (Helper function) - indicator for MetaTrader 5
- Views:
- 3351
- Rating:
- Published:
- 2023.09.09 23:42
- Updated:
- 2023.09.10 00:19
-
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance
This is a helper function to allow you to translate the (x, y) pixel value to the price which you see on the Y-axis, using a click press with OnChartEvent.

Set TakeProfit by just dragging and dropping script on the desired price level.

Set StopLoss by just dragging and dropping script on the desired price level.

It will automatically plot a colored horizontal line on the previous open/highs/lows/close of the selected period, and it will make the lines consistent on this price when switching timeframes.

Stochastic beginner tutorial to learn how to code in MQL5