Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

BB (TTM) Squeeze and PBF Squeeze replica ported to NT

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

    #16
    Originally posted by NinjaTrader_Ben View Post
    Hello,


    If you post some code I can help you with specific questions/issues.
    Thank you for the offer of assistance.
    I'm out of my depth here, I really don't know where to start.

    If I could know what part of the original code is specific to the histogram then I am supposing I could add the Bar.Color code there ?

    Or perhaps it's far more involved than that ?

    thx

    Comment


      #17
      Hello,


      BarColor changes the price bar colors. This link will help:


      Study the PercentB2 indicator found in the link below to see how a histogram color change is done:


      You have to Add() the plot types then use if and else's to change the colors. This link will help with Add():
      DenNinjaTrader Customer Service

      Comment


        #18
        Originally posted by dj22522 View Post
        Thank you for the offer of assistance.


        If I could know what part of the original code is specific to the histogram then I am supposing I could add the Bar.Color code there ?
        Exactly...

        Comment


          #19
          Originally posted by NinjaTrader_Ben View Post
          Hello,


          BarColor changes the price bar colors. This link will help:


          Study the PercentB2 indicator found in the link below to see how a histogram color change is done:


          You have to Add() the plot types then use if and else's to change the colors. This link will help with Add():
          http://www.ninjatrader-support.com/HelpGuideV6/Add.html
          Thx again .
          1. Firstly I need to get past the error on line 13 that keeps coming up regardless if I return the code to it's original (ie: if I add script and then delete it but I still get an error on line 13 as described in earlier post ) ?

          2. I am not understranding the links you refer to.
          Pressumably the script already has the code to plot and color the Histogram ? What I want to do is color the price bars on the chart according to the green/red histogram.

          Perhaps I'm missunderstanding your post ?

          Many thx

          Comment


            #20
            Hello,

            1. Firstly I need to get past the error on line 13 that keeps coming up regardless if I return the code to it's original (ie: if I add script and then delete it but I still get an error on line 13 as described in earlier post ) ?

            >>Please follow the instructions below to see where the errors are coming from after compiling the indicator. This will allow you to debug the indicator/strategy or remove it from your PC. If you are wondering why you receive an error when compiling only one indicator, it is because NinjaTrader compiles all indicators and strategies- not just one.
            • Open NinjaTrader
            • From the Control Center select the Tools menu--> select the Edit NinjaScript menu item--> select Indicator
            • Select an indicator and double click on it.
            • A new window will appear and you will need to right click in the window and select Compile to compile the indicators.
            • At the bottom of the window a new section will appear were you can find the error locations.
            • From there you have the option to remove the indicator or debug it.
            If that does not work, you will need to completely re-install NT.
            Please follow the steps listed below to completely uninstall and reinstall NinjaTrader:
            1. Close all running applications.
            2. Then from the Start menu select --> Control Panel --> Add and Remove Programs.
            3. From Add and Remove Programs select NinjaTrader 6.5 and click Remove.
            4. Then manually delete the folder "NinjaTrader 6.5" located under Start --> My Documents.
            5. Delete any NinjaTrader installation files. This can be done by going to Start --> My Computer --> Search button --> search for (NinjaTrader*) --> select Local C Disk and then press search.
            6. Then you will need to clear your internet browser cache and history. You will clear this from within your internet browser (with IE, Tools-->Options, delete cookies and files, clear history).
            7. Reboot your machine.
            8. Once these steps are completed, download NT6.5 from the link below:
              Download
            Please let us know if you are able to get up and running after the reinstall.


            2. I am not understranding the links you refer to.
            Pressumably the script already has the code to plot and color the Histogram ? What I want to do is color the price bars on the chart according to the green/red histogram.

            >>Oh I see. I misunderstood you. This is the link you want to use:

            Try embedding the BarColor changes within the conditions for the indicator changes, or build your own logic.
            DenNinjaTrader Customer Service

            Comment


              #21
              Originally posted by dj22522 View Post
              Thx again .
              1. Firstly I need to get past the error on line 13 that keeps coming up regardless if I return the code to it's original (ie: if I add script and then delete it but I still get an error on line 13 as described in earlier post ) ?

              2. I am not understranding the links you refer to.
              Pressumably the script already has the code to plot and color the Histogram ? What I want to do is color the price bars on the chart according to the green/red histogram.

              Perhaps I'm missunderstanding your post ?

              Many thx
              are you trying to save it under different name?

              Comment


                #22
                Originally posted by roonius View Post
                are you trying to save it under different name?
                Yes I'm saving it under a diferent name via "save as".?
                But as it creates the error on line 13, I'm unable to compile.

                I have deleted the newly named file via Windows Explorer each time.

                thx
                Last edited by dj22522; 01-17-2009, 02:48 PM.

                Comment


                  #23
                  Originally posted by dj22522 View Post
                  Yes I'm saving it under a diferent name via "save as".

                  thx
                  At the very top you have such code:

                  public enum SqueezeStyle
                  {
                  BBSqueeze,
                  PBFSqueeze,
                  CounterTrend
                  }

                  comment it out or delete it in your newly saved code before compiling
                  (don't touch it in original RSqueeze code)

                  Comment


                    #24
                    Originally posted by NinjaTrader_Ben View Post
                    Hello,
                    >>Oh I see. I misunderstood you. This is the link you want to use:

                    Try embedding the BarColor changes within the conditions for the indicator changes, or build your own logic.
                    Thx for your reply Ben.
                    So I'm back to trying to understand where in the original script to embed the bar.color code.

                    Thx

                    Comment


                      #25
                      Hello,

                      Post the code after OnBarUpdate() in your next post and I will assit you.

                      By the way, its BarColor, not Bar.Color.
                      DenNinjaTrader Customer Service

                      Comment


                        #26
                        Originally posted by roonius View Post
                        At the very top you have such code:

                        public enum SqueezeStyle
                        {
                        BBSqueeze,
                        PBFSqueeze,
                        CounterTrend
                        }

                        comment it out or delete it in your newly saved code before compiling
                        (don't touch it in original RSqueeze code)
                        roonuis excellent, thx .
                        I merely deleted the one word "Squeeze" form "SqeezeStyle"
                        and that's solved it.
                        That will now, at least, allow me to play around with the code.

                        Any clues as to where in the script to add the Bar.Color code would be much appreciated.

                        Many thx

                        Comment


                          #27
                          I recommend to comment out entire enum section...

                          Comment


                            #28
                            Originally posted by roonius View Post
                            I recommend to comment out entire enum section...
                            So delete ALL the following ?

                            public enum SqueezeStyle
                            {
                            BBSqueeze,
                            PBFSqueeze,
                            CounterTrend
                            }


                            thx

                            Comment


                              #29
                              Originally posted by dj22522 View Post
                              So delete ALL the following ?

                              public enum SqueezeStyle
                              {
                              BBSqueeze,
                              PBFSqueeze,
                              CounterTrend
                              }


                              thx
                              Well I recommend to comment out - put // at the begining of each line.
                              If you modify the code to your needs, and later on you delete original RSqueeze indicator, your renamed and modified indicator will stop working and again you will not be able to compile anything.
                              In that case (if you delete original RSqueeze) you will have to uncomment back those lines in order to be able to compile.

                              Comment


                                #30
                                Originally posted by dj22522 View Post
                                So delete ALL the following ?

                                public enum SqueezeStyle
                                {
                                BBSqueeze,
                                PBFSqueeze,
                                CounterTrend
                                }


                                thx
                                Make it look like this:

                                // public enum SqueezeStyle
                                // {
                                // BBSqueeze,
                                // PBFSqueeze,
                                // CounterTrend
                                // }

                                Comment

                                Latest Posts

                                Collapse

                                Topics Statistics Last Post
                                Started by mmenigma, Today, 02:22 PM
                                1 response
                                3 views
                                0 likes
                                Last Post NinjaTrader_Jesse  
                                Started by frankthearm, Today, 09:08 AM
                                9 responses
                                35 views
                                0 likes
                                Last Post NinjaTrader_Clayton  
                                Started by NRITV, Today, 01:15 PM
                                2 responses
                                9 views
                                0 likes
                                Last Post NRITV
                                by NRITV
                                 
                                Started by maybeimnotrader, Yesterday, 05:46 PM
                                5 responses
                                26 views
                                0 likes
                                Last Post NinjaTrader_ChelseaB  
                                Started by quantismo, Yesterday, 05:13 PM
                                2 responses
                                21 views
                                0 likes
                                Last Post quantismo  
                                Working...
                                X