Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Delta Buy/Sell Volume
Collapse
X
-
You need to move from both indicators, GomCD and the Recorder, move the reference " Instrument != null " from Initialize to OnbarUpdate.Originally posted by Pepperdog View Post
-
I'm still having an issue calling a GomCD(___).DeltaClose[0] value into another indicator / strategy. Would someone mind posting an example of the code that needs to be moved from the initialize to onbarupdate section?
I thought I moved the correct code, but still not working for me.
Thanks.
Leave a comment:
-
There's a change with NT7 and it appears you can't instantiate another indicator in the Initialize() method or you'll run into the "'BarsInProgress' property can not be accessed from within 'Initialize' method" exceptionOriginally posted by honvl View PostI was able to do some debugging with Visual Studio to solve the problem. It turns out that Instrument was null, and so because of the Instrument != null check inside GomRecorderIndicator's Initialize method, a lot of lines were being skipped. To fix the problem, I moved all of those lines to the beginning of the OnBarUpdate method and added a boolean flag to make sure they only run once.
So I guess we've got to use the method you've implemented : put the code in the OnBarUpdate() with a test with bool flag.
See http://www.ninjatrader-support2.com/...ad.php?t=22023 for exact same issue.
Leave a comment:
-
Do you mean GomCD doesn't work at all ? or only derived indicators ?Originally posted by PrTester View PostNo luck for me same message :-(, I'm on NT7
Leave a comment:
-
I was able to do some debugging with Visual Studio to solve the problem. It turns out that Instrument was null, and so because of the Instrument != null check inside GomRecorderIndicator's Initialize method, a lot of lines were being skipped. To fix the problem, I moved all of those lines to the beginning of the OnBarUpdate method and added a boolean flag to make sure they only run once.
Leave a comment:
-
-
rally,
Please send an email to support [at] ninjatrader [dot] com with Attn: Josh in the subject line.
Leave a comment:
-
Thanks for the updated algorithms for volume and tick bars. I am using NT7 and my GomCD is functional. However, any indicators that rely on values from a GomRecorderIndicator derived class seem to result in this or a similar error: Error on calling 'OnBarUpdate' method for indicator 'GomCDHA' on bar 1: Object reference not set to an instance of an object.
Leave a comment:
-
Hey josh, I tried PM'ing and emailing you but it wont allow it anymore, how do I send you a message?
Leave a comment:
-
We have not been carefully following this thread as this seems to be a community effort so I am not sure what you mean exactly. As far as recording data, 7 records data in much the same way as 6.5.
Leave a comment:
-
Thanks for the update as always great work, but have one problem in the NT7 Log : " Error on calling 'OnBarUpdate' method for indicator 'GomCD' on bar 0: Object reference not set to an instance of an object. " Also trying to retrieve Delta Close Value but no success, any idea?Originally posted by gomifromparis View PostHere's V5
- NT7 compliant
- smoother ticks on fast charts (see http://www.ninjatrader-support2.com/...ad.php?t=16006)
- no data sent after sessionbegin and sessionend (see idem)
- zero line drawed if reinit session is true
- corrected t2020 plotting bug
BTW it's not complaint at all :-)
Regards,
Leave a comment:
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Hwop38, 05-04-2026, 07:02 PM
|
0 responses
151 views
0 likes
|
Last Post
by Hwop38
05-04-2026, 07:02 PM
|
||
|
Started by CaptainJack, 04-24-2026, 11:07 PM
|
0 responses
303 views
0 likes
|
Last Post
by CaptainJack
04-24-2026, 11:07 PM
|
||
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
244 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|
||
|
Started by M4ndoo, 04-20-2026, 05:21 PM
|
0 responses
345 views
0 likes
|
Last Post
by M4ndoo
04-20-2026, 05:21 PM
|
||
|
Started by M4ndoo, 04-19-2026, 05:54 PM
|
0 responses
175 views
0 likes
|
Last Post
by M4ndoo
04-19-2026, 05:54 PM
|

Leave a comment: