NinjaTrader Support Forum  
X

Attention!

This website will be down for maintenance from Friday May 24th at 6PM MDT until Saturday May 25th at 11AM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com


Go Back   NinjaTrader Support Forum > Application Technical Support > Miscellaneous Support > Historical Version 7 Beta Threads > Version 7 Beta General Questions & Bug Reports

Version 7 Beta General Questions & Bug Reports Ask questions here and post bug reports.

 
 
Thread Tools Display Modes
Old 02-02-2010, 09:47 AM   #1
masafi
Junior Member
 
Join Date: Dec 2009
Posts: 7
Thanks: 0
Thanked 0 times in 0 posts
Default Flatten everything orders not counting towards "real time" Strategy performance

Hi,

having open positions with real time Strategies in sim account running - I noticed that when I click Flatten everything that these closing orders do not count towards Strategy Performance "real time" !
Is it supposed to be that way?! It looks like a bug, since the real time performance does not reflect the truth anymore after manually flatten everything command. After restarting a strategy this leads to inconsistency since a certain position is assumed which is not true. (even when you have enabled "wait until flat before executing live" - sinced we are supposed to be flat after flatten everything)

the closing trades from "Flatten everything" DO show up under the tab Account Performance and they count towards account performance there (and only there).
masafi is offline  
Old 02-02-2010, 10:58 AM   #2
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
Default

masafi,

Strategy performance only takes into account actions taken by the strategy itself. It does not account for anything done manually, like Flatten Everything.
NinjaTrader_Josh is offline  
Old 02-02-2010, 11:32 AM   #3
LG
Senior Member
 
Join Date: Jul 2006
Location: Los Angeles, California, USA
Posts: 136
Thanks: 0
Thanked 0 times in 0 posts
Default

This seems to be the case according to what I see on my screen today.
Please correct me if I am wrong:

1. The P&L total in the SuperDom shows the net result of ALL trades that took place today.

2. The Account Performance window in Control Center shows all trades that took place today ONLY IF I un-check "Group trades by ATM Strategy."

3. If I leave the box checked, then AcctPerf window in CC shows NinjaScript Strategy trades, plus trades taken manually through SuperDom using an ATM strategy, but DOES NOT SHOW a manual exit from a position that was entered via a NinjaScript Strategy.

Edit: I guess it would help if prior post defined what he means by "Strategy Performance" and what is "Real-time Performance."

Edit again: Might be a good idea to clarify this whenever the Help Guide is written.
Last edited by LG; 02-02-2010 at 11:35 AM.
LG is offline  
Old 02-02-2010, 12:38 PM   #4
masafi
Junior Member
 
Join Date: Dec 2009
Posts: 7
Thanks: 0
Thanked 0 times in 0 posts
Default

@Josh

I understand the intention, but in reality this leads to a mess with the strategies if you start the same strategy on the same intrument later on.

Normally Historical trades differ slightly from real-time simulated trades - which are saved and taken into account correctly - "Flatten everything" should be taken into account as well as a "real-time" trade to avoid inconsistencies when restarting strategies!! Flatten everything is a "real-time" Exit trade with consequences to strategy and position - since the strategies do stop afterwards! (it is compareable to e.g. exit on close - close is not part of the strategy, but still it is taken into account for strategy position and strategy performance) It can happen that there is a sudden need to close positions manually - and restart afterwards.

There should be at least an option under strategies / Ninjascript to chose wether to consider the "Flatten everything" command into strategy position.
Maybe you can put in on the features list for future consideration?
Last edited by masafi; 02-02-2010 at 12:57 PM.
masafi is offline  
Old 02-02-2010, 01:26 PM   #5
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
Default

masafi,

ExitOnClose is part of the strategy. It is not a manual trade taken. FlattenEverything is a manual action taken. I can see why you may want this though.

Thank you for the suggestion. I have added it to our feedback list.
NinjaTrader_Josh is offline  
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can I define the "Time to flatten" for the "Exit on Close" in the NinjaScript? dleekk General Programming 5 11-09-2009 12:46 AM
Real time Volume bars "truncated" Acqua Charting 6 03-26-2009 01:09 PM
summary of "strategy realized" is not equal "account performance, total net profit"" Fragolino Miscellaneous Support 1 02-19-2009 04:12 AM
Strange issue with "Real time performance" screen Mike_D Automated Trading 1 01-21-2009 07:14 AM
Please add "Calmar" and "Sterling" ratios to Performance._Trades.TradesPerformance Elliott Wave Suggestions And Feedback 2 06-10-2008 09:57 PM


All times are GMT -6. The time now is 12:02 AM.