Hi, I hurried a bit to admit the issue solved. The problem is i can`t use in the same script ATR and adviseLong/Short because they need different LookBack values. In my case adviseLong/Short needs value 3 which is the number of bars in pattern, and ATR needs much more. First i change the value to suit ATR and after calling it i change the value to 3 for adviseLong/Short. But in this case Zorro returns error 030 (though LookBack-settings-asset sequense seems to be right).
Here is the code fragment (the whole text is similar to above posted):

LookBack = 500 (or 0);
NumWFOCycles = 10;

set(RULES+TESTNOW);
asset("EUR/USD");
Stop = 2*ATR(3);

LookBack = 3;
if(adviseLong(PATTERN+2,0,....

What is wrong here? How can i set a marketaware stop loss in case of using machine learning algo?