![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
Like in the iHighest and iLowest where it can scan the last 100 or however much bars you designate, how do i make my EA or Indicator i've made to analyze previous bars as well.
I've seen it done in a pattern recognition indicator where it plots hammers, shooting stars, etc... on previous candles as well as forward scanning live candles.
So far i've only made my EA be able to detect desirable conditions moving forward, how would i also let it detect conditions of lets say 100 bars backwards to plot objects on the chart?
Does it have something to do with shift? If so can someone provide the code or the concept to form the code i'll be thankful