View Full Version : PnL wrong display
03-05-2007, 02:59 AM
Hi, I'm making an automated strategy with 2 contracts(emini), when it execute the stop or profit it doesn't display the right amount of money in the Dom. any ideas?, I'm not a programmer my software experience is limited. Thanks
03-05-2007, 04:13 AM
Have you set up your commissions correctly?
First you need to open up the Instrument Manager and highlight the contract in the middle section you are trading and click Edit. This will bring up the Instrument Editor. Then click on the Misc tab and click click on the '+' button foryour 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 Providerand 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:
03-05-2007, 08:19 AM
Thanks for your quick responce, my problem doesn't have any relation with the commissions, it appears to have an issue with the qty of contract and the PnL, if I increase the number of contract the error appears to be bigger.
My live account works fine. I got the problem w the sim 101 account and the simulator, the strategy is not ready and no live testing was made.
03-05-2007, 08:23 AM
What version are you using? Can you check under Help--> About.
Also repair your database. Go to Tools--> Options--> Misc tab--> Repair DB--> restart NinjaTrader.
03-05-2007, 08:27 AM
I'm using 18.104.22.168; I'll try your recomendation. I reply later. Thanks
03-05-2007, 09:16 AM
I repair the database but the issue continues, I got more info:
For sp-mini which is $12.50 per tick per contract, if I use 2 contract for 1 tick it supposes to be 2 contract * 12.50 * 1 Tick = $25.00 less (say 2.40 commission ea) total profit must be $20.20, The Dom shows $40.40 and if I change the contract number to 10 contract *12.5 * 1 tick = $125.00 less commissions, the Dom shows $1202.00. Apparently he calculate the commission fine but multiply the profit by the number of contracts, with 2 contract multiply profit by 2 and with 10 contracts multiply profit by 10.
I’m using the following order to get filled:
EnterShortLimit(10, Bars.CurrentAsk, "My");
SetProfitTarget("My", CalculationMode.Ticks, 1);
SetStopLoss("My", CalculationMode.Ticks, 3, false);
03-05-2007, 10:24 AM
We have confirmed an issue with beta 8 regarding account realized PnL. This will be resolved with next update.
Thanks for reporting this.