From 67aac378f519ce34b0642ef3b51cbcc08c366734 Mon Sep 17 00:00:00 2001 From: biohazardxxx Date: Mon, 11 Dec 2023 11:14:37 +0100 Subject: [PATCH] Update GlobalVariable.mqh When entering we delete any existing global variable with that name first. Otherwise this will cause a loop as GlobalVariable::makeTemp(m_name) will return false all the time. --- Include/Mql/Lang/GlobalVariable.mqh | 1 + 1 file changed, 1 insertion(+) diff --git a/Include/Mql/Lang/GlobalVariable.mqh b/Include/Mql/Lang/GlobalVariable.mqh index c7b4268..17274ac 100644 --- a/Include/Mql/Lang/GlobalVariable.mqh +++ b/Include/Mql/Lang/GlobalVariable.mqh @@ -248,6 +248,7 @@ public: void enter() { + GlobalVariable::remove(m_name); while(!GlobalVariable::makeTemp(m_name) && !IsStopped()) Sleep(100); }