Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Reset Strategy Position after Exit

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

    Reset Strategy Position after Exit

    Hello!
    Is there a possibility to reset strategy position after exit order filled?
    I have the issue, that when my exit order filled particullary I see that my Account Position is flat, but Strategy Position in Strategy Tab shows that I'm still in trade. So why I want to reset the Strategy poisition when my Account Position comes Flat. Is it possible?
    Also, when this issue comes - Account Position is flat, and I see Strategy Position is still opened - on Chart Trader - there are no Positions at all, and on Filled Orders on the chart I see that Entry and Exit Order quantities are the same! It's very strange.
    How to resolve it?

    #2
    Hello YevhenShynkarenko, thanks for writing in.

    How is the account position going flat without the strategy knowing of this? If you are manually closing your position, this would cause the resting orders of the strategy to get canceled, and the strategy will disable. There is no way for the strategy to know that its out of sync unless you check the PositionAccount vs the Position object and take action in the strategy if either of those do not match. The best way to solve this would be to avoid the issue altogether. Were you able to tell the reason why your strategy position and account position are getting out of sync?

    I look forward to hearing from you.
    Chris L.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_ChrisL View Post
      Hello YevhenShynkarenko, thanks for writing in.

      How is the account position going flat without the strategy knowing of this? If you are manually closing your position, this would cause the resting orders of the strategy to get canceled, and the strategy will disable. There is no way for the strategy to know that its out of sync unless you check the PositionAccount vs the Position object and take action in the strategy if either of those do not match. The best way to solve this would be to avoid the issue altogether. Were you able to tell the reason why your strategy position and account position are getting out of sync?

      I look forward to hearing from you.
      Did I told something about manually close????
      I talking only about STRATEGY.

      I dont know HOW its going, so why I write here! I create the second topic with issue, because I dont see any usefull answers from support.

      Using only strategy. One entry - one exit. Account Position goes flat. Strategy Position - still have part filled orders! Chart Trader - shows NO POSITION. In Log - no errors!

      WHAT TO DO?
      Attached Files

      Comment


        #4
        Hello YevhenShynkarenko,

        Binance is not a natively supported connection. How the position is getting reported will be dependent on how the connection adapter handles the position reporting. Since the Binance connection adapter is not one we have made, we would not be able to assist with any issues related to orders submissions/position reporting/NinjaScript strategies when submitting orders through this connection adapter.

        You may test with the Sim101 account where orders executions and positions are simulated within NinjaTrader, but if there are any differences in behavior seen when trading though Binance, those matters should be presented to Binance so they can comment. We can't be sure if their connection adapter fully supports NinjaScript strategies, and we could not comment on any position reporting issues with their connection adapter.

        Please let us know if you have any questions.
        JimNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Hagar, Today, 04:38 PM
        0 responses
        1 view
        0 likes
        Last Post Hagar
        by Hagar
         
        Started by forrestang, Today, 02:05 PM
        3 responses
        15 views
        0 likes
        Last Post NinjaTrader_ChrisL  
        Started by harryodell55, Today, 01:30 PM
        3 responses
        25 views
        0 likes
        Last Post NinjaTrader_ChrisL  
        Started by jjanguda, 09-01-2019, 04:28 PM
        4 responses
        504 views
        0 likes
        Last Post jeronymite  
        Started by tradebot, Today, 12:57 PM
        2 responses
        15 views
        0 likes
        Last Post tradebot  
        Working...
        X