NexusFi: Find Your Edge


Home Menu

 





Can someone try to make this indicator work in NT7?


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one NJAMC with 3 posts (7 thanks)
    2. looks_two FBJS with 3 posts (2 thanks)
    3. looks_3 hermit with 2 posts (0 thanks)
    4. looks_4 sam028 with 1 posts (1 thanks)
    1. trending_up 7,386 views
    2. thumb_up 10 thanks given
    3. group 5 followers
    1. forum 10 posts
    2. attach_file 3 attachments




 
Search this Thread

Can someone try to make this indicator work in NT7?

  #1 (permalink)
 FBJS 
Toronto
 
Experience: Advanced
Platform: NinjaTrader
Posts: 109 since Sep 2009
Thanks Given: 30
Thanks Received: 193

I use an indicator called Ed's Level 2, which is found on this page on the NinjaTrader indicators forum:

Links and Downloads Manager - [AUTOLINK]NinjaTrader[/AUTOLINK] Support Forum

Here is a link to the blog of the indicator's creator, Ed:

Blog of If U Seek Amy Ed: Ed's Level II Indicator

Unfortunately, Ed seems to be too busy right now to incorporate a fix for this indicator for NT7, and since I use it a lot I was wondering if someone here could do the translation.

I already managed to make it compile by changing all references to (int) from (long) for the Volume variable, but unfortunately it doesn't actually run properly. Under NT7 it just doesn't seem to show any bars as it is supposed to. I believe that the problem is in the OnMarketDepth() event handler, but I'm having trouble figuring out why it's throwing errors there.

I have attached a .cs file with the code... the only changes I made were in casting the Volume parameter(s) to (int) to make it compile, other than that it is the original code.

If someone with a bit more NT coding experience could figure this out, it would be much appreciated!

Attached Files
Elite Membership required to download: EdsLevel2.cs
Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
NexusFi Journal Challenge - April 2024
Feedback and Announcements
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Are there any eval firms that allow you to sink to your …
Traders Hideout
New Micros: Ultra 10-Year & Ultra T-Bond -- Live Now
Treasury Notes and Bonds
Deepmoney LLM
Elite Quantitative GenAI/LLM
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Get funded firms 2023/2024 - Any recommendations or word …
61 thanks
Funded Trader platforms
39 thanks
NexusFi site changelog and issues/problem reporting
26 thanks
Battlestations: Show us your trading desks!
24 thanks
The Program
18 thanks
  #2 (permalink)
 FBJS 
Toronto
 
Experience: Advanced
Platform: NinjaTrader
Posts: 109 since Sep 2009
Thanks Given: 30
Thanks Received: 193

UPDATE:

I fixed part of the problem by adding the following code in the Initialize() section:

for (int rowCount = 0; rowCount < 50; rowCount++)
{
askRows.Add(new DOMRow(0,0));
bidRows.Add(new DOMRow(0,0));
}


This pre-populated all the rows for the bid/ask for level 2, and avoided throwing errors from having empty List<> values in the OnMarketDepth event handler.

Even with this fix however, it still requires an actual OnMarketDepth() event to occur before real data shows up for the bid/ask row. In other words, the indicator starts out blank, and then as OnMarketDepth() events occur, it populates the level 2. It didn't work this way in 6.5... does anyone know of any code changes that might be causing this, and/or how to force a complete refresh of level 2 data right on Initialize()?

Started this thread Reply With Quote
Thanked by:
  #3 (permalink)
hermit
AlgoLand
 
Posts: 6 since Jan 2010
Thanks Given: 68
Thanks Received: 8


hey FBJS

Did you get this working yet

Reply With Quote
  #4 (permalink)
 
sam028's Avatar
 sam028 
Site Moderator
 
Posts: 3,765 since Jun 2009
Thanks Given: 3,825
Thanks Received: 4,629

What's the problem ?
It seems to work for me, or maybe it should not look like this ?


Success requires no deodorant! (Sun Tzu)
Follow me on Twitter Reply With Quote
Thanked by:
  #5 (permalink)
hermit
AlgoLand
 
Posts: 6 since Jan 2010
Thanks Given: 68
Thanks Received: 8

For me atleast, it disappears after painting for a few seconds

Reply With Quote
  #6 (permalink)
 FBJS 
