• Happy Independence Day! Take $40 off VIP Membership with code JULY4. Sign up here.

Adding trailstop to script


New member
Hello, I want to do a trailstop but I am having trouble resetting the variable when the exit condition is met, which is that the close cross below the "Stop" value.

def Stop = if high * (0.98)> stop [1] then high * (0.98) else stop [1];

Similar threads