hard stop assistance pls

Optuma Forums Optuma Scripting hard stop assistance pls

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #60981
    AvatarTim
    • Topics: 10
    • Replies: 15
    • Posts: 25

    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.

    #61009
    MathewMathew
    • Topics: 32
    • Replies: 1,602
    • Posts: 1,634

    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

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

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

    With the script in ATR Stop being

    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

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

Pin It on Pinterest

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close