Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

NT7 Indicator Script Troubleshooting - Camarilla Pivots

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

    NT7 Indicator Script Troubleshooting - Camarilla Pivots

    I downloaded the attached NT7 Camarilla Pivots script from Ninja file sharing, corrected a few things, but it is still not working properly. If the prior day High/Low/Close values are entered manually (UserDefinedValues parameter selected), it plots resulting pivot values correctly, but if CalcFromIntradayData or DailyBars is selected, it is not picking up the prior day H/L/C values as it should be. Testing on a standard bar chart, 15 min intraday timeframe. Any help in identifying the issue is much appreciated! Thanks!
    Attached Files

    #2
    Hello Lancer,

    Thanks for your post.

    If the indicator is not behaving as expected then it is necessary to add debugging prints to the script to understand how the logic is evaluating.

    In the script, add prints to the script that print out all the values being used for calculations, then run the script and compare values in the Output window to see how your logic is behaving. It is very helpful to include labels and operators in the print to understand what is being compared in the condition sets.

    Output from prints will appear in the NinjaScript Output window.

    NT7: Tools -> Output window

    Below is a link to a forum post that demonstrates how to use prints to understand behavior.



    Brandon H.NinjaTrader Customer Service

    Comment


      #3
      Thanks Brandon. The issue isn't what the HLC values are, it's that the script is not picking up the prior day HLC values.

      Comment


        #4
        Hello Lancer,

        Thanks for your notes.

        Have you added debugging prints to the indicator script to understand exactly how the plots are being calculated in the script?

        When a NinjaScript is not behaving as expected it is necessary to identify the line(s) of code causing the unexpected behavior to occur. This is done by taking debugging steps to print out all the values the script is using for calculations to see how those calculations are evaluating.

        Add prints to the script that print out all the values used in the logic to calculate the plots to see how that code is evaluating.

        Prints will appear in a Tools > Output window.

        Here is a forum thread demonstrating how to use prints to identify how a script's logic is behaving: https://ninjatrader.com/support/foru...121#post791121

        Further, if you want to access prior day HLC values, you could consider using the PriorDayOHLC() system indicator method to do so.

        PriorDayOHLC(): https://ninjatrader.com/support/help...r_day_ohlc.htm
        Brandon H.NinjaTrader Customer Service

        Comment


          #5
          Brandon, the output values are not important right now, and do not provide an answer to the question. It's the code structure in the script that is supposed to be obtaining prior day H/L/C values with CalcFromIntradayData and DailyBars that I'm asking about. I appreciate your efforts, but I know NT staff can't assist with this. Thanks.

          Comment


            #6
            Hello Lancer,

            Thanks for your notes.

            Debugging prints should be added to the script to determine exactly how that section of code is calculating the prior day HLC values with CalcFromIntradayData and DailyBars. This would allow you to review the prints to see how those values are evaluating in that section of code and make any needed modifications so the the correct values are calculated.

            That is correct, in the Support Department at NinjaTrader it is against our policy to debug or modify a script on your behalf. This is so that we can maintain a high level of service for all of our clients as well as our partners.

            If you need someone to debug or modify the script on your behalf, you can also contact a professional NinjaScript Consultant who would be eager to assist you with your script.

            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!



            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.
            Brandon H.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by fx.practic, 10-15-2013, 12:53 AM
            5 responses
            5,403 views
            0 likes
            Last Post Bidder
            by Bidder
             
            Started by Shai Samuel, 07-02-2022, 02:46 PM
            4 responses
            95 views
            0 likes
            Last Post Bidder
            by Bidder
             
            Started by DJ888, Yesterday, 10:57 PM
            0 responses
            7 views
            0 likes
            Last Post DJ888
            by DJ888
             
            Started by MacDad, 02-25-2024, 11:48 PM
            7 responses
            159 views
            0 likes
            Last Post loganjarosz123  
            Started by Belfortbucks, Yesterday, 09:29 PM
            0 responses
            8 views
            0 likes
            Last Post Belfortbucks  
            Working...
            X