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 Quick Summary with 1 posts (0 thanks)
    4. looks_4 gamecock77 with 1 posts (1 thanks)
    1. trending_up 1,729 views
    2. thumb_up 5 thanks given
    3. group 4 followers
    1. forum 6 posts
    2. attach_file 0 attachments




 
Search this Thread

Strategy Inheritance NT8 Best Practice

  #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?
REcommedations for programming help
Sierra Chart
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
How to apply profiles
Traders Hideout
Cheap historycal L1 data for stocks
Stocks and ETFs
ZombieSqueeze
Platforms and Indicators
 
  #3 (permalink)
 selnomeria 
Tbilisi + Georgia
 
Experience: None
Platform: ThinkScript,Tradestation
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/

Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #4 (permalink)
 TigerStripes   is a Vendor
 
Posts: 109 since Mar 2021
Thanks Given: 33
Thanks Received: 56


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
Market Wizard
 
Experience: Intermediate
Platform: NinjaTrader
Broker: AMP/CQG
Trading: ES, NQ, YM
Frequency: Daily
Duration: Minutes
Posts: 4,527 since Oct 2009
Thanks Given: 4,176
Thanks Received: 6,020


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: 56

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

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


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


© 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