Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

StochasticFastExit Strategy Builder

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

    StochasticFastExit Strategy Builder



    Subject: Assistance Needed: Issues with StochasticFast Indicator Strategy Not Exiting Trades

    Dear Support Team,

    I've developed a strategy using the NinjaTrader Strategy Wizard, which incorporates the StochasticFast Indicator. The intended behavior is for the strategy to exit short positions when the K line crosses above the D line, and to exit long positions when the K line crosses below the D line.

    Upon activating the strategy and entering either a short or long position, I've encountered an issue where the strategy fails to exit the trade as expected. Could you please advise on any steps I might be overlooking or any adjustments needed to ensure the strategy performs as designed?

    Thank you for your assistance.
    Attached Files

    #2
    Hello pickles1774,

    May I confirm the entry order signal name is also an empty string?

    Use prints to confirm the condition is evaluating as true on the bar you are expecting.
    Enable TraceOrders to check the order is not being ignored.

    Below is a link to a support article that demonstrates using TraceOrders and prints to understand behavior.
    Please watch the video 'Debugging with the Strategy Builder'.


    Save the output from the NinjaScript Output window to a text file and include this with your next post.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Hi Chelsea,
      Is this something I can do in the strategy builder since I I had created in the Strategy Builder. Are there instructions how to create the prints and traceOrders

      Comment


        #4
        Hello pickles1774,

        Yes, this something you can do from the Strategy Builder.

        Please watch the video 'Debugging with the Strategy Builder' linked in post # 2.
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          I thought my condition and action was clear enough to make this strategy works. What am I missing from the Strategy Builder snippet that I had attached.

          Comment


            #6
            Hello pickles1774,

            Thanks for your notes.

            When a strategy is not behaving as expected it is important to add debugging prints to the strategy to understand exactly how the logic in your strategy is behaving.

            The 'Debugging with the Strategy Builder' video that NinjaTrader_ChelseaB mentioned in post # 2 and post # 4 demonstrates how to add debugging prints to a Strategy Builder strategy to understand how your logic is behaving.

            Please watch the 'Debugging with the Strategy Builder' video NinjaTrader_ChelseaB mentioned and add prints to your strategy that print out all the values being used in the condition to place the Exit order along with the Time of the bar.

            Run the strategy, save the output from the NinjaScript Output window to a text file by right-clicking the output window and selecting Save As... > give the output file a name and save > and include this file in your reply so we may assist further.
            <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by NullPointStrategies, Yesterday, 05:17 AM
            0 responses
            62 views
            0 likes
            Last Post NullPointStrategies  
            Started by argusthome, 03-08-2026, 10:06 AM
            0 responses
            134 views
            0 likes
            Last Post argusthome  
            Started by NabilKhattabi, 03-06-2026, 11:18 AM
            0 responses
            75 views
            0 likes
            Last Post NabilKhattabi  
            Started by Deep42, 03-06-2026, 12:28 AM
            0 responses
            45 views
            0 likes
            Last Post Deep42
            by Deep42
             
            Started by TheRealMorford, 03-05-2026, 06:15 PM
            0 responses
            50 views
            0 likes
            Last Post TheRealMorford  
            Working...
            X