NexusFi: Find Your Edge


Home Menu

 





NT7 compatibility


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one ZTR with 17 posts (13 thanks)
    2. looks_two Big Mike with 14 posts (5 thanks)
    3. looks_3 Fat Tails with 13 posts (21 thanks)
    4. looks_4 ivanjocic with 9 posts (9 thanks)
      Best Posters
    1. looks_one Mindset with 2.5 thanks per post
    2. looks_two Fat Tails with 1.6 thanks per post
    3. looks_3 ivanjocic with 1 thanks per post
    4. looks_4 ZTR with 0.8 thanks per post
    1. trending_up 63,815 views
    2. thumb_up 96 thanks given
    3. group 35 followers
    1. forum 135 posts
    2. attach_file 49 attachments




 
 

NT7 compatibility

 
 
aslan's Avatar
 aslan 
Madison, WI
 
Experience: Advanced
Platform: ALT
Trading: ES
Posts: 625 since Jan 2010
Thanks Given: 356
Thanks Received: 1,127

There are a few easy fixes that can be made:

1. In all parameters, change "Category" to "GridCategory"

2. Some function signatures changed, so you typically need to add a parameter with a good default. You mentioned the autoscale one for Draw methods.

3. Rename Dispose() to OnTermination() - not required but a good idea

4. Change declarations of DataSeries to use new parameter:

ds = new DataSeries(this) ==> ds = new DataSeries(this, MaximumBarsLookBack.TwoHundredFiftySix)

If you need more lookback than 256 bars, then use "MaximumBarsLookBack.Infinite"

Update: The default for a DataSeries is to use 256 bars, so change #4 is not needed. You only need the change if you require more than 256 bars.

Thanked by:

Can you help answer these questions
from other members on NexusFi?
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
My NT8 Volume Profile Split by Asian/Euro/Open
NinjaTrader
Futures True Range Report
The Elite Circle
The space time continuum and the dynamics of a financial …
Emini and Emicro Index
Are there any eval firms that allow you to sink to your …
Traders Hideout
 
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
The Program
18 thanks
GFIs1 1 DAX trade per day journal
17 thanks
 
 
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 have found so far that changing Cateogry to GridCategory, and adding the lookback to the initialization of the data series, do not seem to be necessary for my indicators to work in NT7.

It IS essential to stick the missing autoscale and y pixel offset parameters into the Draw methods.

Follow me on Twitter Visit my NexusFi Trade Journal
Thanked by:
 
 
aslan's Avatar
 aslan 
Madison, WI
 
Experience: Advanced
Platform: ALT
Trading: ES
Posts: 625 since Jan 2010
Thanks Given: 356
Thanks Received: 1,127


Yes, I don't really understand the GridCategory one, but the Ninja guys said to just do it when I have pinged them, but would not explain why. I suspect you will eventually have to make this change for something to work.

The DataSeries one is also not required, but you should make the change to help conserve memory and run faster.

Thanked by:
 
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,396 since Jun 2009
Thanks Given: 33,172
Thanks Received: 101,536


aslan View Post
The DataSeries one is also not required, but you should make the change to help conserve memory and run faster.

So the default is Infinite if not specified?

Mike

We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on Twitter Visit my NexusFi Trade Journal
 
 
aslan's Avatar
 aslan 
Madison, WI
 
Experience: Advanced
Platform: ALT
Trading: ES
Posts: 625 since Jan 2010
Thanks Given: 356
Thanks Received: 1,127


Big Mike View Post
So the default is Infinite if not specified?

Mike

No, my bad. Looking at the doc, the default is 256 bars, so you do not need to make that change. I will go back and edit.

Thanked by:
 
 
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


aslan View Post
Yes, I don't really understand the GridCategory one, but the Ninja guys said to just do it when I have pinged them, but would not explain why. I suspect you will eventually have to make this change for something to work.

The DataSeries one is also not required, but you should make the change to help conserve memory and run faster.

I changed to GridCategory, the other things you mentioned were not there. Still get this weird unknown in the parameter passing field. I'm not really up to figuring it out right now. I asked Bertrad @ NT to look at it. If he is not busy he can be very helpful.

Visit my NexusFi Trade Journal
 
 
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

I looked at Double MA and found it to be a large collection of MAs. I tried but it is way to complicated and time consuming to do myself.

However if there are some of you who want guidance on putting this together I would be glad to consult.

What needs to be done:
  • Check to see if all the component MA work by themselves.
  • If not make the coding changes
  • Make the changes to DoubleMA_internal to get in shape for NT7
I am posting DoubleMA_NT that I have changed to what I believe is a NT7 ready indicator, but It is only the front-end not the working guts of the indicator.

What I have attached here will not run, with out the above changes.

Attached Files
Elite Membership required to download: DoubleMA_NT.zip
Visit my NexusFi Trade Journal
 
 
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

We'er off to see Wizard... What has he done wth Double MA?

Thank you for posting your version of it, Wizard.

Nope - the Wizards version doen not work with 7 either.

Visit my NexusFi Trade Journal
 
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,396 since Jun 2009
Thanks Given: 33,172
Thanks Received: 101,536

Before you spend a lot of time on that DoubleMA code, I would advise against it. The code is incredibly convoluted and there are far, far simpler ways of accomplishing it. I'm not the original author, but I've learned a lot in the last year with NinjaScript and I would rather see a new version created than the old one patched up to work in NT7.

If there is interest in this, I suggest creating a new thread specifically for that purpose, and if no one else steps up I'll make an effort to write a new version.

Mike

We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on Twitter Visit my NexusFi Trade Journal
 
 
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


Look two posts up. I came to the same conclusion. I passed the buck on this one.

Visit my NexusFi Trade Journal

 



Last Updated on February 21, 2020


© 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