For now I use this construction:
But I need to do condition for while to repeat only after get new tick (equal mt5) ... Maybe anybody know how do it for better works?
Inserted Code
def AnalyzeAndAutoOrder():
time.sleep(5)
while(True):
..... any operations ....
# Sleep ...
time.sleep(0.250)
AutoTrade = threading.Thread(target=AnalyzeAndAutoOrder, daemon=True, args=())
AutoTrade.start() But I need to do condition for while to repeat only after get new tick (equal mt5) ... Maybe anybody know how do it for better works?