Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Delta Buy/Sell Volume

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

  • PrTester
    replied
    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.
    You need to move from both indicators, GomCD and the Recorder, move the reference " Instrument != null " from Initialize to OnbarUpdate.

    Leave a comment:


  • Pepperdog
    replied
    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:


  • PrTester
    replied
    Originally posted by gomifromparis View Post
    Do you mean GomCD doesn't work at all ? or only derived indicators ?
    Thank you, just move the code from Initialize to OnBarUpdate on both file and that fix my situation, Thanks to the debugging team :-)

    Regards

    Leave a comment:


  • gomifromparis
    replied
    Originally posted by honvl View Post
    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.
    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" exception

    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:


  • gomifromparis
    replied
    Originally posted by PrTester View Post
    No luck for me same message :-(, I'm on NT7
    Do you mean GomCD doesn't work at all ? or only derived indicators ?

    Leave a comment:


  • honvl
    replied
    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:


  • honvl
    replied
    No luck here either. Indicators like GomCDHA are not able to call GomRecorderIndicator derived classes like GomCD without getting that error. Debugging shows that fm is null. Maybe initialize is not being called correctly.
    Last edited by honvl; 11-05-2009, 11:52 PM.

    Leave a comment:


  • PrTester
    replied
    Originally posted by gomifromparis View Post
    This should work better :
    No luck for me same message :-(, I'm on NT7

    Leave a comment:


  • gomifromparis
    replied
    This should work better :
    Attached Files

    Leave a comment:


  • NinjaTrader_JoshP
    replied
    rally,

    Please send an email to support [at] ninjatrader [dot] com with Attn: Josh in the subject line.

    Leave a comment:


  • honvl
    replied
    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:


  • rally
    replied
    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:


  • NinjaTrader_JoshP
    replied
    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:


  • rally
    replied
    Originally posted by gomifromparis View Post

    As for recording, yes you have to let it running all day, even in NT7 ..
    Question to Ninjatrader, wasn't this issue supposed to have been resolved in NT7?

    Leave a comment:


  • PrTester
    replied
    Originally posted by gomifromparis View Post
    Here's V5
    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?

    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 Hwop38
by Hwop38
 
Started by CaptainJack, 04-24-2026, 11:07 PM
0 responses
303 views
0 likes
Last Post CaptainJack  
Started by Mindset, 04-21-2026, 06:46 AM
0 responses
244 views
0 likes
Last Post Mindset
by Mindset
 
Started by M4ndoo, 04-20-2026, 05:21 PM
0 responses
345 views
0 likes
Last Post M4ndoo
by M4ndoo
 
Started by M4ndoo, 04-19-2026, 05:54 PM
0 responses
175 views
0 likes
Last Post M4ndoo
by M4ndoo
 
Working...
X