NexusFi: Find Your Edge


Home Menu

 





Can I delete a trade from account performance?


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one DoctorDirty with 4 posts (0 thanks)
    2. looks_two rleplae with 3 posts (3 thanks)
    3. looks_3 sam028 with 1 posts (2 thanks)
    4. looks_4 Kowabunga with 1 posts (0 thanks)
    1. trending_up 4,641 views
    2. thumb_up 8 thanks given
    3. group 4 followers
    1. forum 9 posts
    2. attach_file 0 attachments




 
Search this Thread
  #1 (permalink)
 DoctorDirty 
Fukuoka-shi, Fukuoka-ken, Japan
 
Experience: None
Platform: NinjaTrader
Trading: Futures
Posts: 46 since Sep 2013
Thanks Given: 43
Thanks Received: 20

So I'm paper trading with NinjaTrader and it disconnected while in a short trade in GC during Brexit so instead of hitting my stop I was -$6000 in the hole.

Basically I want to know if there's a way to delete this trade from the Account Performance data without wiping all of my data.


Started this thread Reply With Quote

 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Sober Journey With S&P
24 thanks
2026 Jlab journal
10 thanks
Lady Vols Primer: Trading Volatility Journal
7 thanks
Algo automated / semi-automated trading anyone?
6 thanks
Trying to learn Volume and price action correlation
5 thanks
  #2 (permalink)
 
sam028's Avatar
 sam028 
Site Moderator
 
Posts: 3,756 since Jun 2009
Thanks Given: 3,825
Thanks Received: 4,632


DoctorDirty View Post
So I'm paper trading with NinjaTrader and it disconnected while in a short trade in GC during Brexit so instead of hitting my stop I was -$6000 in the hole.

Basically I want to know if there's a way to delete this trade from the Account Performance data without wiping all of my data.

It's easy to reset all trades from Ninja interface, but for single one you'll have to open Ninja SQLce database (Documents\NinjaTrader 7\db\NinjaTrader.sdf), and find the trade in the table nt_execution and in nt_order.
Not very simple...


Success requires no deodorant! (Sun Tzu)
Follow me on X Reply With Quote
Thanked by:
  #3 (permalink)
 
rleplae's Avatar
 rleplae 
Gits (Hooglede) Belgium
Legendary Market Wizard
 
Experience: Master
Platform: NinjaTrader, Proprietary,
Broker: Ninjabrokerage/IQfeed + Synthetic datafeed
Trading: 6A, 6B, 6C, 6E, 6J, 6S, ES, NQ, YM, AEX, CL, NG, ZB, ZN, ZC, ZS, GC
Posts: 2,947 since Sep 2013
Thanks Given: 2,442
Thanks Received: 5,860



DoctorDirty View Post
So I'm paper trading with NinjaTrader and it disconnected while in a short trade in GC during Brexit so instead of hitting my stop I was -$6000 in the hole.

Basically I want to know if there's a way to delete this trade from the Account Performance data without wiping all of my data.

Probably safer to update the table for the execution price so that the result = 0
and not delete it, as you might break the relation in the DB


Follow me on X Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #4 (permalink)
 DoctorDirty 
Fukuoka-shi, Fukuoka-ken, Japan
 
Experience: None
Platform: NinjaTrader
Trading: Futures
Posts: 46 since Sep 2013
Thanks Given: 43
Thanks Received: 20


sam028 View Post
It's easy to reset all trades from Ninja interface, but for single one you'll have to open Ninja SQLce database (Documents\NinjaTrader 7\db\NinjaTrader.sdf), and find the trade in the table nt_execution and in nt_order.
Not very simple...

Thank you for the info. So my next question is what program do I use to open the .sdf file?

I installed a program called CompactView and it returns an error when I try to open it. Also I tried opening it through SQL Server Management Studio and that didn't work either.


Started this thread Reply With Quote
  #5 (permalink)
 
rleplae's Avatar
 rleplae 
Gits (Hooglede) Belgium
Legendary Market Wizard
 
