hard stop assistance pls

in the backtester in the stops section I want to use a stop that does not move and is either a lowest low of x number of bars or a fixed atr stop like using a 2 atr stop. Is their a way to do this thanks in advance.

Hi Tim,

We have no stop for that, but you can add it as an exit condition.

You can use the ValueWhen() function - see https://help.optuma.com/kb/faq.php?id=1048

c1 = {the condition for the enter - ie the same script};
a1 = ATR(BARS=14, MULT=2.00); 
v1 = close() - a1; 
VALUEWHEN(v1, c1)

So if your entry condition was close crossing above a moving average

c1 = CLOSE() CrossesAbove MA(BARS=50);

Then the exit script could be what you already have OR this
stop

With the script in ATR Stop being

c1 = CLOSE() CrossesAbove MA(BARS=50); 
a1 = ATR(BARS=14, MULT=2.00); 
v1 = close() - a1; 
VALUEWHEN(v1, c1)

One thing I would like to do is add some script functions for “EnterPrice()” which would return the enter price. Also DaysSinceEnter() etc so you don’t need to repeat the script. That will be in a future update.

Hope that helps

Mathew

thanks for your assistance Matt