• LIMITED TIME ONLY: Take $40 off VIP with code: BTD40.

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