• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

End of a Line Break bar can be clearly signaled ?

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

    End of a Line Break bar can be clearly signaled ?

    Hi,

    Is there any way to determine conclusively when a Line Break candle has ended? I mean, without considering that a new bar will be plot in the sequence?

    Reason for the question: when a Line Break bar candle is being plot, and specially when a very short price change triggered the Line Break interval configured, it is seemingly impossible to know, in a blink of an eye, if the bar has actually ended (i.e: has completed number of line breaks within the minimum base period) or if the bar is still active ( but not progressing) and the market has gone backwards to the opposite direction and it may take a long while to come back to that point ( it happens sometimes even with a tiny price change). If it is clearly signaled that the bar has ended it becomes easier to know if the market has "stopped" moving in that trend direction. I am aware there is a tiny price marker moving up and down the candle when the price reverts to the opposite direction, but again, when the candle is too short at the Y axis ( price delta), the change in direction of that price marker is not noticeable to help form an opinion. Or the market may be stopped and the price marker is so tiny that it is not noticeable.

    For me, that knowledge of what is going on, and clearly see the bar status as it develops, is required for a strategy under analysis.

    Thanks much indeed,
    G

    #2
    Hello bouncetherubble, thanks for your note.

    A new bar would always be plotted if a line break bar closes, that is just how they are built. One could predict within their script if a line break is about to close with some specific code implementation. One way of separating OnEachTick logic from OnBarClose logic would be to run the script on each tick and use IsFirstTickOfBar to process end of bar logic. This way you can process data while the bar is forming as well as know when the bar closes. There is an example of this here:

    https://ninjatrader.com/support/help...either_cal.htm

    Best regards.
    Chris L.NinjaTrader Customer Service

    Comment


      #3
      Hi Chris L,

      It appears the indicators loaded are the ones at the image, all started with "Lin".

      Click image for larger version

Name:	LIN.jpg
Views:	1
Size:	4.1 KB
ID:	1071374

      I loaded them all and I can see the Slope in the bottom of the screen as a separate panel, the Reg and Intercept are two lines with the same color , but I cannot see the Predictor plotted ( WoodiesRLPredictor) . I changed the Predictor plot from Line to Triangles to look for a change but no changes ...

      Would you be able to send me a screen of how it looks like? When I get this fixed, I will still need to understand how those indicators can contribute to find the end of a Line Break bar, but this looks like a progress, since the header of the URL you sent is my exact concern

      Thanks much,
      G




      Attached Files

      Comment


        #4
        Hello, thanks for your reply.

        I'm not seeing a WoodiesRLPredictor by default, it seems to be a third-party tool. Are there any errors in the log tab of your Control Center after you attempt to load the indicator?

        Chris L.NinjaTrader Customer Service

        Comment


          #5
          Hi,

          If you go LinRegPredictor properties and scroll to " Plots" , there is a field labeled WoodiesLRPredictor" ...

          No , there are no errors at the log tab of the Control Center except for the message below, but strangely this parameter is native to the indicator, so it apparently loads with a parameter out of range by default. I changed to 2 and error message was gone , but not sure what number scale should be placed there ...

          Click image for larger version

Name:	LIN2.jpg
Views:	2
Size:	12.2 KB
ID:	1071381

          Thanks much
          G

          Comment


            #6
            Hello, thanks for your reply.

            The LinRegPredictor is not a default NinjaTrader indicator. It seems they restricted this Period parameter to a minimum of 2. If the indicator is free to download please share the link and I will test it myself.

            Best regards.
            Chris L.NinjaTrader Customer Service

            Comment


              #7
              Hi Chris,

              That was available at the URL you posted above,if you scroll down the page.


              https://ninjatrader.com/support/help...either_cal.htm

              Click image for larger version

Name:	Screenshot_20190919-164025.png
Views:	8
Size:	452.7 KB
ID:	1071400

              Thanks
              G



              ​​​​​​​

              Comment


                #8
                Hi, I see the LinReg indicator but there is not LinRegPredictor. That indicator is not used in the example.
                Chris L.NinjaTrader Customer Service

                Comment


                  #9
                  Hi,

                  Understood, apologies. Then, I cannot remember the occasion I installed the Predictor and why ,but it probably never worked.

                  Once more, apologies for the confusion.

                  Best,
                  G

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by aligator, Today, 08:20 AM
                  0 responses
                  4 views
                  0 likes
                  Last Post aligator  
                  Started by 7robert, Today, 08:11 AM
                  0 responses
                  10 views
                  0 likes
                  Last Post 7robert
                  by 7robert
                   
                  Started by lordvader34, Today, 07:07 AM
                  2 responses
                  10 views
                  0 likes
                  Last Post NinjaTrader_Kate  
                  Started by aslane, Today, 07:01 AM
                  1 response
                  5 views
                  0 likes
                  Last Post NinjaTrader_Jim  
                  Started by frankduc, Today, 06:56 AM
                  1 response
                  15 views
                  0 likes
                  Last Post NinjaTrader_Kate  
                  Working...
                  X