Niyoshaka Stanley Lameck: I need to record this number
Your number will be wrong as soon as a new bar starts.
Remember the bar time when the event occurred. Use iBarShift to find the current bar index of that time.
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
Dear
Good day
I am learning to code EA for two timeframe EMA trading strategy. I need to count/calculate the number of bars from when FAST EMA crosses SLOW EMA and when the Ask Prices retraces back and touches on or below SLOW EMA. I need to record this number as well as be able to get the Highest price between these two point. But I need to continue counting the bars until when the trend reverses.
Anyone who can help how to accomplish this please.
Regards