NexusFi: Find Your Edge


Home Menu

 





Using OnMarketData() on Historical data with a recording engine


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one gomi with 34 posts (87 thanks)
    2. looks_two aviat72 with 10 posts (2 thanks)
    3. looks_3 danjurgens with 9 posts (3 thanks)
    4. looks_4 Michael.H with 8 posts (0 thanks)
      Best Posters
    1. looks_one gomi with 2.6 thanks per post
    2. looks_two Zondor with 1 thanks per post
    3. looks_3 danjurgens with 0.3 thanks per post
    4. looks_4 aviat72 with 0.2 thanks per post
    1. trending_up 51,156 views
    2. thumb_up 104 thanks given
    3. group 28 followers
    1. forum 115 posts
    2. attach_file 23 attachments




 
Search this Thread

Using OnMarketData() on Historical data with a recording engine

  #51 (permalink)
 Michael.H 
CA
 
Experience: Master
Platform: Marketdelta and Ninja
Broker: Velocity
Trading: NQ
Posts: 663 since Apr 2010
Thanks Given: 64
Thanks Received: 529

I went on their website, but there's no executable file. I know that this doesn't have to do with the gom recorder, but is anyone willing to share how its setup?

In terms of Gomi's work, it doesn't seem i can use it anymore anyways because of all the issues with ninja. Im forced to use a different platform for now.

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
REcommedations for programming help
Sierra Chart
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
ZombieSqueeze
Platforms and Indicators
NexusFi Journal Challenge - May 2024
Feedback and Announcements
Exit Strategy
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Spoo-nalysis ES e-mini futures S&P 500
41 thanks
Just another trading journal: PA, Wyckoff & Trends
30 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
23 thanks
GFIs1 1 DAX trade per day journal
21 thanks
  #52 (permalink)
 gomi 
Paris
Market Wizard
 
Experience: None
Platform: NinjaTrader
Posts: 1,270 since Oct 2009
Thanks Given: 282
Thanks Received: 4,505


aviat72 View Post
While trying to develop something similar to your Volume Ladder, I felt that CalculateOnBarClose should be true, since all the live data is based on MarketData event. However, when rebuilding the information, I had an off by one error since the bar on which the data-was to be plotted was already completed before the Gom functions were call. I offset it by one, but then faced a problem when transitioning from historical to live data. The bar which is currently being built was part historical and part real-time.

Will the new updates help in the transition? I am not sure whether the setting for the CalculateOnBarClose would make any difference in overall performance for the Gom based indicators but wanted to optimize as much as I could.

I think you should keep CalculateOnBarClose to false... If you override Plot() method then new version is of no importance, but fo r best performance(on historiocla data) if you use OnBarUpdate-like code you should put bar init code in GomOnBarUpdate() and plotting code in GomOnBarUpdateDone()

Started this thread Reply With Quote
  #53 (permalink)
 gomi 
Paris
Market Wizard
 
Experience: None
Platform: NinjaTrader
Posts: 1,270 since Oct 2009
Thanks Given: 282
Thanks Received: 4,505



LukeGeniol View Post
Ja, I done it first.

Thanks.

Luke.

Does it look like
-SYMBOL DATE PRICE TICKVOL BID ASK
@ES# 04/20/2009 16:30:00 831.50000 50 831.50000 831.50000
@ES# 04/20/2009 16:30:00 831.50000 32 831.50000 831.50000
@ES# 04/20/2009 16:30:00 831.50000 30 831.50000 831.50000
@ES# 04/20/2009 16:30:00 831.50000 25 831.50000 831.50000
@ES# 04/20/2009 16:30:00 831.50000 25 831.50000 831.50000

Started this thread Reply With Quote
  #54 (permalink)
 
LukeGeniol's Avatar
 LukeGeniol 
Italy (IT) Italy
 
Experience: Advanced
Platform: ATAS, R|Trader, NT8
Broker: Rithmic
Trading: CL, Brent, GC, TF
Frequency: Daily
Duration: Minutes
Posts: 1,499 since Apr 2010
Thanks Given: 408
Thanks Received: 985