Experience: Master
Platform: NinjaTrader, Proprietary,
Broker: Ninjabrokerage/IQfeed + Synthetic datafeed
Trading: 6A, 6B, 6C, 6E, 6J, 6S, ES, NQ, YM, AEX, CL, NG, ZB, ZN, ZC, ZS, GC
Posts: 2,947 since Sep 2013
Thanks Given: 2,442
Thanks Received: 5,860


DoctorDirty View Post
Thank you for the info. So my next question is what program do I use to open the .sdf file?

I installed a program called CompactView and it returns an error when I try to open it. Also I tried opening it through SQL Server Management Studio and that didn't work either.

CompactViewer is fine, on top of compact viewer, you need to install SQLCE drivers, be careful to download
the correct version 3.5 build 8085, the same as the DLL in your ninjatrader folder


Follow me on X Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #6 (permalink)
 
Silvester17's Avatar
 Silvester17 
Columbus, OH
Market Wizard
 
Experience: None
Platform: NT 8, TOS
Trading: ES
Posts: 3,603 since Aug 2009
Thanks Given: 5,139
Thanks Received: 11,531

or you can go to control center and click on executions. then highlight the trade you want to remove. right click and you'll see the option to delete that trade. it should also adjust the account performance.

interesting feature, but ...


Reply With Quote
Thanked by:
  #7 (permalink)
 
rleplae's Avatar
 rleplae 
Gits (Hooglede) Belgium
Legendary Market Wizard
 
Experience: Master
Platform: NinjaTrader, Proprietary,
Broker: Ninjabrokerage/IQfeed + Synthetic datafeed
Trading: 6A, 6B, 6C, 6E, 6J, 6S, ES, NQ, YM, AEX, CL, NG, ZB, ZN, ZC, ZS, GC
Posts: 2,947 since Sep 2013
Thanks Given: 2,442
Thanks Received: 5,860


Silvester17 View Post
or you can go to control center and click on executions. then highlight the trade you want to remove. right click and you'll see the option to delete that trade. it should also adjust the account performance.

interesting feature, but ...

That's a good one...
I learned something


Follow me on X Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #8 (permalink)
 DoctorDirty 
Fukuoka-shi, Fukuoka-ken, Japan
 
Experience: None
Platform: NinjaTrader
Trading: Futures
Posts: 46 since Sep 2013
Thanks Given: 43
Thanks Received: 20


Silvester17 View Post
or you can go to control center and click on executions. then highlight the trade you want to remove. right click and you'll see the option to delete that trade. it should also adjust the account performance.

interesting feature, but ...

That's good to know! It's strange to me that you can right click > remove under Executions but not under Account Performance.

Is there a way to make 'historical' trades show up under Executions so I can delete them?


Started this thread Reply With Quote
  #9 (permalink)
Kowabunga
NYC, NY, USA
 
Posts: 13 since Jul 2015
Thanks Given: 0
Thanks Received: 4

Ninja Trader allows "resetting" simulation accounts only, not removing them.

WHY would anyone want to remove a trade result from simulation?

I believe...that trader, may be considering false representing results...
So be honest with yourself and others...it helps become a clear minded trader.


Reply With Quote
  #10 (permalink)
 DoctorDirty 
Fukuoka-shi, Fukuoka-ken, Japan
 
Experience: None
Platform: NinjaTrader
Trading: Futures
Posts: 46 since Sep 2013
Thanks Given: 43
Thanks Received: 20



Kowabunga View Post
Ninja Trader allows "resetting" simulation accounts only, not removing them.

WHY would anyone want to remove a trade result from simulation?

I believe...that trader, may be considering false representing results...
So be honest with yourself and others...it helps become a clear minded trader.

Because of the reason I said in the original post. The reason for the disconnect was the trial account expiring, which would not happen in a live trading environment.

----------------------------------------------------

Anyways, for those looking at this in the future:

I was able to 'zero out' the trade with the instructions rleplae and sam028 suggested.

However, for SQLCE v3.5 I was only able to find build 8080, not 8085, but it worked fine.
Also, I only 'zeroed out' the values in nt_execution and not nt_order.

Be sure to back up your NinjaTrader.sdf before you do anything!


Started this thread Reply With Quote




Last Updated on July 27, 2016


© 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