Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Pivots not working
Collapse
X
-
I kept close track of the NT Pivots indicator today with NQ live. When I hit Reload Ninjacript (F5) sometimes it would calculate the correct daily pivots, sometimes it would not. I then installed Harry's PivotsModified indicator and ran them both simultaneously. Harry's modification calculated the daily pivot correctly every time I hit F5 while the NT Pivots indicator would sometimes get it correct and other times not. This was on a minute based intraday chart. I have not compared them on tick chart or anything else.Last edited by higler; 02-01-2010, 03:16 PM.
Comment
-
Guys, we overhauled the Pivots implementation. Please:
- copy attached to <my documents>/NinjaTrader7/bin/Custom/Indicator
- start NT
- Tools->Edit NinjaScript->Indicator->Pivots
- press F5 to compile
Please let us know how it goes. Thanks
Edit: This is the same version as the one in our latest NT7B8 which we just released. So you may skip steps above as you have NT7B8 installed.Attached Files
Comment
-
First findings with NT 7.0.0.7 custom build
I am testing it now, so I will post my findings here. It seems to work most of the time, but as I am malicious (or maybe eager to improve NinjaTrader) I will only post, when it does not work as expected.
First findings for daily pivots:
Observed on a 5 min chart ES 03-10, session template US Index Futures RTH, mode DailyBars, connected to Interactive Brokers
After adding pivots (DailyBars), value displayed was 1094.33
After refreshing via F5 the value changed to 1093.58
In CalcFromIntraday mode value was again 1094.33
Conclusion: Indicator sometimes does not catch DailyBars and then calculates pivots in CalcFromIntradayData mode without notifying the user. Only after refreshing daily data is used.
Please see screenshots below. Left chart was displaed first. Right chart after refreshing via F5 a few seconds later. On the upper left corner of the chart, you will notice that both shots were taken in DailyBars mode!
In this particular case, the difference is small. This is only accidental, as the Dailybars mode uses daily data (= 24 hour session, as provided by data provider), while the CalcFromIntradayData uses day session as defined by the session template (here instrument setting). So in case that the night session produces a hihger high or lower low than the day session, these values can deviate by a significant gap.
Comment
-
Next findings
Observed with NT 7.0.0.7 Custom Build on a 30 min chart.
EURUSD with Session Template FOREX
ES 03-10 with Session Template US Index Futures ETH (added, because still missing)
In DailyBars mode yesterday's pivots are displayed as today's pivots.
I do not want to conlude anything, but make an educated guess: If the session starts prior to midnight local time, the indicator catches the prior DailyBar and displays all pivot lines one day late, i.e. after they have expired.
Comment
-
I've applied the version posted in #20 to 7.0.0.7 with DailyBars and 24/5 session template, connected to Zenfire. I still get the issue where pressing F5 alternates between two seperate sets of values.
The first screenshot shows the levels almost as I would calculate them manually based on previous day's HLC.
The second screenshot levels are way off.
Comment
-
New pivots
Yes. I have manually deleted the file @Pivots.cs in my folder Own Documents\NinjaTrader7\bin\Custom\Indicator. Then I have copied the new file into that directory. I checked this: The date of the new indicator is today, the other ones are about 2 weeks old. I then edited the indicator from within NinjaTrader and compiled via F5, to be sure.
Originally posted by NinjaTrader_Dierk View PostTo clarify: You had applied the Pivots.cs file as per my post to your installation correct? You had NOT been using the Pivots.cs of NT7B7 or the custom build I provided to you no?
Comment
-
I'm trying 7.0.0.8 with live NQ Barchart.com data. I deleted my old db files to start fresh. Tried it on NQ 150 tick chart, Days to load = 3, Session template "Use instrument settings". Got the same phenomenon as FatCanary. Repeatedly pressing F5 alternates between 2 values, one of which is correct. Often gets the correct value, but not always.
Also tried it on a 1 minute chart. Same type of resuts. Pressing F5 repeatedly alternates between 2 values with the most common value being correct.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
602 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
347 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
103 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
560 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
559 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment