Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

need help in developing a strategy

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

    #16
    hello, it's been two hours that I block on a problem: it only makes sales but no purchase, can you explain to me where I am wrong
    Attached Files

    Comment


      #17
      Hello 270027,

      Thank you for your reply.

      What is the intention of the strategy? I'm seeing inconsistencies in the logic and I'm wondering what your intended logic should be. I also note you are mixing Exit methods with Set Methods from the Stops and Targets screen and you are using ExitShortMIT rather than ExitShort, which would cause you to run afoul of the order handling rules we've previously discussed so that order may be ignored.

      What exactly is the behavior you want the strategy to have?

      Thanks in advance; I look forward to assisting you further.

      Comment


        #18
        Originally posted by NinjaTrader_Kate View Post
        Hello 270027,

        Thank you for your reply.

        What is the intention of the strategy? I'm seeing inconsistencies in the logic and I'm wondering what your intended logic should be. I also note you are mixing Exit methods with Set Methods from the Stops and Targets screen and you are using ExitShortMIT rather than ExitShort, which would cause you to run afoul of the order handling rules we've previously discussed so that order may be ignored.

        What exactly is the behavior you want the strategy to have?

        Thanks in advance; I look forward to assisting you further.
        hello,
        hello, when the sma10 cuts from the bottom the sma25 and after validation by a green candle pass a long. Put a follower stop attached to the SM10.
        When the sma10 cuts from the top the sma25 and after validation by a red candle pass a short and put a follower stop attached to the SM10.
        thank's

        Comment


          #19
          Hello,

          Thanks for your reply.

          You would not be able to use the SetProfitTarget and setStopLoss if you are going to use ExitShortMIT as this would violate the internal order handling rules. Please see the help guide here: https://ninjatrader.com/support/help...antedPositions

          "Put a follower stop attached to the SM10." It sounds like you are saying that you want to add a trailing type stop tied to an indicator. If you use the ExitShortMIT then you cannot use the set methods as the ExitShortMIT order will be ignored (rules violation). What we suggest would be to create a set that checks when you are in a short position and checks that price has crossed below the Moving average to then use an ExitShort() order. As this is a market order it would not violate the rules and allow you to keep the set methods.

          In set 3 it looks like you have EnterLongMIT() and I think you meant to use EnterLong().

          Here are links to resources for further information on the strategy builder:
          Free live webinar every other Thursday at 4:00 PM EST, through this link to all webinars: https://ninjatrader.com/PlatformTraining
          Previous recording of the Strategy Builder 301 webinar: https://youtu.be/HCyt90GAs9k?list=PL...auWXkWe0Nf&t=2
          Help guide for the strategy builder: https://ninjatrader.com/support/help...gy_builder.htm
          Tutorial using the Strategy Builder (Titled "Creating the Strategy by the Wizard): https://ninjatrader.com/support/help..._cross_ove.htm

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by NullPointStrategies, Yesterday, 05:17 AM
          0 responses
          64 views
          0 likes
          Last Post NullPointStrategies  
          Started by argusthome, 03-08-2026, 10:06 AM
          0 responses
          139 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