gomi View Post
Does it look like
-SYMBOL DATE PRICE TICKVOL BID ASK
@ES# 04/20/2009 16:30:00 831.50000 50 831.50000 831.50000
@ES# 04/20/2009 16:30:00 831.50000 32 831.50000 831.50000
@ES# 04/20/2009 16:30:00 831.50000 30 831.50000 831.50000
@ES# 04/20/2009 16:30:00 831.50000 25 831.50000 831.50000
@ES# 04/20/2009 16:30:00 831.50000 25 831.50000 831.50000


ja but the date is in different format M/D/Y.

Luke.

Take your Pips, go out and Live.
Luke.
Reply With Quote
  #55 (permalink)
 gomi 
Paris
Market Wizard
 
Experience: None
Platform: NinjaTrader
Posts: 1,270 since Oct 2009
Thanks Given: 282
Thanks Received: 4,505

So it should work then.... Dunno if anybody else has the problem...

Started this thread Reply With Quote
  #56 (permalink)
 
LukeGeniol's Avatar
 LukeGeniol 
Italy (IT) Italy
 
Experience: Advanced
Platform: ATAS, R|Trader, NT8
Broker: Rithmic
Trading: CL, Brent, GC, TF
Frequency: Daily
Duration: Minutes
Posts: 1,499 since Apr 2010
Thanks Given: 408
Thanks Received: 985


gomi View Post
So it should work then.... Dunno if anybody else has the problem...

sorry, I see now that the date is in the same format.....ops

Thanks.

Luke.

Take your Pips, go out and Live.
Luke.
Reply With Quote
  #57 (permalink)
 
ZTR's Avatar
 ZTR 
 
Experience: Advanced
Platform: NinjaTrader7
Broker: Mirus RCG/Zen-Fire
Trading: CL & 6e, looking at ES, ZB and AU again.
Posts: 2,096 since Nov 2009
Thanks Given: 1,099
Thanks Received: 1,393

Is there a way to force the Gom Recorder to write all buffered data before a shut down?

I was sending Gom Data to a collaborator and then restated & see this. If I do not restart then the file stored has a much earlier time stamp & was uncertain if all data accumulated would be included in the sent file.

R.I.P. Andy Zektzer (ZTR), 1960-2010.
Please visit this thread for more information.
Attached Thumbnails
Click image for larger version

Name:	CL 08-10 (2048 Volume)  7_8_2010_1905.jpg
Views:	341
Size:	238.8 KB
ID:	16707  
Visit my NexusFi Trade Journal Reply With Quote
  #58 (permalink)
 gomi 
Paris
Market Wizard
 
Experience: None
Platform: NinjaTrader
Posts: 1,270 since Oct 2009
Thanks Given: 282
Thanks Received: 4,505

Hi,

I don't know why this happens because the recorder doesn't buffer data : it flushes after every tick
bw.Flush();

Started this thread Reply With Quote
Thanked by:
  #59 (permalink)
 FBJS 
Toronto
 
Experience: Advanced
Platform: NinjaTrader
Posts: 109 since Sep 2009
Thanks Given: 30
Thanks Received: 193


cclsys View Post
Gomi or anyone else. I have tried to apply the Recorder to EdsVolPriceBars but it won't accept the GomOnMarketUpdate so I am stumped. It runs as is (without it inserted) but doesn't record.

The relevant line (I think) is:

"
protected override void OnMarketData(MarketDataEventArgs e)

"

I have tried putting in:
"
protected override void GomOnMarketData(MarketDataEventArgs e)
"
to no avail.

Any suggestions?

I'm just wondering: did you ever get this working, or did anyone? I am interested in a Gomi version of this particular indicator, if it exists...

Thanks!

Reply With Quote
  #60 (permalink)
 
RJay's Avatar
 RJay 
Hartford, CT. USA
 
Experience: Intermediate
Platform: NinjaTrader
Broker: AMP/CQG, Kinetick
Trading: RTY
Posts: 683 since Jun 2009
Thanks Given: 758
Thanks Received: 787


Hi All,

Trying out the recorder from post 31.

Its recording OK with binary setting but will not record data with millisec setting.

Does anyone have this working in NT7???

Thanks,

RJay


UPDATE:

Well, I got it working sort of.

If I record using GomCD indicator, then the historic data can be accessed with my indicators.

Don't know why... But it works.

Reply With Quote




Last Updated on March 6, 2011


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts