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 CaptainJack, 05-29-2026, 05:09 AM
      0 responses
      169 views
      0 likes
      Last Post CaptainJack  
      Started by CaptainJack, 05-29-2026, 12:02 AM
      0 responses
      88 views
      0 likes
      Last Post CaptainJack  
      Started by charlesugo_1, 05-26-2026, 05:03 PM
      0 responses
      128 views
      0 likes
      Last Post charlesugo_1  
      Started by DannyP96, 05-18-2026, 02:38 PM
      1 response
      208 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 05-11-2026, 05:56 AM
      0 responses
      185 views
      0 likes
      Last Post CarlTrading  
      Working...
      X