maxTickNumber and minTickNumber
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;
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