Toronto
 
Experience: Advanced
Platform: NinjaTrader
Posts: 109 since Sep 2009
Thanks Given: 30
Thanks Received: 193


hermit View Post
hey FBJS

Did you get this working yet

Apart from the fix mentioned earlier in this thread, no. It does work for me in that it will quickly populate the bars as new level 2 events come in, but I can't get it to auto-populate everything on chart startup all at once. So basically, you have to wait a short while for the data to start appearing. Depending on the contract and the time of day, it can take anywhere from a few seconds to a minute or two to fully populate all the bars, according to how fast the level 2 info is changing. I informed the creator of the indicator of my fix, and I suspect that he will work on it further at some point, but it does not appear to be a priority for him.

Started this thread Reply With Quote
Thanked by:
  #7 (permalink)
 
Tudi's Avatar
 Tudi 
Germany Hamburg
 
Experience: Intermediate
Platform: NT8, X Trader
Trading: ES,YM,NQ,FESX,...;
Posts: 83 since Nov 2011
Thanks Given: 68
Thanks Received: 45

How can i install it on NT?



FBJS View Post
I use an indicator called Ed's Level 2, which is found on this page on the NinjaTrader indicators forum:

Links and Downloads Manager - [AUTOLINK]NinjaTrader[/AUTOLINK] Support Forum

Here is a link to the blog of the indicator's creator, Ed:

Blog of If U Seek Amy Ed: Ed's Level II Indicator

Unfortunately, Ed seems to be too busy right now to incorporate a fix for this indicator for NT7, and since I use it a lot I was wondering if someone here could do the translation.

I already managed to make it compile by changing all references to (int) from (long) for the Volume variable, but unfortunately it doesn't actually run properly. Under NT7 it just doesn't seem to show any bars as it is supposed to. I believe that the problem is in the OnMarketDepth() event handler, but I'm having trouble figuring out why it's throwing errors there.

I have attached a .cs file with the code... the only changes I made were in casting the Volume parameter(s) to (int) to make it compile, other than that it is the original code.

If someone with a bit more NT coding experience could figure this out, it would be much appreciated!


Follow me on Twitter Reply With Quote
  #8 (permalink)
 
NJAMC's Avatar
 NJAMC 
Atkinson, NH USA
Market Wizard
 
Experience: Intermediate
Platform: NinjaTrader 8/TensorFlow
Broker: NinjaTrader Brokerage
Trading: Futures, CL, ES, ZB
Posts: 1,970 since Dec 2010
Thanks Given: 3,037
Thanks Received: 2,394

I have updated the CS file with the fix for NT7 as described above and created a ZIP file for people to import easier.

Nil per os
-NJAMC [Generic Programmer]

LOM WIKI: NT-Local-Order-Manager-LOM-Guide
Artificial Bee Colony Optimization
Attached Files
Elite Membership required to download: EdsLevel2.zip
Visit my NexusFi Trade Journal Reply With Quote
  #9 (permalink)
 
NJAMC's Avatar
 NJAMC 
Atkinson, NH USA
Market Wizard
 
Experience: Intermediate
Platform: NinjaTrader 8/TensorFlow
Broker: NinjaTrader Brokerage
Trading: Futures, CL, ES, ZB
Posts: 1,970 since Dec 2010
Thanks Given: 3,037
Thanks Received: 2,394

Keep in mind this script used Level 2 data. If you are using replay data be sure you have downloaded the Level 2 data or this will do nothing. Also, make sure your data source has Level 2 data when you are running this live.

Nil per os
-NJAMC [Generic Programmer]

LOM WIKI: NT-Local-Order-Manager-LOM-Guide
Artificial Bee Colony Optimization
Visit my NexusFi Trade Journal Reply With Quote
  #10 (permalink)
 
bizman70's Avatar
 bizman70 
toronto, ontario
 
Experience: Intermediate
Platform: ninja trader
Broker: sterling, iqfeed
Trading: es, nq, 6e
Posts: 363 since May 2010
Thanks Given: 41
Thanks Received: 140


hi - looks good for market reading but the bids and asks move quick - how do u actually make use of it , are u using it like market profile with the levels it needs or wants to reach to

Visit my NexusFi Trade Journal Reply With Quote




Last Updated on January 28, 2012


© 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