Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

CPR indicator

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

    #31
    I was mistaken that this script allows for Week or Month. It would be nice if you could choose Intraday, daily, weekly, or Monthly.

    Comment


      #32
      Originally posted by hir04068 View Post

      I have interchanged the formula and its working perfect now.
      thanks a ton for all the help you have provided.

      if anyone wants CRP indicator then I hope this will help. I am posting the final indicator and template I use for the intraday chart.
      Thanks for CPR indicator. I am using it for a few days and found that CPR and R1, R2 levels are correct. But R3 and S3 levels are not correct. I tried code in excel with HLC values and found R3 ans S3 values are incorrect.
      Can somebody help to address the issue?

      Thanks and regards,
      Vijay Mane.

      Comment


        #33
        Hello coolvijaymane,

        I am seeing in the script on line 209 - 210 of hir04068's script:
        Code:
        s3 = pp - 2 * (currentHigh - currentLow);
        r3 = pp + 2 * (currentHigh - currentLow);
        Would you like to replace the formula with something else?
        Chelsea B.NinjaTrader Customer Service

        Comment


          #34
          Yes!

          R3 = R1 + (High - Low)
          S3 = S1 - (High - Low)

          These are original levels in pivot boss book.

          Thanks and regards,

          Vijay Mane.

          Comment


            #35
            Hello Vijay,

            You could make these customizations to a copy.

            s3 = r1 - (currentHigh - currentLow);
            r3 = r2 + (currentHigh - currentLow);
            Chelsea B.NinjaTrader Customer Service

            Comment


              #36
              I do not know how to do it. Can you please help me to do it? Pl help with some instructions etc so that I can try.

              Or is there any alternative option?

              Thanks and regards,

              Vijay Mane.

              Comment


                #37
                Can you please help letting me know the original script and how to convert script into zip that can be imported in NT8.
                This will solve issue.

                Thanks and regards,

                Vijay Mane

                Comment


                  #38
                  Hello Vijay,

                  Below is a link to a forum post with helpful resources on getting started with C# and NinjaScript.
                  https://ninjatrader.com/support/foru...pts#post786040

                  Please watch the 'NinjaScript Editor 401' training video linked in the post.

                  You would be replacing lines 209 - 210 with the modified code and then compile and re-run the script.

                  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.

                  You can search our extensive library of NinjaScript consultants through the link below. Simply enter a consultant name or search by using our filter categories. Once you have identified your consultants of choice, please visit each consultant's site for more information or contact them directly to learn more!

                  https://ninjatraderecosystem.com/sea...mming-services

                  Educators - https://ninjatraderecosystem.com/sea...ures=education

                  You can locate the contact information for the consultants on their direct websites for any additional questions you may have. Since these consultants are third party services for NinjaTrader all pricing and support information will need to be obtained through the consultant.

                  This NinjaTrader Ecosystem website is for educational and informational purposes only and should not be considered a solicitation to buy or sell a futures contract or make any other type of investment decision. The companies and services listed on this website are not to be considered a recommendation and it is the reader's responsibility to evaluate any product, service, or company. NinjaTrader Ecosystem LLC is not responsible for the accuracy or content of any product, service or company linked to on this website.​

                  To export a NinjaTrader 8 NinjaScript so this can be shared and imported by the recipient do the following:
                  1. Click Tools -> Export -> NinjaScript Add-on...
                  2. Click the 'add' link -> check the box(es) for the script(s) and reference(s) you want to include
                  3. Click the 'Export' button
                  4. Enter a unique name for the file in the value for 'File name:'
                  5. Choose a save location -> click Save
                  6. Click OK to clear the export location message
                  By default your exported file will be in the following location:
                  • (My) Documents/NinjaTrader 8/bin/Custom/ExportNinjaScript/<export_file_name.zip>
                  Below is a link to the help guide on Exporting NinjaScripts.
                  http://ninjatrader.com/support/helpG...-us/export.htm

                  The NTSvePivots provided by hir04068​ is a NinjaTrader 8 script. This was not exported properly using the steps above and only a .cs file was provided. Our support generally recommend​s requesting the developer to provide an export so this can be imported into NinjaTrader through Tools -> Import NinjaScript.

                  However, you could also place the file in Documents\NinjaTrader 8\bin\Custom\Strategy and then compile.
                  Chelsea B.NinjaTrader Customer Service

                  Comment


                    #39
                    Thank you so much Chelsea.

                    Done necessary changes in code and it worked perfectly fine.

                    Regards,

                    Vijay.

                    Comment


                      #40
                      Originally posted by hir04068 View Post

                      i hope this works
                      It is very good!

                      @NinjaTrader_ChelseaB @hir04068​​
                      How can we update the formula as below?
                      I have tried, but it says there are conflicts in the class and namespace.

                      R4 = R3 + (R2 - R1)
                      R3 = R1 + (High - Low)
                      ​R2 = Pivot + (High - Low)
                      R1 = 2 x Pivot - Low
                      TC = (Pivot - BC) + Pivot
                      Pivot = (High + Low + Close) / 3
                      BC = (High + Low) / 2
                      S1 = 2 x Pivot - High
                      S2 = Pivot - (High + Low)
                      S3 = S1 - (High - Low)
                      S4 = S3 - (S1 - S2)
                      Last edited by sarahz; 07-10-2024, 05:48 PM.

                      Comment


                        #41
                        Hello sarahz,

                        Welcome to the NinjaTrader forums!

                        If you would like assistance with an error message, please provide the full error message and the line of code referred to in the Line column.

                        Note, when calling series information, this will use a barsAgo index.
                        To get the high of the bar use High[0], for the low use Low[0].

                        Chelsea B.NinjaTrader Customer Service

                        Comment


                          #42
                          Originally posted by NinjaTrader_ChelseaB View Post
                          Hello sarahz,

                          Welcome to the NinjaTrader forums!

                          If you would like assistance with an error message, please provide the full error message and the line of code referred to in the Line column.

                          Note, when calling series information, this will use a barsAgo index.
                          To get the high of the bar use High[0], for the low use Low[0].

                          https://support.ninjatrader.com/s/ar...w-SeriesT-work
                          Hello @NinjaTrader_ChelseaB​ Can you provide CPR Coding for 1 hour chart.

                          Comment


                            #43
                            Hello ejob2007,

                            Welcome to the NinjaTrader forums!

                            Unfortunately, in the support department at NinjaTrader it is against our policy to create, debug, or modify, code or logic for our clients. Further, we do not provide C# programming education services or one on one educational support in our NinjaScript Support department. This is so that we can maintain a high level of service for all of our clients as well as our associates.

                            That said, hir04068 has provided a script in post # 10 of this thread you may find interesting.


                            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


                              #44
                              Originally posted by hir04068 View Post

                              I have interchanged the formula and its working perfect now.
                              thanks a ton for all the help you have provided.

                              if anyone wants CRP indicator then I hope this will help. I am posting the final indicator and template I use for the intraday chart.
                              Is this indicator still working well? I need a central pivot point indicator for my strategy to work properly. Thank you

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                              0 responses
                              675 views
                              0 likes
                              Last Post Geovanny Suaza  
                              Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                              0 responses
                              379 views
                              1 like
                              Last Post Geovanny Suaza  
                              Started by Mindset, 02-09-2026, 11:44 AM
                              0 responses
                              111 views
                              0 likes
                              Last Post Mindset
                              by Mindset
                               
                              Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                              0 responses
                              578 views
                              1 like
                              Last Post Geovanny Suaza  
                              Started by RFrosty, 01-28-2026, 06:49 PM
                              0 responses
                              584 views
                              1 like
                              Last Post RFrosty
                              by RFrosty
                               
                              Working...
                              X