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


Ninjatrader 7 Sim Inverting trades so winners are losers and vice versa.
Updated: Views / Replies:280 / 3
Created: by Rory 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: Spoon!
Favorite Futures: Oct 26 1985
 
Rory's Avatar
 
Posts: 2,679 since May 2014
Thanks: 5,274 given, 7,855 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 10: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, AEX, CL, NG, ZB, ZN, ZC, ZS, GC
 
rleplae's Avatar
 
Posts: 1,964 since Sep 2013
Thanks: 1,386 given, 2,944 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: Spoon!
Favorite Futures: Oct 26 1985
 
Rory's Avatar
 
Posts: 2,679 since May 2014
Thanks: 5,274 given, 7,855 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, AEX, CL, NG, ZB, ZN, ZC, ZS, GC
 
rleplae's Avatar
 
Posts: 1,964 since Sep 2013
Thanks: 1,386 given, 2,944 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)

FIO Journal Challenge featuring NinjaTrader ($2,000+ of prizes)

May
 

EasyLanguage ABC's: Mastering TradeStation Programming w/Chris Kaiser

Elite only
 

Prototyping Python Strategies (part 2: Backtesting) w/Ran Aroussi

Elite only
 

Portfolio Diversification w/Brendon Delate @ Diversify Portfolio

Elite only

An Afternoon with FIO member Softsoap (being rescheduled)

Elite only
     

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


All times are GMT -4. The time now is 03:28 PM.

Copyright © 2017 by futures io, s.a. Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
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.
no new posts
Page generated 2017-05-22 in 0.09 seconds with 19 queries on phoenix via your IP 54.162.96.103