Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

CPR indicator

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

  • daytraderpaul
    replied
    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

    Leave a comment:


  • NinjaTrader_ChelseaB
    replied
    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.

    Leave a comment:


  • ejob2007
    replied
    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.

    Leave a comment:


  • NinjaTrader_ChelseaB
    replied
    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].

    Leave a comment:


  • sarahz
    replied
    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.

    Leave a comment:


  • coolvijaymane
    replied
    Thank you so much Chelsea.

    Done necessary changes in code and it worked perfectly fine.

    Regards,

    Vijay.

    Leave a comment:


  • NinjaTrader_ChelseaB
    replied
    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.

    Leave a comment:


  • coolvijaymane
    replied
    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

    Leave a comment:


  • coolvijaymane
    replied
    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.

    Leave a comment:


  • NinjaTrader_ChelseaB
    replied
    Hello Vijay,

    You could make these customizations to a copy.

    s3 = r1 - (currentHigh - currentLow);
    r3 = r2 + (currentHigh - currentLow);

    Leave a comment:


  • coolvijaymane
    replied
    Yes!

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

    These are original levels in pivot boss book.

    Thanks and regards,

    Vijay Mane.

    Leave a comment:


  • NinjaTrader_ChelseaB
    replied
    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?

    Leave a comment:


  • coolvijaymane
    replied
    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.

    Leave a comment:


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

    Leave a comment:


  • NinjaTrader_ChelseaB
    replied
    agk03, wajbo, obadayousif, and abandonedBaby,

    Welcome all to the NinjaTrader forums!

    hir04068​, would you be able to provide insight about the design of your custom script?

    Leave a comment:

Latest Posts

Collapse

Topics Statistics Last Post
Started by Mindset, 04-21-2026, 06:46 AM
0 responses
63 views
0 likes
Last Post Mindset
by Mindset
 
Started by M4ndoo, 04-20-2026, 05:21 PM
0 responses
91 views
0 likes
Last Post M4ndoo
by M4ndoo
 
Started by M4ndoo, 04-19-2026, 05:54 PM
0 responses
48 views
0 likes
Last Post M4ndoo
by M4ndoo
 
Started by cmoran13, 04-16-2026, 01:02 PM
0 responses
105 views
0 likes
Last Post cmoran13  
Started by PaulMohn, 04-10-2026, 11:11 AM
0 responses
63 views
0 likes
Last Post PaulMohn  
Working...
X