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 NullPointStrategies, Yesterday, 05:17 AM
      0 responses
      59 views
      0 likes
      Last Post NullPointStrategies  
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      134 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      75 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      45 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      50 views
      0 likes
      Last Post TheRealMorford  
      Working...
      X