Adding trailstop to script

Jompatan

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

Top