Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Logic for "N Bars" Indicator in Strategy Builder.

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

    Logic for "N Bars" Indicator in Strategy Builder.

    Having a user input for "N Bars". How can I get logic to work correctly for the N Bar condition to be true in the strategy builder?

    #2
    Hello jonbennett,

    Thanks for your post.

    You can assign the user input to the Bar count property. When designing logic, we suggest using prints to observe the output and so you can check your logic and see how you can use various items to create new logic.

    Using Prints in the Strategy Builder - https://drive.google.com/file/d/1mTq...w?usp=drivesdk

    We look forward to assisting.
    Attached Files
    JimNinjaTrader Customer Service

    Comment


      #3
      Thank you. trying to figure out logic. This is how I would expect to use it, but it throws an error. The "N_BarsUp" is a user input.

      Click image for larger version

Name:	Screen Shot 2020-09-05 at 3.36.53 PM.png
Views:	17
Size:	305.3 KB
ID:	1116985

      Attached Files

      Comment


        #4
        So. I figured out that "1" = true. But now my issue is that I am using it with other conditions and minimum Nbars has to be "2", which is a problem because I want to have the option of just "1" bar up...

        Comment


          #5
          Hello jonbennet,

          If you use prints to view the indicator output or add the indicator to a chart, you can see what the expected output is and how you can interact with that indicator in the Strategy Builder.

          You may change the BraCount property, but when you are creating a condition, you should check Misc > Numeric Value to check if the Indicator plot value equals a certain level.

          Please see the attached screenshot where indicators are added to a chart with a BarCount of 2 and a BarCount of 3. As we can see, the plot value is 1, which can be checked with Misc > Numeric Value in the Strategy Builder.

          We look forward to assisting.
          Attached Files
          JimNinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Jorge.andres.o, Today, 08:05 PM
          0 responses
          1 view
          0 likes
          Last Post Jorge.andres.o  
          Started by SuperDriveGuy, 10-23-2019, 07:13 AM
          23 responses
          1,346 views
          0 likes
          Last Post wadams
          by wadams
           
          Started by lmatiukas, Today, 07:09 PM
          1 response
          6 views
          0 likes
          Last Post lmatiukas  
          Started by ComfyCouch, Today, 06:04 PM
          0 responses
          15 views
          0 likes
          Last Post ComfyCouch  
          Started by Ousher, Today, 04:35 PM
          0 responses
          4 views
          0 likes
          Last Post Ousher
          by Ousher
           
          Working...
          X