Ok, we're almost there!

Only one small issue remains. I'm putting that up as a puzzle to the users: Who can fix bfleming's script so that he is really placing an ATR stop? Hint: it's only one line that is wrong now. And what is the risk of his trading when it's not fixed?

Solution tomorrow. BTW, Zorro could theoretically fix this automatically or warn you with an error message - I'll put that on our to do list.