Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Kill doesnt work for buying power?

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

    Kill doesnt work for buying power?

    Even with kill on. My strategy doesnt end. It sends 350 orders before I realize it. thanks
    Click image for larger version

Name:	Untitled.png
Views:	175
Size:	344.9 KB
ID:	1175531

    #2
    Hi ezrollin, thanks for posting.

    What commands are you doing in the strategy to get this behavior? What is Kill On? I will need more details and context about the strategy.

    Best regards,
    -ChrisL
    Chris L.NinjaTrader Customer Service

    Comment


      #3
      Click image for larger version

Name:	111111111.png
Views:	160
Size:	74.4 KB
ID:	1175590

      Comment


        #4
        Hi ezrollin, thanks for posting that.

        The strategy is running OnEachTick which would explain why it sends so many orders. The condition is being hit on every tick and there is nothing to stop the condition from triggering on every tick. For the strategy to be stopped with this real time order error handling, it needs to hit an Error code, listed here:



        Chris L.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by The_Sec, Yesterday, 03:37 PM
        1 response
        11 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Started by vecnopus, Today, 06:15 AM
        0 responses
        1 view
        0 likes
        Last Post vecnopus  
        Started by Aviram Y, Today, 05:29 AM
        0 responses
        5 views
        0 likes
        Last Post Aviram Y  
        Started by quantismo, 04-17-2024, 05:13 PM
        3 responses
        27 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Started by ScottWalsh, 04-16-2024, 04:29 PM
        7 responses
        36 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Working...
        X