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

  #21 (permalink)
 gomi 
Paris
Market Wizard
 
Experience: None
Platform: NinjaTrader
Posts: 1,270 since Oct 2009
Thanks Given: 282
Thanks Received: 4,505

Hi,

It's here in VIP section


subterfuge View Post
Hi Gom. I've seen a few screenshots of people using 'gomvolumeladder'. I cant seem to find it though. Is it in the ninjatrader thread you linked to in your OP somewhere? thanks


Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
MC PL editor upgrade
MultiCharts
REcommedations for programming help
Sierra Chart
NexusFi Journal Challenge - May 2024
Feedback and Announcements
ZombieSqueeze
Platforms and Indicators
How to apply profiles
Traders Hideout
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Spoo-nalysis ES e-mini futures S&P 500
48 thanks
Just another trading journal: PA, Wyckoff & Trends
35 thanks
Bigger Wins or Fewer Losses?
24 thanks
Tao te Trade: way of the WLD
24 thanks
GFIs1 1 DAX trade per day journal
22 thanks
  #22 (permalink)
 gomi 
Paris
Market Wizard
 
Experience: None
Platform: NinjaTrader
Posts: 1,270 since Oct 2009
Thanks Given: 282
Thanks Received: 4,505

Yes I'm pretty sure this will work. I can post my current ES 0310 if you want to test.



Big Mike View Post
I'm just now having some time to start working with this.

I have a question.

We can use this for backtesting yes? So for instance, if I normally want to do a MarketIfTouch scenario and had to use OnMarketData(), I can now use your method, and provided the recorded data is present on my system, I can recreate the proper events even during a backtest, yes?

If so, I need to setup another VM and start recording a bunch of instruments using GomRecorder... so that in a year I can use this

Mike


Started this thread Reply With Quote
Thanked by:
  #23 (permalink)
 dnof 
san francisco, ca
 
Experience: Intermediate
Platform: NinjaTrader
Posts: 45 since Nov 2009
Thanks Given: 42
Thanks Received: 27



Big Mike View Post
I'm just now having some time to start working with this.

I have a question.

We can use this for backtesting yes? So for instance, if I normally want to do a MarketIfTouch scenario and had to use OnMarketData(), I can now use your method, and provided the recorded data is present on my system, I can recreate the proper events even during a backtest, yes?

If so, I need to setup another VM and start recording a bunch of instruments using GomRecorder... so that in a year I can use this

Mike

Gomi,

Is there any reason we could not use replay data to "backfill" some of this? It would be good to be able to do this.

I am also thinking of a slightly different approach but still in the concept/investigation phase so once I get a bit more crystalized I'll post back.

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

Backfill with market replay works but the recorder won't write data previous to the last date/time written in the file. So it can't fill gaps.

But for that you can
  • convert the file to a human readable format with the file converter (flat format)
  • using large file editor like emeditor, you edit the file and remove the end of the file, until beginning of the gap (remember Time Zone is UTC)
  • populate the file with a market replay
  • reconvert it to binary (if necessary) and reload

Started this thread Reply With Quote
  #25 (permalink)
 
GoldStandard's Avatar
 GoldStandard 
arizona
 
Experience: Intermediate
Platform: rolling my own
Trading: ES,CL,GC,6E
Posts: 205 since Oct 2009
Thanks Given: 324
Thanks Received: 191


gomi View Post
Yes I'm pretty sure this will work. I can post my current ES 0310 if you want to test.

Does this mean we don't absolutely need NT to fix their bid/ask ordering in order to code strategies that use bid/ask data for indicators and filling orders more accurately..... Is it possible we could use COMCD data for this?

Recording all the data and making it available would be a challenge, but perhaps not as insurmountable a challenge as getting NT to change course of their development.

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


GoldStandard View Post
Does this mean we don't absolutely need NT to fix their bid/ask ordering in order to code strategies that use bid/ask data for indicators and filling orders more accurately..... Is it possible we could use COMCD data for this?

Recording all the data and making it available would be a challenge, but perhaps not as insurmountable a challenge as getting NT to change course of their development.

After some thinking I don't think this will work, because I don't think you can get intrabar fills on historical backtest. It would be logical you are always filled on next bar, so I don't think you can simulate intrabar fills.

Or you could completely monitor trades by yourself without EnterLong() or EnterShort(), outputting PnL in the console. But bye bye fancy stats and optimizer.
Sorry :-(

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

Hi guys,

Just wanted to mention I updated the package to 1.3 on ninja web site.
Some bug correction, a few upgrades and added a delta momentum indicator

Cheers

Attached Thumbnails
Click image for larger version

Name:	gompackage1.2.png
Views:	373
Size:	77.4 KB
ID:	10176  
Started this thread Reply With Quote
Thanked by:
  #28 (permalink)
 syxforex 
British Columbia
 
Experience: Advanced
Platform: NINJA
Broker: ZEN
Trading: Crude
Posts: 1,091 since May 2010

Hi Gomi,

First let me just say thank you for your generosity in sharing your work with everybody in the NT world. I don't know if I can figure out how to use these codes with NT so I can't even imagine how long it took you to build them. I just switched over to NT7 from MT4 and I'm quite surprised at how long it takes to load charts when all I have on them is a few exponential stochastics and bollinger bands, wow, could I do it with a calculator that fast.

I don't think I'm going to risk the rather fragile and seemingly shaky state of the platform at present. It seems she can't take much more already. Adding custom codes sounds like a lot of fun and I'm wishing I could check it out. I did a demo of Market Delta and was quite impressed, is the Gomi CD similar? And why does the recorder need to be on 24/7 if Zen Fire saves tick data already. What does one do if they experience a power or inet outage, as I do on a regular basis?

Many Thanks,




gomi View Post
Hi guys,

Just wanted to mention I updated the package to 1.3 on ninja web site.
Some bug correction, a few upgrades and added a delta momentum indicator

Cheers


Visit my NexusFi Trade Journal Reply With Quote
  #29 (permalink)
 syxforex 
British Columbia
 
Experience: Advanced
Platform: NINJA
Broker: ZEN
Trading: Crude
Posts: 1,091 since May 2010

Is this thread still going? I have some big areas of missing data in my 6E Gomi Folder. Can't seem to find Ztrader's post about backfilling the GomFolder with the replay function. Can anybody point me in the right direction?

thanks..



dnof View Post
Gomi,

Is there any reason we could not use replay data to "backfill" some of this? It would be good to be able to do this.

I am also thinking of a slightly different approach but still in the concept/investigation phase so once I get a bit more crystalized I'll post back.


Visit my NexusFi Trade Journal Reply With Quote
  #30 (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


Here it is:



Fixed this to show up in a downloads search & added keywords. Thought I did this before the webinar???

R.I.P. Andy Zektzer (ZTR), 1960-2010.
Please visit this thread for more information.
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