Voir comment télécharger gratuitement des robots de trading
Retrouvez-nous sur Twitter !
Rejoignez notre page de fans
Rejoignez notre page de fans
Vous avez aimé le script ? Essayez-le dans le terminal MetaTrader 5
![Indicateurs](https://c.mql5.com/i/code/indicator.png)
Translating mouse click on chart into price value (Helper function) - indicateur pour MetaTrader 5
- Vues:
- 2576
- Note:
- Publié:
- 2023.09.09 23:42
- Mise à jour:
- 2023.09.10 00:19
-
Besoin d'un robot ou d'un indicateur basé sur ce code ? Commandez-le sur Freelance Aller sur 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](https://c.mql5.com/i/code/script.png)
Set TakeProfit by just dragging and dropping script on the desired price level.
![Drag and Drop Move StopLoss](https://c.mql5.com/i/code/script.png)
Set StopLoss by just dragging and dropping script on the desired price level.
![Plot the previous candlestick OHLC of the selected period](https://c.mql5.com/i/code/indicator.png)
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](https://c.mql5.com/i/code/indicator.png)
Stochastic beginner tutorial to learn how to code in MQL5