NexusFi: Find Your Edge


Home Menu

 





Strategy Inheritance NT8 Best Practice


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one trendisyourfriend with 2 posts (2 thanks)
    2. looks_two TigerStripes with 2 posts (0 thanks)
    3. looks_3 titanus2 with 1 posts (2 thanks)
    4. looks_4 Quick Summary with 1 posts (0 thanks)
    1. trending_up 2,639 views
    2. thumb_up 5 thanks given
    3. group 4 followers
    1. forum 6 posts
    2. attach_file 0 attachments




 
Search this Thread
  #1 (permalink)
gamecock77
CHARLESTON
 
Posts: 2 since Mar 2019
Thanks Given: 1
Thanks Received: 1

Is there an advanced guide to coding NT strategies? I'm looking for insights about inheriting from Strategy or using partial class techniques. I know the NT Devs do not support their usage but these techniques are valid C# coding techniques. How do the pros deploy their strategies? I want a taste of the glory.


Reply With Quote
Thanked by:

Can you help answer these questions
from other members on NexusFi?
Trump Media to sell instant access to market-moving soci …
Traders Hideout
Thanks Mike. Godspeed.
The Elite Circle
Iran Lebanon Problem Kills Switzerland Talks, Brent at $ …
Prediction Markets & Event Contracts
Datafeed for Atas
Platforms and Indicators
Daytrading to swingtrading
Traders Hideout
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Want your NinjaTrader indicator created, free?
5 thanks
Afternoon-close session
1 thanks
Franks Trading Journey
1 thanks
Denied 20K payouts: Alpha Futures
1 thanks
FootPrintV2 Chart for NT8
1 thanks
  #3 (permalink)
 titanus2 
Tbilisi + Georgia
 
Experience: None
Trading: EUR/USD
Posts: 36 since Aug 2014
Thanks Given: 9
Thanks Received: 20


I use inheritance, i mean, I have my own class, onto which I base most other strategies.
However, one drawback is that the base strategy (even skeleton) class is shown in Strategies list (when you open the "Add Strategy" window on chart).
To hide that, I used Abstract class.

and there i had a bunch of helper functions. one of them is https://puvox.software/blog/chart-debugger-window-printbox-for-ninjatrader/


Reply With Quote
Thanked by:
  #4 (permalink)
 TigerStripes   is a Vendor
 
Posts: 109 since Mar 2021
Thanks Given: 33
Thanks Received: 57


selnomeria View Post
I use inheritance, i mean, I have my own class, onto which I base most other strategies.
However, one drawback is that the base strategy (even skeleton) class is shown in Strategies list (when you open the "Add Strategy" window on chart).
To hide that, I used Abstract class.

and there i had a bunch of helper functions. one of them is https://puvox.software/blog/chart-debugger-window-printbox-for-ninjatrader/

Not sure if anyone is still talking about this but can you give an example, I am learning inheritances and trying to tread waters is touch since totally undocumented/unsupported & rather uninterested in break the system I currently work on.


Reply With Quote
  #5 (permalink)
 
trendisyourfriend's Avatar
 trendisyourfriend 
Quebec Canada
 
Experience: Intermediate
Platform: NinjaTrader
Broker: AMP/CQG
Trading: ES, NQ, YM
Frequency: Daily
Duration: Minutes
Posts: 4,581 since Oct 2009
Thanks Given: 4,267
Thanks Received: 6,212


TigerStripes View Post
Not sure if anyone is still talking about this but can you give an example, I am learning inheritances and trying to tread waters is touch since totally undocumented/unsupported & rather uninterested in break the system I currently work on.

You might want to look at this discussion i had with another member a while ago. It starts here:
clickme


Reply With Quote
Thanked by:
  #6 (permalink)
 TigerStripes   is a Vendor
 
Posts: 109 since Mar 2021
Thanks Given: 33
Thanks Received: 57

Your link was invalid. Both first & updated links not working.


Reply With Quote
  #7 (permalink)
 
trendisyourfriend's Avatar
 trendisyourfriend 
Quebec Canada
 
Experience: Intermediate
Platform: NinjaTrader
Broker: AMP/CQG
Trading: ES, NQ, YM
Frequency: Daily
Duration: Minutes
Posts: 4,581 since Oct 2009
Thanks Given: 4,267
Thanks Received: 6,212


TigerStripes View Post
Your link was invalid. Both first & updated links not working.

Just try again. I modified the post.


Reply With Quote
Thanked by:




Last Updated on December 28, 2022


© 2026 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 - Downloads - Top
no new posts