• Get $30 off VIP with code SUMMER30. Ends July 27. Happy trading!

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