Iβd need to see the rest of the script to answer that.
Generally, you get that warning if you either:
* Nest a macro loop inside a macro loop or
* Break from the macro loop without using the macro break.
Iβm guessing itβs the latter.
You are absolutly right. I didn't close the macro loop properly. Thank you so much!πππ
For any newbie like me who have the same problem, the macro loop can be closed like this:
function lastTradeFail(){
bool res = false;
for(closed_trades){
...
res = true;
break_trades;
}
return res;
}