Scaleout Level as Function of ATR

Hi,

First you need to get your badge explained here

I really didn't get "what" is not right but if you can clear that out because priceatshort and targetprice are not arrays so you cant use them in Exploration the way you want.
Store those values with array operator.

ShortPrice[ i ] this variable is not defined in your code.