• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Exit/entry Position reversed

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • kantkant2
    started a topic Exit/entry Position reversed

    Exit/entry Position reversed

    Hi!
    I discovered now (after days of attempts) that nt7 in this script confuse the exit signal with entry...
    So, like in image attached I have target that close position 1 tick above new entry signal (for the short side), but ninja seems reverse 2 signals in backtest, in a nonsense way..also for long.
    this caused me a lot of problem, because when new position is open the opposite entry order is not null and make issues in stop and target placement...
    I use unmanaged approach.
    can you help me??
    Attached Files
    Last edited by kantkant2; 04-16-2018, 05:28 AM.

  • NinjaTrader_PaulH
    replied
    Hello kantkant2,

    Thanks for your reply.

    Can you advise if your observations are based on Historical data only or do you see this on real-time as well?

    Leave a comment:


  • kantkant2
    replied
    Ok thanks, but it is a big problem.....
    I use unmanaged to avoid 2 separate strategies...
    So, in real time it should not occur, if I understand well...
    And also, first in first out logic is respected when my target fills BEFORE my new entry, and I don't know why thi happens...
    Sorry, but is more than a week that I am tyring to solve this...
    Sorry for my english..
    Last edited by kantkant2; 04-16-2018, 06:41 AM.

    Leave a comment:


  • NinjaTrader_PaulH
    replied
    Hello kantkant2,

    Thanks for your reply.

    The managed approach uses the signal names to tie the visual and reporting with the signal names. In the unmanaged approach the signal names are not used to tie entry/exit together so your strategy is subject to first in first out processing.

    You might consider using separate strategies if multiple positions will be taken on the instrument and account, in this way you can view the strategy performance on the chart and in the strategy performance windows to see the strategy entry/exits.

    Leave a comment:


  • kantkant2
    replied
    Yes, I use also traceorder, but I have no idea of what's happens this time... have you some suggestion for this behaviour?
    thanks

    Leave a comment:


  • NinjaTrader_PaulH
    replied
    Hello kantkant2,

    Thanks for your posts.

    For debugging, are you using print statements to clarify what is happening in your script? If not that is the best place to start and here is a link to our debugging tips: https://ninjatrader.com/support/foru...ead.php?t=3418

    Leave a comment:

Latest Posts

Collapse

Topics Statistics Last Post
Started by TazoTodua, Today, 05:06 AM
0 responses
1 view
0 likes
Last Post TazoTodua  
Started by jjanguda, Today, 03:32 AM
1 response
5 views
0 likes
Last Post NinjaTrader_ChrisSch  
Started by jjanguda, Today, 01:11 AM
0 responses
6 views
0 likes
Last Post jjanguda  
Started by giogio1, 03-18-2019, 06:55 PM
2 responses
25 views
0 likes
Last Post bltdavid  
Started by franki, Yesterday, 08:10 PM
1 response
5 views
0 likes
Last Post NinjaTrader_EricB  
Working...
X