Can somebody help me out with a code, that would exit short trades, if new low hasn't been made for, let's say 20 bars. The logic is to give some room for the trade to pan out, but if it doesn't continue (make new low), exit.
Having this example code, I could backtest and optimize what is the best bar count setting and also modify code for exit long.
Thanks in advance.
Comment