- In OnChartEvent capture the CHARTEVENT_CLICK event.
Event Handling Functions - Functions - Language Basics - MQL4 Reference - Convert the X/Y to Price/Time with ChartXYToTimePrice.
ChartXYToTimePrice - Chart Operations - MQL4 Reference - Convert the time to bar index
iBarShift - Timeseries and Indicators Access - MQL4 Reference - Get the high/low/ATR of the bar, and draw it.
- In OnChartEvent capture the CHARTEVENT_CLICK event.
- Alternatively just write an indicator to put a small dot above/below every candle and be done.
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
I was wondering if there was a way to click on a particular candle and have 2 horizontal lines come up, above and below the close of the candle, that are 1.5x the 14-period ATR? To be clear this would be for candles in the past.
I'm trying to quickly manually backtest some trend indicators and this way my criteria. Any help would really be appreciated.