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,270 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

  #61 (permalink)
 aviat72 
San Francisco Bay Area
 
Experience: Intermediate
Platform: NT,TOS,IB
Trading: ES,CL,TF
Posts: 281 since Jun 2010
Thanks Given: 161
Thanks Received: 273

I have a question of the millisecond time-stamp.

When reloading historical data, does NT supply the millisecond at which the bar finished in Time[0] for the new precision of the GomRecorder to be effective?

On a different note, I presume if you have IRT or MD, you can then download the data from IQFeed using that tool and use them as input for GOM files. That way you will not have to have the recorder running 24/7.

Ideally what would be ideal if you could get the files up to date real-time. NT will occasionally hang and while you are restarting, you lose the ability to recreate the data intra-day.

Now all this will not be necessary if NT could supply ticks for historical data .... But then we will not be thanking Gomi.

Visit my NexusFi Trade Journal Reply With Quote

Can you help answer these questions
from other members on NexusFi?
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Quant vue
Trading Reviews and Vendors
REcommedations for programming help
Sierra Chart
MC PL editor upgrade
MultiCharts
Better Renko Gaps
The Elite Circle
 
  #62 (permalink)
tarantino
Willowbrook, IL
 
Posts: 32 since Sep 2010
Thanks Given: 71
Thanks Received: 39


gomi View Post
Hi,

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


Does anybody know if there is a way to convert NT Market Replay Data to Gomi Recorder format?
Or at least anybody tried to do such an utility?

Reply With Quote
  #63 (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



aviat72 View Post
I have a question of the millisecond time-stamp.

When reloading historical data, does NT supply the millisecond at which the bar finished in Time[0] for the new precision of the GomRecorder to be effective?
................................................

No, the resolution of NT historical data is 1 second, but GomRecorder doesn't use that data, only the recorded data.

Take your Pips, go out and Live.
Luke.
Reply With Quote
  #64 (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


tarantino View Post
Does anybody know if there is a way to convert NT Market Replay Data to Gomi Recorder format?
Or at least anybody tried to do such an utility?

Read this post , but I haven't tried it and don't understood if it works or not, but think it doesn't work. lol .

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

To access the correct precision you need to use the GomOnMarketDataWithTime method which will provide the millisec timestamp.


LukeGeniol View Post
No, the resolution of NT historical data is 1 second, but GomRecorder doesn't use that data, only the recorded data.


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

No format is unknown( at least to me, I know fin-alg reads it but I don't know how they did it...)



tarantino View Post
Does anybody know if there is a way to convert NT Market Replay Data to Gomi Recorder format?
Or at least anybody tried to do such an utility?


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

Here's a new version of the recorder that corrects the time filtering problem some people had on GomMP.

Now ticks should be correcty filtered based on your session settings. You can still have ticks outside the session added on the first bar of the session by setting "Disable time filter" to true.

I promise to soon do a complete update on GomPackage so we don't have to keep chasing the latest versions....

Attached Files
Elite Membership required to download: GomRecorderIndicator.cs
Started this thread Reply With Quote
  #68 (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


gomi View Post
Here's a new version of the recorder that corrects the time filtering problem some people had on GomMP.

Now ticks should be correcty filtered based on your session settings. You can still have ticks outside the session added on the first bar of the session by setting "Disable time filter" to true.

I promise to soon do a complete update on GomPackage so we don't have to keep chasing the latest versions....


Gomi,

Can you please place header line of text in files with the date of the most recent revisions.

Thanks,

RJay

Reply With Quote
  #69 (permalink)
 
Zondor's Avatar
 Zondor 
Portland Oregon, United States
 
Experience: Beginner
Platform: NinjatraderŽ
Broker: CQG, Kinetick
Trading: Gameplay KlownbineŽ Trading of Globex
Posts: 1,333 since Jul 2009
Thanks Given: 1,246
Thanks Received: 2,731

This is a reminder/response to an earlier post in this thread.

Remember that an environment variable has a NAME and a VALUE.

The GomRecorder looks for an environment variable with the name GOMFOLDER.

The VALUE can be any VALID windows path name. The path must point to a folder that actually exists.

I set the value of my GOMFOLDER environment variable to C:\GomData, because that makes the GomData folder easy to find. There must actually be a folder called GomData located directly under the C directory, so that the value of the environment variable will be a VALID path name.

(On one of my computers that has two PHYSICAL disks, the GOMFOLDER points to D:\GomData. Maybe this improves I/O performance a little... maybe not. Worth trying.)

Gomi, thanks for the new recorder !

Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #70 (permalink)
 gomi 
Paris
Market Wizard
 
Experience: None
Platform: NinjaTrader
Posts: 1,270 since Oct 2009
Thanks Given: 282
Thanks Received: 4,505



Zondor View Post
(On one of my computers that has two PHYSICAL disks, the GOMFOLDER points to D:\GomData. Maybe this improves I/O performance a little... maybe not. Worth trying.)

I'm pretty sure I/O use is very low : most systems have writing cache enabled in windows, so most I/O is done in the cache, which flushed much more rarely.

This is also why you could lose tick info if your computer crashed and the write cache is not empty.

Attached Thumbnails
Click image for larger version

Name:	io.png
Views:	292
Size:	165.1 KB
ID:	24123  
Started this thread 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