NexusFi: Find Your Edge


Home Menu

 





Ninja Trader Custom Order Book - 1LDom - Source Code


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one 1LotTrader with 120 posts (318 thanks)
    2. looks_two Silvester17 with 27 posts (74 thanks)
    3. looks_3 Zondor with 17 posts (28 thanks)
    4. looks_4 philipp with 14 posts (7 thanks)
      Best Posters
    1. looks_one aligator with 3 thanks per post
    2. looks_two 1LotTrader with 2.7 thanks per post
    3. looks_3 Silvester17 with 2.7 thanks per post
    4. looks_4 Zondor with 1.6 thanks per post
    1. trending_up 176,096 views
    2. thumb_up 598 thanks given
    3. group 70 followers
    1. forum 356 posts
    2. attach_file 80 attachments




 
Search this Thread

Ninja Trader Custom Order Book - 1LDom - Source Code

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

In the words of Groucho,

"I sent the club a wire stating, "PLEASE ACCEPT MY RESIGNATION. I DON'T WANT TO BELONG TO ANY CLUB THAT WILL ACCEPT PEOPLE LIKE ME AS A MEMBER".

"If we don't loosen up some money, this sucker is going down." -GW Bush, 2008
“Lack of proof that something is true does not prove that it is not true - when you want to believe.” -Humpty Dumpty, 2014
“The greatest shortcoming of the human race is our inability to understand the exponential function.”
Prof. Albert Bartlett
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote

Can you help answer these questions
from other members on NexusFi?
What broker to use for trading palladium futures
Commodities
Cheap historycal L1 data for stocks
Stocks and ETFs
REcommedations for programming help
Sierra Chart
About a successful futures trader who didn´t know anyth …
Psychology and Money Management
Better Renko Gaps
The Elite Circle
 
  #262 (permalink)
 
1LotTrader's Avatar
 1LotTrader 
Douglas, United Kingdom
 
Experience: Advanced
Platform: Custom
Trading: Bund
Posts: 181 since Jun 2009
Thanks Given: 206
Thanks Received: 445

Apologies, I was going through some of my old video libraries and unpublishing old stuff that was no longer relevant but I forgot that one was linked to on BigMikes.

I've done quite a bit of work since then on my own version and so that video is not particularly relevant in any case.
I have changed it back to published though so that the link works correctly on this thread.

Zondor, adding the refresh to onBarUpdate will indeed take some extra load off of the cpu, I had it like that originally so that actual trades would always refresh without any delay. It worked fine on Bund but the way that trades go through on ES, it's perhaps a bit excessive so a refreshrate wouldn't be a bad thing.

I did spot the issue myself when a chap reported the "slot machine" effect a while back but I haven't worked on 1LDom as I have been working on a new Mark 2 version that is written from the ground up. Essentially it's a cut down version of my own CQG version but with a Ninja Adapter. At the mo I'm still working on the Ninja Adapter which is proving troublesome but something should be around the corner shortly.

1Lot

Follow me on Twitter Started this thread Reply With Quote
Thanked by:
  #263 (permalink)
 
1LotTrader's Avatar
 1LotTrader 
Douglas, United Kingdom
 
Experience: Advanced
Platform: Custom
Trading: Bund
Posts: 181 since Jun 2009
Thanks Given: 206
Thanks Received: 445


@Zondor, I had some time this afternoon and had a quick look at your changes, at first I didn't quite understand what you meant but I now see that you are saying OnbarUpdate automatically fires a ChartControl.Refresh. Can you point me to the source of that info? is it in the Ninja help file somewhere and I've missed it?

I'm sure I would've tested it back when I wrote it but if it does indeed do that then there is no need at all to be calling the manual refresh from within the event. I'm pretty sure however that it doesn't which is why I'm interested in your source for that info.

Thanks,

1Lot

Follow me on Twitter Started this thread Reply With Quote
Thanked by:
  #264 (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

I am eagerly looking forward to the new version not based on the Gom ladder foundation. Have not had a chance to test my revised version yet, but by next week I should know if it helps with the performance issues. I do know that in a SLOW market after stocks closed on Friday, it seemed to work fine.

Thanks for all this great work. Get up from that desk once in a while and have some fresh air, and fun.

"If we don't loosen up some money, this sucker is going down." -GW Bush, 2008
“Lack of proof that something is true does not prove that it is not true - when you want to believe.” -Humpty Dumpty, 2014
“The greatest shortcoming of the human race is our inability to understand the exponential function.”
Prof. Albert Bartlett
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
  #265 (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

