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 175,530 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

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

you must copy it over the previous version. Either delete the previous file or overwrite it with the new one.

It should be going here: \\Documents\NinjaTrader 7\bin\Custom\Indicator

Double check you haven't got the old .cs anywhere else as Ninja scans multiple directories and you'll end up with some issues.

1Lot

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

Can you help answer these questions
from other members on NexusFi?
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Exit Strategy
NinjaTrader
Better Renko Gaps
The Elite Circle
PowerLanguage & EasyLanguage. How to get the platfor …
EasyLanguage Programming
How to apply profiles
Traders Hideout
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Just another trading journal: PA, Wyckoff & Trends
31 thanks
Spoo-nalysis ES e-mini futures S&P 500
28 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
20 thanks
GFIs1 1 DAX trade per day journal
17 thanks
  #152 (permalink)
 
vvhg's Avatar
 vvhg 
Northern Germany
 
Experience: Intermediate
Platform: NT
Trading: FDAX, CL
Posts: 1,583 since Mar 2011
Thanks Given: 1,016
Thanks Received: 2,824


1LotTrader View Post
Yes a separate form is better but then essentially you will be starting it again from scratch, which then begs the question why bother writing it in Ninja if you are going to write custom forms, may as well write standalone and have complete control. This was the conclusion I came to myself.

Regards the actual placing of orders on Ninja and management, ATM's and all the rest of it I can't really offer much on that as I didn't delve to deeply into it. The ATI allows for order placing through the DLL interface but it is hardly ever updated and I'm not sure how much control it allows. Only other way around that would be finding some unsupported exposed functions I guess.

Again though if you go through all this hassle, is it worth it? if you want to build it from scratch adding all these layers adds extra unnecessary time. You see what I did in the end, I wrote a completely standalone book and then hooked it directly into CQG's interface. There are so many advantages for instance, going via this route, I was able to get CQG to reconfigure my account set up to route directly through there main European data Centre, as close to Eurex without the bouncing to the United States that will happen with many other connections and account types.

At the end of the day it's just a question of where do you want to take it and how far do you want to go, time to invest etc., for me, once having decided to undertake the task, adding all these unnecessary endless layers/wrappers made no sense.

I stripped it all out and went to the source . My book orders average around 40m/s working on Eurex, some days better but rarely worse. The main amount of time I give up is between my house and the main port, i live on an island in a rural setting and the line is not as great quality from here to the port, it takes as much time to go from my house to the port as it does the whole trip to Frankfurt and back. At the end of the day I could make it even faster but I like the smell of cowsh!t in the morning, so what can you do.. lol

1Lot

The only advantage would be that it integrates with NT. So orders would appear in chart trader and one could use the NT ATM strategies.
But everything depends on the question if it is possible to get to the right click menu and if it is then possible to change the price...without the ability to submit limits and stops via the chart trader this approach would not work anyways. I think @bukkan has done something slightly similar with looping through ChartTrader controls... maybe he has an idea...
Also @ThatManFromTexas has used strategies to invoke ATM strategies from within an indicator, but I don't know if the strategy has to be activated manually before or if the indicator invokes it... if it is invoked by the indicator then everything should be quite easy from there on....maybe TMFT can shed some light?

vvhg

P:S: @1LotTrader I'll stop hijacking your thread now....promise

Hic Rhodos, hic salta.
Reply With Quote
  #153 (permalink)
 
Surly's Avatar
 Surly 
denver, colorado
 
Experience: Intermediate
Platform: NT
Trading: ZS
Posts: 704 since Mar 2011
Thanks Given: 628
Thanks Received: 1,263



1LotTrader View Post
you must copy it over the previous version. Either delete the previous file or overwrite it with the new one.

It should be going here: \\Documents\NinjaTrader 7\bin\Custom\Indicator

Double check you haven't got the old .cs anywhere else as Ninja scans multiple directories and you'll end up with some issues.

1Lot

That's what I thought but I have no OneLDOM.cs in Indicator folder and I do have a OLDomV1.9.cs in my \bin\custom\ folder. I installed from your blog if that changes things... Thanks again.

Seek freedom and become captive of your desires. Seek discipline and find your liberty. - Frank Herbert
Visit my NexusFi Trade Journal Reply With Quote
  #154 (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

@Surly,

I have not updated the binary on my blog yet, apologies I thought you were ok with .cs file and so on. I will compile a new binary and upload it. Will send you a PM when it's done. existing binary is still old.

1Lot

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

@vvhg, no worries, not hijacking, enjoy a good bit of discussion.

I have very little use of NT ATM strategies, trying to implement them in an order book I can see no reason, it is like bringing a knife to a gun fight.

