Watch how to download trading robots for free
Find us on Telegram!
Join our fan page
Interesting script?
So post a link to it -
let others appraise it
You liked the script? Try it in the MetaTrader 5 terminal
Indicators

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

Views:
2245
Rating:
(4)
Published:
2023.09.09 23:42
Updated:
2023.09.10 00:19
GetGridVals.mq5 (2.35 KB) view
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.



    Drag and Drop Move TakeProfit Drag and Drop Move TakeProfit

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

    Drag and Drop Move StopLoss Drag and Drop Move StopLoss

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

    Plot the previous candlestick OHLC of the selected period Plot the previous candlestick OHLC of the selected period

    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 code for beginners by William210 Stochastic code for beginners by William210

    Stochastic beginner tutorial to learn how to code in MQL5