Ninjatrader 7 Sim Inverting trades so winners are losers and vice versa. - NinjaTrader | futures.io
futures.io futures trading


Ninjatrader 7 Sim Inverting trades so winners are losers and vice versa.
Started: by Rory Views / Replies:208 / 3
Last Reply: Attachments:0

Welcome to futures.io.

Welcome, Guest!

This forum was established to help traders (especially futures traders) by openly sharing indicators, strategies, methods, trading journals and discussing the psychology of trading.

We are fundamentally different than most other trading forums:
  • We work extremely hard to keep things positive on our forums.
  • We do not tolerate rude behavior, trolling, or vendor advertising in posts.
  • We firmly believe in openness and encourage sharing. The holy grail is within you, it is not something tangible you can download.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.


You'll need to register in order to view the content of the threads and start contributing to our community. It's free and simple, and we will never resell your private information.

-- Big Mike

Reply
 
Thread Tools Search this Thread
 

Ninjatrader 7 Sim Inverting trades so winners are losers and vice versa.

  #1 (permalink)
Market Wizard
Medellin, Colombia
 
Futures Experience: Advanced
Platform: TPV/ Custom / R
Favorite Futures: Futurama, Buck Rogers, Minis
 
Rory's Avatar
 
Posts: 2,131 since May 2014
Thanks: 4,059 given, 5,992 received
Forum Reputation: Legendary

Ninjatrader 7 Sim Inverting trades so winners are losers and vice versa.

I'm just wondering if anyone else has had this issue.

Seemingly a SQL Server Compact Edition corruption?

I have a couple of added Sim accounts for testing strategies in NT 7. I had noticed that sometimes when I manually add up the trades it differs to the report.

In the past few days I have manually traded the accounts and I can see for certain something is getting corrupt.

1. If I place a trade on Sim2 short and close with a profit it shows as a loss. The same trade made in parallel on Sim3 account shows up correctly as a profit? Sim2 was working correctly this morning until it flipped.
2. If I choose to report the date range 25 August to 25 August it includes results from 24 August listed under Trades. I'm using default 24/7 session template set midnight to midnight and I am on Chicago time.

Repair database and reset instruments has no effect.

Sim3 account is correct and of course I can reset the Sim2 account but it makes me wonder how many times testing has been corrupted by NT not counting the trades correctly? I'm certain this glitch has cropped up many times of the last two years just I hardly noticed.

I have seen times when I was certain I made a winning trade but it was counted a loss, I guess I figured its was a FIFO glitch but this happens with 1 contract. You win win win and then somethong changes and wins get recorded a losses, seemingly it flips back again.

Anyone seen anything like this Sim profit/loss reporting flip?

Is there maybe a more advanced SQL Server CE repair that could be run manually?

Thanks!
Rory


Last edited by Rory; August 25th, 2016 at 11:59 AM.
Reply With Quote
 
  #2 (permalink)
Elite Member
Omer עומר / Israel י
 
Futures Experience: Master
Platform: NinjaTrader, Proprietary,
Broker/Data: Ninjabrokerage/IQfeed + Synthetic datafeed
Favorite Futures: 6A, 6B, 6C, 6E, 6J, 6S, ES, NQ, YM, CL, ZB, ZN, ZC, ZS, GC
 
rleplae's Avatar
 
Posts: 1,658 since Sep 2013
Thanks: 1,221 given, 2,507 received
Forum Reputation: Legendary


Rory View Post
I'm just wondering if anyone else has had this issue.

Seemingly a SQL Server Compact Edition corruption?

I have a couple of added Sim accounts for testing strategies in NT 7. I had noticed that sometimes when I manually add up the trades it differs to the report.

In the past few days I have manually traded the accounts and I can see for certain something is getting corrupt.

1. If I place a trade on Sim2 short and close with a profit it shows as a loss. The same trade made in parallel on Sim3 account shows up correctly as a profit? Sim2 was working correctly this morning until it flipped.
2. If I choose to report the date range 25 August to 25 August it includes results from 24 August listed under Trades. I'm using default 24/7 session template set midnight to midnight and I am on Chicago time.

Repair database and reset instruments has no effect.

