NexusFi: Find Your Edge


Home Menu

 





For NT, need a hook into the end of the strategy...


Discussion in NinjaTrader

Updated
    1. trending_up 3,366 views
    2. thumb_up 4 thanks given
    3. group 2 followers
    1. forum 4 posts
    2. attach_file 0 attachments




 
Search this Thread
  #1 (permalink)
 
drwylde's Avatar
 drwylde 
Phoenix, AZ USA
 
Experience: Intermediate
Platform: Ninjatrader
Broker: Mirus Futures/Zen-fire
Trading: CL
Posts: 3 since Oct 2010
Thanks Given: 3
Thanks Received: 0

Simple NT question - within the context of my strategy, I need a hook into the end of the strategy. In particular, I need to dump some statistics when the Strategy Analyzer has finished. Thx/bill


Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Tradeify 3.0 Overhauls Futures Prop Firm Model -- One-Ti …
Funded Trading Evaluation Firms
Thursday May 28: GDP + Core PCE + Jobless Claims All at …
Traders Hideout
Khamenei Vetoes Uranium Transfer as Peace Odds Surge to …
Prediction Markets & Event Contracts
Saylors 41-Month HODL Breaks: Strategy Sells 32 BTC as $ …
Prediction Markets & Event Contracts
Iran Peace Expired NO: Ceasefire on Life Support, OPEC a …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Sober Journey With S&P
23 thanks
2026 Jlab journal
10 thanks
Algo automated / semi-automated trading anyone?
6 thanks
Lady Vols Primer: Trading Volatility Journal
6 thanks
2026 Fire Horse
5 thanks
  #3 (permalink)
 Xeno 
UK
 
Experience: Intermediate
Platform: Ninja
Broker: Mirus/Zen
Trading: Futures - bonds, currencies, index
Posts: 288 since Oct 2010
Thanks Given: 70
Thanks Received: 274


You just need to add this -

 
Code
                            
protected override void OnTermination()
        {
           
// do your stuff here
            
base.OnTermination();
            
        } 


Reply With Quote
Thanked by:
  #4 (permalink)
 
drwylde's Avatar
 drwylde 
Phoenix, AZ USA
 
Experience: Intermediate
Platform: Ninjatrader
Broker: Mirus Futures/Zen-fire
Trading: CL
Posts: 3 since Oct 2010
Thanks Given: 3
Thanks Received: 0


Xeno View Post
You just need to add this -

 
Code
                            
protected override void OnTermination()
        {
           
// do your stuff here
            
base.OnTermination();
            
        } 

Note: OnTermination() in new to NT 7, not in NT 6.5 /bill


Started this thread Reply With Quote
  #5 (permalink)
 Xeno 
UK
 
Experience: Intermediate
Platform: Ninja
Broker: Mirus/Zen
Trading: Futures - bonds, currencies, index
Posts: 288 since Oct 2010
Thanks Given: 70
Thanks Received: 274

Yes, but in NT6.5 you can do

 
Code
public override void Dispose() 
{ 
    // do your stuff here
    base.Dispose(); 
}


Reply With Quote
Thanked by:




Last Updated on November 23, 2010


© 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