PDA

View Full Version : Performance tab in Control Center


NinjaTrader_Josh
06-22-2007, 09:18 AM
I think there is a bug regarding commissions or maybe I'm doing it wrong.

I am in simulation mode with OpenTick as my data feed. I did a bunch of trades just to see what it looks like. In the "Executions" tab, each transaction shows up with the commission I determined in the commission options, but when I go to the "Performance" tab and click generate I get all my trades but the commission level for all of them is $0. I also noticed that in the "Executions" tab my trades would show up saying "OpenTick" as my connection, but in the "Performance" tab the connection column is empty. I think that could be part of the reason why it is showing $0 as my commissions there.

NinjaTrader_Vincent
06-22-2007, 09:21 AM
Hi,

Thank you for your post.

Can you check if you have set up the commissions like below:

First you need to open up the Instrument Manager and highlight the contract in the middle section and click Edit. This will bring up the Instrument Editor. Then click on the Misc tab and click click on the '+' button for your datafeed provider. Then enter the minimum commission and click OK.

Then go to Tools--> Options--> Commission tab and do the same thing for Futures - Datafeed Provider and click OK.

Then under Tools--> Options--> General tab, make sure that 'Apply Commission to P/L Calculations' is checked.
More info can also be found here:

http://www.ninjatrader-support.com/HelpGuideV6/CommissionTab.html (http://www.ninjatrader-support.com/HelpGuideV6/CommissionTab.html)[/URL]

And here:

http://www.ninjatrader-support.com/HelpGuideV6/AddingCommissionRates.html (http://www.ninjatrader-support.com/HelpGuide/AddingCommissionRates.html)



Vince[URL="http://www.ninjatrader-support.com/HelpGuide/CommissionTab.html"]

NinjaTrader_Josh
06-22-2007, 09:36 AM
Great. That seems to have done the trick, but I am noticing another weird thing. This time in the "Accounts" tab. I did a quick test trade for a loss of $16. My starting balance was $100000, but after the trade, in the cash value column, it is saying $99982. That corresponds to an $18 loss not $16. :confused:

NinjaTrader_Dierk
06-22-2007, 11:19 AM
So your trade without commissions resulted in a $16 loss? I suspect the additional $2 loss is just the commission. Please keep in mind commissions are setup per half-turn and not per trade.

NinjaTrader_Josh
06-22-2007, 11:24 AM
Trade with commission resulted in a $16 loss. It is a $7 commission per half-turn and the stock moved $0.02 on 100 shares so the $16 is correct. The cash value is what seems to be erroneous not the commission calculation.

NinjaTrader_Dierk
06-22-2007, 11:28 AM
Could you provide steps to reproduce? You might want to retry after clearing out you sim account by: Tools->Options->Simulator->Reset

Thanks in advance

NinjaTrader_Josh
06-22-2007, 11:42 AM
1) Connect to OpenTick in simulation mode
2) Reset Sim101 account (Buying power: $200k, Cash Value: $100k)
2) 15 min chart of AAPL
3) Turn on Chart Trader
4) Sell Market, Shares: 100, Price: $122.88, Entry, Commission: $7, Account :Sim101, Connection: OpenTick
5) Buy Market, Shares: 100, Price: $122.89, Exit, Commission: $7, Account :Sim101, Connection: OpenTick
6) Accounts tab
7) Buying Power: $199968, Cash Value: $99984, Realized PnL: -15

NinjaTrader_Dierk
06-22-2007, 12:05 PM
This is a bug which will be fixed with next update: basically the account values for the sim account are off. Thanks for pointing this out.

NinjaTrader_Josh
06-23-2007, 05:26 PM
Ok. I find it rather tedious to have to manually go through all of my instruments and add the proper commission to them all. What is the purpose of the global commissions if they are all overwritten by the default $0 commission setting that is set on every instrument?

NinjaTrader_Dierk
06-23-2007, 11:00 PM
Not sure I follow. Global commission (Tools->Options->Commission) set the commission per provider/instrument type.

You can overwrite these commission with "per instrument" commissions in the instrument editor.

You can either set (a) none, (b) one of them or (c) both.

NinjaTrader_Josh
06-24-2007, 04:34 AM
If I only set the global commissions and left the individual instrument commissions on default I end up with the results from my first post. In addition to the global commissions I need to set the individual instrument commissions in order for the commissions to calculate in the "Performance" tab.

I believe that one could just set the individual instrument commissions without setting the global commissions to have it shown in the "Performance" tab, but I have not tested this. Either case, it just seems to me that global commissions are rather useless because I still have to go through every stock and modify their individual commission settings at the moment.

