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 3,759 views
    2. thumb_up 8 thanks given
    3. group 4 followers
    1. forum 9 posts
    2. attach_file 0 attachments




 
 

Can I delete a trade from account performance?

 
 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

Can you help answer these questions
from other members on NexusFi?
Cheap historycal L1 data for stocks
Stocks and ETFs
Strategy stop orders partially filled
EasyLanguage Programming
ZombieSqueeze
Platforms and Indicators
REcommedations for programming help
Sierra Chart
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Just another trading journal: PA, Wyckoff & Trends
22 thanks
What is Markets Chat (markets.chat) real-time trading ro …
19 thanks
ApexTraderFunding.com experience and review
15 thanks
GFIs1 1 DAX trade per day journal
15 thanks
EG Indicators
11 thanks
 
 
sam028's Avatar
 sam028 
Site Moderator
 
Posts: 3,765 since Jun 2009
Thanks Given: 3,825
Thanks Received: 4,629


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 Twitter
Thanked by:
 
 
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: 3,003 since Sep 2013
Thanks Given: 2,442
Thanks Received: 5,863



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 Twitter Visit my NexusFi Trade Journal
Thanked by:
 
 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
 
 
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: 3,003 since Sep 2013
Thanks Given: 2,442
Thanks Received: 5,863


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 Twitter Visit my NexusFi Trade Journal
Thanked by:
 
 
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,527

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 ...

Thanked by:
 
 
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: 3,003 since Sep 2013
Thanks Given: 2,442
Thanks Received: 5,863


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 Twitter Visit my NexusFi Trade Journal
Thanked by:
 
 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
 
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.

 
 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

 



Last Updated on July 27, 2016


© 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