Sim3 account is correct and of course I can reset the Sim2 account but it makes me wonder how many times testing has been corrupted by NT not counting the trades correctly? I'm certain this glitch has cropped up many times of the last two years just I hardly noticed.

I have seen times when I was certain I made a winning trade but it was counted a loss, I guess I figured its was a FIFO glitch but this happens with 1 contract. You win win win and then somethong changes and wins get recorded a losses, seemingly it flips back again.

Anyone seen anything like this Sim profit/loss reporting flip?

Is there maybe a more advanced SQL Server CE repair that could be run manually?

Thanks!
Rory

I have seen similar things, best is to do the math in your own code outside NT if you are testing strategies.

I haven't drilled this down to the detail
I guess some of it has it's origin in the fact they keep the average price and not a per trade result

Reply With Quote
The following user says Thank You to rleplae for this post:
 
  #3 (permalink)
Market Wizard
Medellin, Colombia
 
Futures Experience: Advanced
Platform: TPV/ Custom / R
Favorite Futures: Futurama, Buck Rogers, Minis
 
Rory's Avatar
 
Posts: 2,131 since May 2014
Thanks: 4,059 given, 5,992 received
Forum Reputation: Legendary



rleplae View Post
I have seen similar things, best is to do the math in your own code outside NT if you are testing strategies.

I haven't drilled this down to the detail
I guess some of it has it's origin in the fact they keep the average price and not a per trade result

Thanks @rleplae, at least I'm not alone

My main bot TPV in Chicago is a custom affair alright, NT7's bugs forced me into getting it professionally coded it but I had not noticed this additional 'feature'.

I was experimenting with taking trade signals from TPV (from 8 instruments) and executing on NT 7 (as I knew how to interconnect). Trashing the results like this.. I really do wonder how many poor souls abandoned decent ideas because the platform let them down. That is happens with manual trades means its not the dummy strategy.

I recall now you updated the SQL version to fix that ATI bug, do you think its worth a try or any problems you have found since?

Reply With Quote
 
  #4 (permalink)
Elite Member
Omer עומר / Israel י
 
Futures Experience: Master
Platform: NinjaTrader, Proprietary,
Broker/Data: Ninjabrokerage/IQfeed + Synthetic datafeed
Favorite Futures: 6A, 6B, 6C, 6E, 6J, 6S, ES, NQ, YM, CL, ZB, ZN, ZC, ZS, GC
 
rleplae's Avatar
 
Posts: 1,658 since Sep 2013
Thanks: 1,221 given, 2,507 received
Forum Reputation: Legendary


Rory View Post
Thanks @rleplae, at least I'm not alone



I recall now you updated the SQL version to fix that ATI bug, do you think its worth a try or any problems you have found since?

If you talk to the compact SQL database directly, you must be sur to be on the right drivers like
the one's that are in NT7, not sure about NT8, haven't looked what they do there in such depth

During one week i roughly generate one thousand orders and in the weekend i flush the DB, i don't keep
positions open, and that has been quite stable now...

Reply With Quote

Reply



futures.io > > > > Ninjatrader 7 Sim Inverting trades so winners are losers and vice versa.

Thread Tools Search this Thread
Search this Thread:

Advanced Search



Upcoming Webinars and Events (4:30PM ET unless noted)

2016 True Edge Awards: Voting is open until Jan 21!

Now
 

Anthony Drager: Pulling the trigger with confidence

Elite only
 

Leo Murphy: The Art and Science of Technical Analysis

Elite only
 

FuturesTrader71: Ask Me Anything

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Winners and Losers kerrmac Psychology and Money Management 9 August 16th, 2012 09:55 PM
The Winners and Losers in Obama's Corporate Tax Plan Quick Summary News and Current Events 0 February 22nd, 2012 08:10 PM
Stock Rally Turns Hedge Fund Losers Into Winners Quick Summary News and Current Events 0 February 7th, 2012 12:20 AM
Winners and losers from the financial crisis kbit News and Current Events 0 November 1st, 2011 03:39 PM
Winners & Losers of 2010 Poll: You Voted, and Results Are In Quick Summary News and Current Events 0 December 8th, 2010 09:20 PM


All times are GMT -4. The time now is 08:26 AM.

no new posts
Page generated 2017-01-22 in 0.12 seconds with 19 queries on phoenix via your IP 54.205.111.118