hard stop assistance pls

Optuma Forums Optuma Scripting hard stop assistance pls

  • This topic has 2 replies, 2 voices, and was last updated 1 year ago by Tim.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #60981
    Tim
    • Topics: 11
    • Replies: 19
    • Posts: 30

    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
    Mathew
    • Topics: 40
    • Replies: 2,010
    • Posts: 2,050

    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

    #61597
    Tim
    • Topics: 11
    • Replies: 19
    • Posts: 30

    thanks for your assistance Matt

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

Pin It on Pinterest