NinjaTrader_Dierk
06-24-2007, 06:31 AM
>> If I only set the global commissions and left the individual instrument commissions on default I end up with the results from my first post. In addition to the global commissions I need to set the individual instrument commissions in order for the commissions to calculate in the "Performance" tab.

Not correct. I justed tested with a few trades on the sim account. Please provide a reproducible scenario which demonstrates the problem you see.

Also: please try based on this custom build which fixes bug below. Please:
- uninstall NT6 via control panel
- clear your browser cache
- install custom build from here: www.ninjatrader-support.com/ninjatrader/nt6.custom/NinjaTrader.Install.msi

NinjaTrader_Josh
06-24-2007, 01:54 PM
Huh. The commissions work now. I must have done something wrong, but the custom build works great in regards to the bug. Thanks.

I noticed something weird in this custom build though. I'm not sure if this happened in the official release, but while in replay mode I was able to essentially execute an infinite size order to the market completely ignoring the buying power of the account. When I try to close the enormous position sometimes it doesn't let me either. From the screenshots you can see I was able to acquire nearly 2 million shares with only 200k buying power. As a side question how can I set my buying power to equal my cash value?

Another thing I noticed was if I rewind while replaying all my replay transactions disappear. Is this how it is suppose to behave? I was hoping to be able to have a day after day running account of my performance on replays and see how I would have done in the market if I actually traded over the month of recordings I have. Basically I want to use Replay101 like how the Sim101 works. From my understanding, Sim101 works like a parallel trading account, but can only be used during market hours. I wanted the same effect, but on replays. Hope I am making myself clear.

Sorry for meandering off topic. Thanks for all the help.

NinjaTrader_Dierk
06-24-2007, 11:43 PM
a) I'm not able to reproduce the problem with the 2M shares. Order gets rejected here with a standard sim account setup (after reset), which is expected.
b) Orders get cleared out as you rewind replay. This is expected behavior.

NinjaTrader_Josh
06-25-2007, 01:05 AM
I've figured out the setting that is allowing the 2mil shares. In Options->Simulator if I set Maintenance Margin to 0.00 I am allowed to buy an infinite amount of shares regardless of buying power. I'm not familiar with how the "Margin" and "Maintenance Margin" numbers are suppose to work. The documentation in the help file wasn't too helpful. Would you please enlighten me to what those numbers actually manipulate? Thanks.

NinjaTrader_Dierk
06-25-2007, 01:13 AM
Just leave defaults:
- Margin = 0.5
- Maintenance margin = 0.3

There is little value to change these settings since the simulator could not properly reflect your live account anyways.

NinjaTrader_Josh
07-27-2007, 06:37 PM
May I suggest statistics on Orders along with Trades. I want to know how many of my orders are profitable not how many partial fill trades where profitable. Right now I am seeing statistics that say I am 33% profitable by trades, but when I look at the orders I am 50% profitable. With only the current Trades statistics, it is hard to judge if my order signals make money or not from a quick glance.

Also if I right click in the Summary tab and click "Grid Properties" then "Reset", the Summary tab will no longer readjust its size if I resize the Control Center like the other tabs do. Actually it would seem like this is the behavior for all tabs in the Performance tab. After "Reset" they lose their auto resize abilities.

NinjaTrader_Dierk
07-27-2007, 11:01 PM
>> May I suggest statistics on Orders along with Trades
Thanks for your suggestion. We'll add it to the list.

>> After "Reset" they lose their auto resize abilities
Thanks for your report. We'll look into it.

NinjaTrader_Dierk
07-29-2007, 06:38 AM
>> After "Reset" they lose their auto resize abilities
This is a bug which will be fixed with next update. Thanks for bringing this up.

NinjaTrader_Josh
08-03-2007, 01:52 AM
In the Summary subtab of the Performance tab in Control Center, shouldn't "Total Net Profit" be equal to "Gross Profit-Gross Loss-Commission"? At the moment it would seem to be just "Gross Profit-Gross Loss".

NinjaTrader_Dierk
08-03-2007, 02:08 AM
>> it would seem to be just "Gross Profit-Gross Loss"
That is correct and expected behavior.

NinjaTrader_Josh
08-03-2007, 02:17 AM
Hmm I was under the impression that net profit meant total expenses taken away from total revenue. Commissions are an expense affecting the bottom line so I usually deduct it from revenue. Regardless, just something minor thing I noticed. Thanks Dierk for clarifying.

NinjaTrader_Dierk
08-03-2007, 02:19 AM
Right. AFAIK the current implementation is the common sense amongst trading platforms. Please let me know when I'm wrong.