Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

cant seem to get simple strategy to work

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

    cant seem to get simple strategy to work

    Hi Guys,
    I'm new to ninja trader and am working on a simple strategy so long when the candle goes from bullish to bearish and vice versa and prints arrows, but after trying and trying, I'm not sure what I'm doing wrong. Any pointers would be greatly appreciated.
    Attached Files

    #2
    Hello sh484,

    When you mention "when the candle goes from bullish to bearish", you are meaning the open of the current bar is greater than the close of the current bar and the open of the previous bar is less than the close of the previous bar?

    When you mention "after trying and trying, I'm not sure what I'm doing wrong", what is the behavior you are seeing that is wrong?

    With the arrows, are you expecting these on every occurrence or just the most recent occurrence?
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Hi Chelsea,
      thank you for your reply.

      What I'm trying to do if the previous candle is positive (open is above close) and the current candle closes negative (open is below the close) to go short and vice versa. please see attached the screenshot.
      I'm trying to do every occurrence.

      the problem I'm having is when i put the strategy on the chart, no arrows are drawn and when testing it in the strategy tester nothing happens.
      Attached Files

      Comment


        #4
        Hello sh484,

        A green bar, or up bar, would have the close above the open.

        if (Close[0] > Open[0] && Close[1] < Open[1])

        May I have a screenshot of the Drawing Objects window to confirm a single drawing object has not been drawn?
        • To send a screenshot with Windows 10 or newer I would recommend using the Windows Snipping Tool.
        • Alternatively to send a screenshot press Alt + PRINT SCREEN to take a screenshot of the selected window. Then go to Start--> Accessories--> Paint, and press CTRL + V to paste the image. Lastly, save as a jpeg file and send the file as an attachment.
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          Hi Chelsea, please see attached the screenshot
          the strategy is on the chart but no arrows
          Attached Files

          Comment


            #6
            Hello sh484,

            The (D) means the strategy is not enabled. On the Strategies tab of the Control Center, the strategy must have the Enabled checkbox checked.

            The script must be enabled to take any actions.

            Below is a link to a video on how to enable a strategy.
            Chelsea B.NinjaTrader Customer Service

            Comment


              #7
              Chelsea!!!
              You are a Superstar!!!
              it was driving me crazy, got it all working.
              Thank you

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by NullPointStrategies, Today, 05:17 AM
              0 responses
              50 views
              0 likes
              Last Post NullPointStrategies  
              Started by argusthome, 03-08-2026, 10:06 AM
              0 responses
              126 views
              0 likes
              Last Post argusthome  
              Started by NabilKhattabi, 03-06-2026, 11:18 AM
              0 responses
              69 views
              0 likes
              Last Post NabilKhattabi  
              Started by Deep42, 03-06-2026, 12:28 AM
              0 responses
              42 views
              0 likes
              Last Post Deep42
              by Deep42
               
              Started by TheRealMorford, 03-05-2026, 06:15 PM
              0 responses
              46 views
              0 likes
              Last Post TheRealMorford  
              Working...
              X