Originally Posted by AndrewAMD
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:
Code
function lastTradeFail(){
	bool res = false;
	for(closed_trades){
		...
		res = true;
		break_trades;
	}
	return res;
}

Last edited by AdamWu; 07/27/20 10:42.