I can see the useful part of integration with NT meaning you don't have to write all the adapters etc. but you will lose a lot in return. Anybody who has traded on an order book for a year daily would think twice because it is painfully visible how often you give up a tick here or a tick there, slow into the queue. In Bund you know sometimes if you don't get out, now you have to take the price 3 ticks down, that's costing 30bucks.. 2 or 3 times a week, this cost is adding up quickly.

This what I have said above is again the main reason why I encourage people to spend 3-6 months on the 1LDom as a stepping stone to learn about a book. If you spend the time, you will see many of the things where it is weak, what could be better etc., then you have a good base to move to something better. Problem is everyone wants the best straight away but don't know what best is. ATM ability in my opinion is a Z-list requirement. Speed of orders/Speed of Price/Stability of Book is A-List requirement. Just my opinion anyway.

1Lot

Follow me on Twitter Started this thread Reply With Quote
Thanked by:
  #156 (permalink)
 
ThatManFromTexas's Avatar
 ThatManFromTexas 
Houston,Tx
 
Experience: Advanced
Platform: NinjaTrader
Broker: Mirus Futures/Zen-Fire
Trading: TF
Posts: 2,265 since Feb 2010
Thanks Given: 1,206
Thanks Received: 4,353


vvhg View Post
.... @ThatManFromTexas has used strategies to invoke ATM strategies from within an indicator, but I don't know if the strategy has to be activated manually before or if the indicator invokes it... if it is invoked by the indicator then everything should be quite easy from there on....maybe TMFT can shed some light?

vvhg

P:S: @1LotTrader I'll stop hijacking your thread now....promise

@vvhg

The indicator creates buy and sell buttons on Chart Trader...

When I click a buy or sell button ... the indicator invokes a strategy to create an order (market or limit depending on setup) ... which invokes an ATM strategy to handle stops and targets ... from that point on everything works just as it would normally...


I'm just a simple man trading a simple plan.

My daddy always said, "Every day above ground is a good day!"
Reply With Quote
  #157 (permalink)
 
lolu's Avatar
 lolu 
Lagos, Nigeria
Market Wizard
 
Experience: Intermediate
Platform: NinjaTrader, SierraChart
Trading: Euro Currency & Oil
Frequency: Daily
Duration: Hours
Posts: 2,552 since Jun 2009
Thanks Given: 1,049
Thanks Received: 1,678


ThatManFromTexas View Post
@vvhg

The indicator creates buy and sell buttons on Chart Trader...

When I click a buy or sell button ... the indicator invokes a strategy to create an order (market or limit depending on setup) ... which invokes an ATM strategy to handle stops and targets ... from that point on everything works just as it would normally...


@TMFT,

How and where did you get the Momentum Actual bar type ? Has @eman posted an update of the Momentum bar type ?

Lolu

Visit my NexusFi Trade Journal Reply With Quote
  #158 (permalink)
 
ThatManFromTexas's Avatar
 ThatManFromTexas 
Houston,Tx
 
Experience: Advanced
Platform: NinjaTrader
Broker: Mirus Futures/Zen-Fire
Trading: TF
Posts: 2,265 since Feb 2010
Thanks Given: 1,206
Thanks Received: 4,353


lolu View Post
@TMFT,

How and where did you get the Momentum Actual bar type ? Has @eman posted an update of the Momentum bar type ?

Lolu

@lolu

It is the free version .... but not the latest version as I don't use the added features of the newer version.

I'm just a simple man trading a simple plan.

My daddy always said, "Every day above ground is a good day!"
Reply With Quote
Thanked by:
  #159 (permalink)
 
lolu's Avatar
 lolu 
Lagos, Nigeria
Market Wizard
 
Experience: Intermediate
Platform: NinjaTrader, SierraChart
Trading: Euro Currency & Oil
Frequency: Daily
Duration: Hours
Posts: 2,552 since Jun 2009
Thanks Given: 1,049
Thanks Received: 1,678


ThatManFromTexas View Post
@lolu

It is the free version .... but not the latest version as I don't use the added features of the newer version.

Could you please PM it to me ? I suppose that I have one of the newer version.

Lolu

Visit my NexusFi Trade Journal Reply With Quote
  #160 (permalink)
 
ThatManFromTexas's Avatar
 ThatManFromTexas 
Houston,Tx
 
Experience: Advanced
Platform: NinjaTrader
Broker: Mirus Futures/Zen-Fire
Trading: TF
Posts: 2,265 since Feb 2010
Thanks Given: 1,206
Thanks Received: 4,353



lolu View Post
Could you please PM it to me ? I suppose that I have one of the newer version.

Lolu

@lolu

Check your pm's.

I'm just a simple man trading a simple plan.

My daddy always said, "Every day above ground is a good day!"
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