NexusFi: Find Your Edge


Home Menu

 





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


Discussion in NinjaTrader

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




 
Search this Thread

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

  #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?
ZombieSqueeze
Platforms and Indicators
Build trailing stop for micro index(s)
Psychology and Money Management
Online prop firm The Funded Trader (TFT) going under?
Traders Hideout
Futures True Range Report
The Elite Circle
Deepmoney LLM
Elite Quantitative GenAI/LLM
 
  #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


© 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