Why don't you have candle timer for MT5? - page 2

 
Conor Mcnamara #:

There's been a few different approaches and they all work just fine. 

OnTick can be precarious because not always do ticks arrive, so OnTimer would be best or a constantly running while loop.

At the end of the day, it all depends upon the level of responsiveness versus the level of resource consumption desired. For example, a scalping trader on an M1 chart would obviously prefer the high level of responsiveness associated with OnTimer()--while a positional trader on a D1 chart could care less and use OnStart(), OnCalculate(), or OnTick().

 
Alain Verleyen #:
Similar bad code.
As a moderator you can remove this code, If its bad.
Alain Verleyen #:
Similar bad code.

Thank you for taking the time to review and comment on the code. I respect your experience and understand that different developers evaluate quality using different standards.

This same question was once asked on the forum to a well-known publisher who has contributed thousands of codes. His response was:
“The code is provided as-is. You are free to modify it yourself if you consider it bad.”
I believe that principle still reflects the spirit of this community.

The code has been downloaded over 11,500 times and received multiple positive ratings, which suggests that many users found it functional and useful for their needs. While it may not align with every developer’s preferred structure or architectural style, it does work as intended, and that is why users chose to rate it positively.

If you feel there are areas that can be improved, constructive suggestions or example fixes in the comments would be extremely valuable for the community. Likewise, if the code does not meet the platform’s standards, you of course have the authority to take appropriate moderation action as you are a moderator.

As contributors, we share code voluntarily and without compensation. Not every contributor is a commercial-grade EA developer, and not every shared script aims to be a fully robust or monolithic solution. In my view, functionality and usefulness to end users are also valid measures of value.

I’ve done my part by sharing working code and making it available to others. 

 
Rajesh Kumar Nait #:
As a moderator you can remove this code, If its bad.

Thank you for taking the time to review and comment on the code. I respect your experience and understand that different developers evaluate quality using different standards.

This same question was once asked on the forum to a well-known publisher who has contributed thousands of codes. His response was:
“The code is provided as-is. You are free to modify it yourself if you consider it bad.”
I believe that principle still reflects the spirit of this community.

The code has been downloaded over 11,500 times and received multiple positive ratings, which suggests that many users found it functional and useful for their needs. While it may not align with every developer’s preferred structure or architectural style, it does work as intended, and that is why users chose to rate it positively.

If you feel there are areas that can be improved, constructive suggestions or example fixes in the comments would be extremely valuable for the community. Likewise, if the code does not meet the platform’s standards, you of course have the authority to take appropriate moderation action as you are a moderator.

As contributors, we share code voluntarily and without compensation. Not every contributor is a commercial-grade EA developer, and not every shared script aims to be a fully robust or monolithic solution. In my view, functionality and usefulness to end users are also valid measures of value.

I’ve done my part by sharing working code and making it available to others. 

There is nothing to moderate here, I give my opinion so people have more information to decide.