Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Inside BAr

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

    Inside BAr

    Attach is an Indicator to help you identify the inside bars, includes an alert.(you can turn on/off the alert and modify the inside bar color)

    Regards
    Attached Files
    Last edited by PrTester; 01-28-2008, 05:11 PM.

    #2
    Cool. Thanks for the contribution.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      I am new to NinjaScript... how do I import this indicator?

      Comment


        #4
        Unfortunately, the format (.ntns) was temporarily supported with an older beta version. We have since reverted this change.

        If PrTester is willing to repost this with the latest beta version, it will be a (.zip) file which you can import via File > Utilities > Import NinjaScript.
        RayNinjaTrader Customer Service

        Comment


          #5
          Originally posted by NinjaTrader_Ray View Post
          Unfortunately, the format (.ntns) was temporarily supported with an older beta version. We have since reverted this change.

          If PrTester is willing to repost this with the latest beta version, it will be a (.zip) file which you can import via File > Utilities > Import NinjaScript.
          It's posted with a zip format.

          Regards,

          Comment


            #6
            Originally posted by PrTester View Post
            It's posted with a zip format.

            Regards,
            cool, thanks!

            Comment


              #7
              Thank you! I Love it!

              Originally posted by PrTester View Post
              Attach is an Indicator to help you identify the inside bars, includes an alert.(you can turn on/off the alert and modify the inside bar color)

              Regards

              Comment


                #8
                Inside Bar

                Great indicator thanks for the source code.

                I was wondering if it could be tweaked slightly... If it's a down inside bar then have it one color, if it's an up inside bar then have it another?

                Thanks
                Rye

                Comment


                  #9
                  Inside Bar Calculator

                  I've been watching this indicator identify inside bars but i've noticed that it doesn't always identify them.
                  Attached Files
                  Last edited by ryebank; 11-24-2008, 11:39 AM.

                  Comment


                    #10
                    Originally posted by ryebank View Post
                    I've been watching this indicator identify inside bars but i've noticed that it doesn't always identify them.
                    ryebank,

                    This logic behind the indi is the following :

                    First Calculate 4 previous range

                    range1 = Math.Abs(Close[0]-Open[0]);
                    range2 = Math.Abs(Close[1]-Open[1]);
                    range3 = Math.Abs(Close[2]-Open[2]);
                    range4 = Math.Abs(Close[3]-Open[3]);
                    Then

                    Check for InsideBar pattern

                    if(High[0] < High[1] && Low[0] > Low[1]
                    && range4 < range3
                    && range4 < range2
                    && range4 < range1

                    where [0] is the Current Bar, [1] is the previous Bar and so on.

                    Hope that help.

                    Comment


                      #11
                      Hi PrTester

                      Bear with we because i don't know how to program but does this mean i can change the code to calculate on 1 range ie 1 bar:

                      Change - if (CurrentBar < 4) return
                      To - if (CurrentBar < 1) return

                      range1 = Math.Abs(Close[0]-Open[0]);
                      range2 = Math.Abs(Close[1]-Open[1]);
                      Delete range3 and range4

                      Then

                      Check for InsideBar pattern

                      if(High[0] < High[1] && Low[0] > Low[1])

                      Comment


                        #12
                        Originally posted by ryebank View Post
                        Hi PrTester

                        Bear with we because i don't know how to program but does this mean i can change the code to calculate on 1 range ie 1 bar:

                        Change - if (CurrentBar < 4) return
                        To - if (CurrentBar < 1) return

                        range1 = Math.Abs(Close[0]-Open[0]);
                        range2 = Math.Abs(Close[1]-Open[1]);
                        Delete range3 and range4

                        Then

                        Check for InsideBar pattern

                        if(High[0] < High[1] && Low[0] > Low[1])
                        Yes you are correct, just delete the other range and you will be ok.

                        Comment


                          #13
                          Inside Bar

                          Thanks PrTester

                          I've made the changes and it now works how i'd like it to.

                          Can i ask, what is the relevance of having a range of 4 bars and only indentifying an inside bar (IB) based on this?

                          Could you, if possible, help me to modify the code so i can have different colours for for up and down IB's?

                          Thanks
                          Rye

                          Comment


                            #14
                            Originally posted by ryebank View Post
                            Thanks PrTester

                            I've made the changes and it now works how i'd like it to.

                            Can i ask, what is the relevance of having a range of 4 bars and only indentifying an inside bar (IB) based on this?

                            Could you, if possible, help me to modify the code so i can have different colours for for up and down IB's?

                            Thanks
                            Rye

                            Just try to identify strong signals, post your conditions for up and down and I make the change or give you the lines to modify yours.

                            Regards

                            Comment


                              #15
                              Hi there,

                              How would I edit the script so that the low of 0 could be > or = to low of 1 and the high of 0 could be < or = the high of 1? In other words, I want to define an inside bar as one in which the high or low might be equal to the high or low of the previous bar.

                              Thank you,

                              thalestrader

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by BarzTrading, Today, 07:25 AM
                              2 responses
                              25 views
                              1 like
                              Last Post BarzTrading  
                              Started by devatechnologies, 04-14-2024, 02:58 PM
                              3 responses
                              20 views
                              0 likes
                              Last Post NinjaTrader_BrandonH  
                              Started by tkaboris, Today, 08:01 AM
                              0 responses
                              4 views
                              0 likes
                              Last Post tkaboris  
                              Started by EB Worx, 04-04-2023, 02:34 AM
                              7 responses
                              163 views
                              0 likes
                              Last Post VFI26
                              by VFI26
                               
                              Started by Mizzouman1, Today, 07:35 AM
                              1 response
                              10 views
                              0 likes
                              Last Post NinjaTrader_Gaby  
                              Working...
                              X