![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
I built an indicator that shows +1 when stochastic is above +80 and shows -1 whent it's below +20.
I would like to biult one other indicator which sum +1 for each time the stochastic remains above +80 and sum -1 for each time the stochastic still below 20.
I know that I need to do a Looping, but I don't know if an array is allowed. Can you show me an exemple and how would you probably do?
I did this way, but it's not working.
Thanks
rodrigosm