Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Doing simple arithmetic conditionals in Strategy Builder

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Doing simple arithmetic conditionals in Strategy Builder

    Is it possible to create calculations to test against in the "If" portion of the Strategy Builder?
    Ex: If Close - Open < @userVariable, then in the "Do the following" section, set a variable? Ex: IsBigRed = True

    #2
    Probably not. But it is very easy to implement in Ninjascript editor. Just use strategy builder as a starting point, then unlock the code and put the details into ninjascript editor.

    Comment


      #3
      Thanks, Playdc. That's pretty much what I did. Would've been nice to see Strategy Builder be able to do this. They have Offset, but it's very limited.

      Comment


        #4
        Hello Trader4Life,

        Thank you for your post.

        This is possible in the Strategy Builder but you would have to use a custom series. In one set, you would need to set the value of the custom series to Close-Open. Then in another set, you could create a condition to compare the value of the custom series to your user variable.

        https://ninjatrader.com/support/helpGuides/nt8/index.html?builder_screens.htm#UnderstandingTheAdd itrionalDataScreen

        As Playdc suggested, this is simpler to implement using manual coding in the Editor and would not require you to create a series to store any values.

        Please let us know if you have any further questions.

        Comment


          #5
          Thanks Gaby! That's interesting... I was wondering what custom series was used for... excellent

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by kinfxhk, 07-13-2026, 10:18 AM
          0 responses
          59 views
          0 likes
          Last Post kinfxhk
          by kinfxhk
           
          Started by kinfxhk, 07-13-2026, 09:50 AM
          0 responses
          41 views
          0 likes
          Last Post kinfxhk
          by kinfxhk
           
          Started by kinfxhk, 07-13-2026, 07:21 AM
          0 responses
          46 views
          0 likes
          Last Post kinfxhk
          by kinfxhk
           
          Started by kinfxhk, 07-11-2026, 02:11 AM
          0 responses
          37 views
          0 likes
          Last Post kinfxhk
          by kinfxhk
           
          Started by SalmaTrader, 07-07-2026, 10:26 PM
          0 responses
          157 views
          0 likes
          Last Post SalmaTrader  
          Working...
          X