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

  #41 (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

so if we use the millisecond version, there's no improvement in any way when compared to the binary format? The updates that you mentioned, that works with the binary format as well ?
( ie GomOnBarUpdateDone method to allow better performance).


I'm assuming based on your reply that the gom millisecond data is only to check for network jitter?

Sorry if these questions seem redundant, just try to figure out the best way to go at it. I also see the new converters on there, thank you.

For people playing around with the q collector version file format, i talked to tim and he said you can have it update every 5 seconds, but its not suitable for day trading. Its also a bit slow.. sorry guys.

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
Trade idea based off three indicators.
Traders Hideout
MC PL editor upgrade
MultiCharts
Exit Strategy
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Just another trading journal: PA, Wyckoff & Trends
33 thanks
Tao te Trade: way of the WLD
24 thanks
My NQ Trading Journal
14 thanks
HumbleTraders next chapter
11 thanks
GFIs1 1 DAX trade per day journal
11 thanks
  #42 (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

Hi Gomi,

BigMike is having a programmer put together a new downloads module. I would like your permission, once it is complete, to begin putting all of your great work into this as my test/debugging project. The new downloads section will be thread like and have a lot of easy to use features. Including auto update notification and places for comments.

Am trying to envision a way to combined this with Sam BMCodex Project as a way to organize large coding projects.

More to come as I begin to get familiar with the new GUI.

R.I.P. Andy Zektzer (ZTR), 1960-2010.
Please visit this thread for more information.
Visit my NexusFi Trade Journal Reply With Quote
  #43 (permalink)
 gomi 
Paris
Market Wizard
 
Experience: None
Platform: NinjaTrader
Posts: 1,270 since Oct 2009
Thanks Given: 282
Thanks Received: 4,505



Michael.H View Post
so if we use the millisecond version, there's no improvement in any way when compared to the binary format?

No. It's only useful if you design millisecond indicators.


Michael.H View Post
The updates that you mentioned, that works with the binary format as well ?
( ie GomOnBarUpdateDone method to allow better performance).

Yes


Michael.H View Post
I'm assuming based on your reply that the gom millisecond data is only to check for network jitter?

no, it records millisecond timestamps, but it is only useful if you have a more or less constant network delay (so low jitter)


ZTR View Post
I would like your permission, once it is complete, to begin putting all of your great work into this as my test/debugging project.

Yes, no problem. I'm honored ;-)

Started this thread Reply With Quote
Thanked by:
  #44 (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

Gotcha, after reviewing some videos, the indicator shows a roughly a negative ~15000-16800 ms lag on es and ym with my dtn feed and internet connection. Is this something that the indicator might be useful for, or is that about standard in your opinion? My pc lock is pretty accurate. I've read your other posts, and noticed no delay( at least so far)


Thanks again.

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

I tried to use IRT format but does not working nor in reading nor in recording. I have tried anything but still not working.

What is the prob?

Thanks.

Luke.

Take your Pips, go out and Live.
Luke.
Attached Thumbnails
Click image for larger version

Name:	IRT.png
Views:	322
Size:	40.7 KB
ID:	15404  
Reply With Quote
  #46 (permalink)
 slowpork 
Los Angeles, CA
 
Experience: Beginner
Platform: Nintendo Wii w/ Nunchuk Controller, MarketDelta, Ninja
Broker: MBtrading/Mirus/IQFeed
Trading: Ibanez, Gibson, GBP/JPY, 6E, ES
Posts: 4 since May 2010
Thanks Given: 2
Thanks Received: 8

hi Luke.

Not sure if you try these steps from MarketDelta.

- go to File / Export / History Data
- choose the symbol, select range and export
- save as filename "ES 09-10.IRT.txt" (or "ES 06-10.IRT.txt") under "My Documents"

For IRT, it's read-only. So to have data all in one place is to use Gom file convertor. *(i'm testing)

Slowpork

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


slowpork View Post
hi Luke.

Not sure if you try these steps from MarketDelta.

- go to File / Export / History Data
- choose the symbol, select range and export
- save as filename "ES 09-10.IRT.txt" (or "ES 06-10.IRT.txt") under "My Documents"

For IRT, it's read-only. So to have data all in one place is to use Gom file convertor. *(i'm testing)

Slowpork


Ja, I done it first.

Thanks.

Luke.

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

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.

Visit my NexusFi Trade Journal Reply With Quote
  #49 (permalink)
 Prtester 
SE-Asia
 
Experience: Intermediate
Platform: NinjaTrader
Broker: Amp
Trading: ES
Posts: 151 since Jun 2009
Thanks Given: 66
Thanks Received: 124


gomi View Post
Here's a new version of the Recorder.

Added

File Formats


* Millisec format, which will try to use the current clock to record millisecond timestamps. The recorder will try to adapt the lag between the exchange and the PC to keep timestamps matched (see for an indy that monitors the lag). And thanks Zondor, there was indeed a bug ;-)

Was so busy that i just don't see this before, cool, I play with it when have time, Thanks!

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


The millisec file format has time stamps with millisecond resolution instead of one second resolution. For most indicators that use the GomRecorder, this is not necessary, and unless otherwise stated, the preferred file format is generally binary.

The millisecond time stamps are helpful for indicators that do things such as counting the number of trades per unit of time. If the unit of time is less than one second, or for that matter less than a few seconds, one second time stamps would be too coarse to give meaningful results. For example, trying to determine the average volume traded within each of the 0.8 second time periods within a bar. So this is a great feature for indicators that measure TRADE INTENSITY.

For best results it's important to keep your computer clock synchronized with a reference clock using an NTP client such as Meinberg.

Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
Thanked by:




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