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

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.
      Kate W.NinjaTrader Customer Service

      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
          Paul H.NinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by TraderG23, 12-08-2023, 07:56 AM
          9 responses
          382 views
          1 like
          Last Post Gavini
          by Gavini
           
          Started by oviejo, Today, 12:28 AM
          0 responses
          1 view
          0 likes
          Last Post oviejo
          by oviejo
           
          Started by pechtri, 06-22-2023, 02:31 AM
          10 responses
          125 views
          0 likes
          Last Post Leeroy_Jenkins  
          Started by judysamnt7, 03-13-2023, 09:11 AM
          4 responses
          59 views
          0 likes
          Last Post DynamicTest  
          Started by ScottWalsh, Yesterday, 06:52 PM
          4 responses
          36 views
          0 likes
          Last Post ScottWalsh  
          Working...
          X