You need to check the values in the (predefined) Volume array for highest and lowest value instead of assigning totTickCount value as soon as it is bigger than maxTickCount (think again what happens when your code is run, step by step)!
Use https://docs.mql4.com/series/ihighest and iVolume[shift] with the iHighest shift for maxTickCount.
This expression is useless: totTickCount = totTickCount;
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
Hi, i was trying to just code a simple function that shows on screen as a comment the following info:
1- current spreed
2-tick count in the last 60 minutes
3-max tick count for last 60 minutes
4-minimum tick count for last 60 minutes
However, i think it is not working properly. I see that i am missing some coding principal here but i do not know which.
On Tick()
The result is