Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to exit long below Low of Signal Bar at bar close.

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

    How to exit long below Low of Signal Bar at bar close.

    Hello there!
    I'm trying to add an exit long condition to the strategy I've built using the strategy builder.
    This condition should trigger the exit from a long position when the price drops below (close) the Signal bar low, which is the minimum price level at which the buy signal occurred.
    However, I want this exit to occur only if the closing price goes below the signal bar low, not at any other time.
    Could you please explain step by step how to do this from the beginning, as I'm not very familiar with the strategy builder interface and I'm just getting started with it?
    I would greatly appreciate it if you could record a video or provide a detailed step-by-step algorithm so that I don't miss anything.
    Thank you in advance!

    #2
    Hello Anquirk,

    Below is a link to a forum post with helpful resources on getting started with NinjaScript. Please watch the 'Automate Your Trading with NinjaTrader's Strategy Builder' training video.


    Add a variable on the Inputs and Variables page.
    When the condition is true for the 'signal bar' assign the Close to the variable (actions -> Misc -> Set variable name)
    In another condition compare the Close[0] to be less than (or Cross below) the variable.

    Below is a link to an example that assigns a value to a variable and uses this in a condition.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_ChelseaB View Post
      Hello Anquirk,

      Below is a link to a forum post with helpful resources on getting started with NinjaScript. Please watch the 'Automate Your Trading with NinjaTrader's Strategy Builder' training video.


      Add a variable on the Inputs and Variables page.
      When the condition is true for the 'signal bar' assign the Close to the variable (actions -> Misc -> Set variable name)
      In another condition compare the Close[0] to be less than (or Cross below) the variable.

      Below is a link to an example that assigns a value to a variable and uses this in a condition.
      https://ninjatrader.com/support/foru...596#post806596
      I saw that sources but as I mention before I'm not so good with strategy builder. That's why I'm asking for step by step detailed explanation if it possible please.
      Thank you!

      Comment


        #4
        Hello Anquirk,

        I would recommend learning how the tools in the Strategy Builder work before continuing.

        Select the Inputs and Variables page
        Click add to add a variable, select double as the type
        Type a name for the variable, click OK
        In the condition set for the "signal bar" click add to add an action
        Expand the Misc section, select Set <your variable name here>
        In the Value click the ellipses, select Price > Close
        In the condition set to send the order click add to add a condition
        On the left select Price > Close, in the center select Less than, on the right select User variables > select the variable

        If you are not wanting to learn the Strategy Builder and are wanting 1 on 1 assistance, you can also contact a professional NinjaScript Consultant who would be eager to create or modify this script at your request or assist you with your script. The NinjaTrader Ecosystem has affiliate contacts who provide educational as well as consulting services. Please let me know if you would like a list of affiliate consultants who would be happy to create this script or any others at your request or provide one on one educational services.
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          Originally posted by NinjaTrader_ChelseaB View Post
          Hello Anquirk,

          I would recommend learning how the tools in the Strategy Builder work before continuing.

          Select the Inputs and Variables page
          Click add to add a variable, select double as the type
          Type a name for the variable, click OK
          In the condition set for the "signal bar" click add to add an action
          Expand the Misc section, select Set <your variable name here>
          In the Value click the ellipses, select Price > Close
          In the condition set to send the order click add to add a condition
          On the left select Price > Close, in the center select Less than, on the right select User variables > select the variable

          If you are not wanting to learn the Strategy Builder and are wanting 1 on 1 assistance, you can also contact a professional NinjaScript Consultant who would be eager to create or modify this script at your request or assist you with your script. The NinjaTrader Ecosystem has affiliate contacts who provide educational as well as consulting services. Please let me know if you would like a list of affiliate consultants who would be happy to create this script or any others at your request or provide one on one educational services.
          I really appreciate for detailed explanation! I just did it and now that's what I'm wanted to. Thanks a lot!!!

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by NullPointStrategies, Today, 05:17 AM
          0 responses
          44 views
          0 likes
          Last Post NullPointStrategies  
          Started by argusthome, 03-08-2026, 10:06 AM
          0 responses
          124 views
          0 likes
          Last Post argusthome  
          Started by NabilKhattabi, 03-06-2026, 11:18 AM
          0 responses
          65 views
          0 likes
          Last Post NabilKhattabi  
          Started by Deep42, 03-06-2026, 12:28 AM
          0 responses
          42 views
          0 likes
          Last Post Deep42
          by Deep42
           
          Started by TheRealMorford, 03-05-2026, 06:15 PM
          0 responses
          46 views
          0 likes
          Last Post TheRealMorford  
          Working...
          X