Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Trying to add Pivots/Res-lines in script

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

    Trying to add Pivots/Res-lines in script

    I'm new to NinjaTrader and I got wind of it because I was looking for charting software that would accurately display pivot points and Res lines (you might be surprised how many programs out there mess this up). NT's basic setup was good but I found NinjaTrader_Josh's Enhanced Pivot Points which supports up to 5 res lines which made it even better.

    I installed the script and it works great... but I had hoped I could make it go even higher, like up to 10 Res lines ideally (no need for more Sup lines). I started meddling around with the .CS file to see if I could make my own modifications (for personal, non-distributed use only) but apparently there's some bit of code I haven't gotten correct because NT won't import it and it complains there are errors in my modifications.

    I was wondering, if anyone had the time and didn't mind, if they might let me know what I need to do to increase the Res lines from 5 to 10? I'm not a coder but I'm pretty good with figuring this sort of stuff out with the right info.

    I really appreciate any help anyone can offer. I attempted to message Josh directly but was unable to via the PM on the forum.... so I turned here in hopes someone might have some input.

    Thanks in advance!

    #2
    toasty,

    As a hint what you need to do is add a bunch more plots into the Initialize() method and then you will also need to add the corresponding plots to the Properties region of the code. You can look at the relationship of everything with any of the already preexisting plots like R1. See how it has a line of code up in Initialize(), some settings for it in OnBarUpdate(), and then another chunk of code for creating the DataSeries in Properties.
    Josh P.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

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