Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Need help create a simple condition

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

    Need help create a simple condition

    I am using Strategy Builder, and trying to create a condition where for example; current close price is 50% more than yesterdays closing price is.
    Can anyone help me create this condition?
    Thanks.

    #2
    Hello Maoz1155,

    The only math available in the strategy builder is with offsets on series.

    Add a variable.

    In the first condition set with no conditions set the variable to the value of Indicator -> PriorDayOHLC -> set the Plot to the PriorClose, and set the offset to Arithmetic, with the drop-down set to the asterisk '*' for multiplication, with the offset value set to 1.5.

    The use that variable for your price where needed in other condition sets
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_ChelseaB View Post
      Hello Maoz1155,

      The only math available in the strategy builder is with offsets on series.

      Add a variable.

      In the first condition set with no conditions set the variable to the value of Indicator -> PriorDayOHLC -> set the Plot to the PriorClose, and set the offset to Arithmetic, with the drop-down set to the asterisk '*' for multiplication, with the offset value set to 1.5.

      The use that variable for your price where needed in other condition sets
      Thank you very much!

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Mindset, 04-21-2026, 06:46 AM
      0 responses
      88 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      135 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      68 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by cmoran13, 04-16-2026, 01:02 PM
      0 responses
      119 views
      0 likes
      Last Post cmoran13  
      Started by PaulMohn, 04-10-2026, 11:11 AM
      0 responses
      69 views
      0 likes
      Last Post PaulMohn  
      Working...
      X