Rejoignez notre page de fans
![Indicateurs](https://c.mql5.com/i/code/indicator.png)
Plot the previous candlestick OHLC of the selected period - indicateur pour MetaTrader 5
- Vues:
- 3859
- Note:
- Publié:
- 2023.09.10 15:14
- Mise à jour:
- 2023.09.10 18:18
-
Besoin d'un robot ou d'un indicateur basé sur ce code ? Commandez-le sur Freelance Aller sur Freelance
This is an indicator which will automatically plot the previous highs and lows of the selected period with a colored horizontal line.
The indicator will maintain the previous high price and previous low price for the selected period when switching timeframe:
The default is plotting the previous day highs and lows.
You can adjust the period in the input so that you may also automatically plot the previous hourly highs and lows, the previous 30 minute highs and lows...and so on.
----------------------------------------------------
EDIT: An updated version now plots highs and lows as well as the open and close for the previous candle of the selected period.
![Translating mouse click on chart into price value (Helper function)](https://c.mql5.com/i/code/indicator.png)
This is a helper function which enables you to find the price of the symbol (the prices on the Y-axis) wherever you click the mouse on the chart. Using OnChartEvent, we don't have an MQL5 function in the API to do this, we can only obtain X and Y pixel values with mouse click.
![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.
![Stochastic code for beginners by William210](https://c.mql5.com/i/code/indicator.png)
Stochastic beginner tutorial to learn how to code in MQL5
![Automatic Chart Refresher](https://c.mql5.com/i/code/indicator.png)
A tool which refreshes the chart automatically and will make active indicators update if something stopped plotting on the chart.