How to avoid this product rules being breaking for my EA?

 

The product rule -:
Embedding any limitations by time, account type or number, financial instrument, etc. into your Program is prohibited. All such actions will be considered as unfriendly to the Buyer and are prohibited. "

I want to code an EA to work only on special instrument also in specific window to make the EA to be profitable. Let's forget the instrument, at least it should be work only inside the specified time window. 
If I set inputs for time window (so user can set them as want) without limiting inside the code by myself, I still not sure it may or may not break the rule " Embedding any limitations by time". 

How can I do this? I think this rule is not practical. because any strategy won't work on every instrument and every time. everything works when the required conditions are met.  don't think it's a bad thing to filter the trading environment
to get the best results, even it by the instrument or the time, or the account type as well. 

If I set inputs as,
start hour: 00:00
end hour: 12:00 


I think it's a limitation by time. If I not set it, the EA will run for whole day until the user removes the EA from the chart. it may be trade in bad conditions and get bunch of losses even if the EA is profitable inside the required time window. 
even if we make a trading strategy, all we consider about,

which instruments?
which time window?
the trading conditions and risk Mangement. 

here the mql expecting products that can trade any time any instrument but also need to profitable. which is something never happening in real life. 

 
Hapu Arachchilage Tharindu Lakmal:

The product rule -:
Embedding any limitations by time, account type or number, financial instrument, etc. into your Program is prohibited. All such actions will be considered as unfriendly to the Buyer and are prohibited. "

I want to code an EA to work only on special instrument also in specific window to make the EA to be profitable. Let's forget the instrument, at least it should be work only inside the specified time window. 
If I set inputs for time window (so user can set them as want) without limiting inside the code by myself, I still not sure it may or may not break the rule " Embedding any limitations by time". 

How can I do this? I think this rule is not practical. because any strategy won't work on every instrument and every time. everything works when the required conditions are met.  don't think it's a bad thing to filter the trading environment
to get the best results, even it by the instrument or the time, or the account type as well. 

If I set inputs as,
start hour: 00:00
end hour: 12:00 


I think it's a limitation by time. If I not set it, the EA will run for whole day until the user removes the EA from the chart. it may be trade in bad conditions and get bunch of losses even if the EA is profitable inside the required time window. 
even if we make a trading strategy, all we consider about,

which instruments?
which time window?
the trading conditions and risk Mangement. 

here the mql expecting products that can trade any time any instrument but also need to profitable. which is something never happening in real life. 

The time rule refers to limiting it as in for a demonstration . For example making it run until April 1st 2025.

You can hardcode trading hours

You cannot hardcode a rejection method however if the traded instrument is not the one you want.

 
Lorentzos Roussos #:

The time rule refers to limiting it as in for a demonstration . For example making it run until April 1st 2025.

You can hardcode trading hours

You cannot hardcode a rejection method however if the traded instrument is not the one you want.

Ok I got it bro. Thanks for the explanation.