Just noticed that for the Globex 6J Yen/Dollar contract, only zeroes appear in my price constant column, regardless of the format setting. All other columns work normally. I will take a look at the code this week some time.

"If we don't loosen up some money, this sucker is going down." -GW Bush, 2008
“Lack of proof that something is true does not prove that it is not true - when you want to believe.” -Humpty Dumpty, 2014
“The greatest shortcoming of the human race is our inability to understand the exponential function.”
Prof. Albert Bartlett
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #266 (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

Noticed on Friday, January 11 that volumes traded were not updating. The mod to highlight the last traded price in yellow also would not update. So far I cannot find the cause. Restarting Ninjatrader did not help. Will have to wait for live market data to check further. Will look at session and merge settings then.

This morning (Saturday) everything works fine in replay mode.

Regarding Japanese Yen, I noticed that my Gom Volume Ladder does not work with Yen at all. I am guessing that the leading zeroes in the prices are the problem.

"If we don't loosen up some money, this sucker is going down." -GW Bush, 2008
“Lack of proof that something is true does not prove that it is not true - when you want to believe.” -Humpty Dumpty, 2014
“The greatest shortcoming of the human race is our inability to understand the exponential function.”
Prof. Albert Bartlett
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
  #267 (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

Everything updating normally now.

Yen/USD 6J Globex contract still showing all zeroes in price constant ladder. That was not related to whatever went wrong on Friday. Aside from that the DOM seems to work fine with 6J.

"If we don't loosen up some money, this sucker is going down." -GW Bush, 2008
“Lack of proof that something is true does not prove that it is not true - when you want to believe.” -Humpty Dumpty, 2014
“The greatest shortcoming of the human race is our inability to understand the exponential function.”
Prof. Albert Bartlett
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
  #268 (permalink)
 
DavidHP's Avatar
 DavidHP 
Isla Mujeres, MX
Legendary Market Wizard
 
Experience: Advanced
Platform: NinjaTrader
Broker: Ninjatrader / Optimus Futures / AmpFutures
Trading: ES / 6E / 6B / CL
Frequency: Every few days
Duration: Minutes
Posts: 1,612 since Aug 2009
Thanks Given: 11,341
Thanks Received: 2,747


Zondor View Post
Everything updating normally now.

Yen/USD 6J Globex contract still showing all zeroes in price constant ladder. That was not related to whatever went wrong on Friday. Aside from that the DOM seems to work fine with 6J.

I discovered a similar situation tonight on ES.

The price is at 1470.75 but the DOM is stuck at the close of Friday.

When I checked the DataSeries I found that the end date was stuck on 1/11.
This is a new chart (created today) but the LDom Template loaded the old date.
Once I corrected the End Date, the chart updated correctly.

FWIW

Rejoice in the Thunderstorms of Life . . .
Knowing it's not about Clouds or Wind. . .
But Learning to Dance in the Rain ! ! !
Attached Thumbnails
Click image for larger version

Name:	ES 03-13 (1 Tick)  1_11_2013.jpg
Views:	261
Size:	101.6 KB
ID:	99447  
Follow me on Twitter Reply With Quote
Thanked by:
  #269 (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

Made some hacks so that Yen prices will no longer be displayed as zeroes. Use the newly added JapaneseYen formatting option for the Price Constant ladder if working with the 6J.

Problem was that for the 6J, the ticksize converted to a string is "1E-06" (scientific notation). This was not being tested for.

Search for "Zondor" in code comments to find changes that were made.


"If we don't loosen up some money, this sucker is going down." -GW Bush, 2008
“Lack of proof that something is true does not prove that it is not true - when you want to believe.” -Humpty Dumpty, 2014
“The greatest shortcoming of the human race is our inability to understand the exponential function.”
Prof. Albert Bartlett
Attached Files
Elite Membership required to download: OneLDOM Jan 14 2013.cs
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
  #270 (permalink)
 
1LotTrader's Avatar
 1LotTrader 
Douglas, United Kingdom
 
Experience: Advanced
Platform: Custom
Trading: Bund
Posts: 181 since Jun 2009
Thanks Given: 206
Thanks Received: 445


Zondor,

How did the testing go? I've had a friend tell me he's been using your latest version successfully. I'm going to test it myself this week and if all good then make it the latest main source version.

1Lot

Follow me on Twitter Started this thread Reply With Quote
Thanked by:




Last Updated on February 19, 2014


© 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