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

Place a sell order -5 ticks from market price.

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

    Place a sell order -5 ticks from market price.

    I have written a strategy. I need when the criteria are met to place an order on a pullback. For example, I would like to place a sell order -5 ticks from market price.
    Attached Files

    #2
    Hello Nightmaregpu,

    Thank you for your post.

    To place a sell order 5 ticks below a certain price value using the Strategy Builder, you would need to use an Action of EnterShortLimit() instead of EnterShort() followed by setting the Limit price to something like Close[0] with a -5 Tick offset.

    See the modified version of your shared strategy that demonstrates this.

    Also, see the help guide documentation below for more information.
    Strategy Builder Actions - https://ninjatrader.com/support/help...MarketPosition

    Please let us know if we may assist further.
    Attached Files
    Brandon H.NinjaTrader Customer Service

    Comment


      #3
      I changed your Strategy to -10 tick entry. It entered at the close of the candle instead of placing a sell order 10 ticks above the price.
      Attached Files

      Comment


        #4
        Hello Nightmaregpu,

        Thank you for your note.

        If you would like to place the sell limit order 10 ticks above the close, you would need to set the EnterShortLimit() offset to 10 ticks instead of -10 ticks. When testing the strategy on my end using a 10 tick offset for EnterShortLimit(), I am seeing the sell limit order being placed 10 ticks above the close of a bar as expected. This could be seen by opening a Data Box from the Chart Toolbar and hovering your mouse over the bar that the order was placed, then comparing the Close price to the Sell Limit order price.

        Please let us know if we may assist further.
        Brandon H.NinjaTrader Customer Service

        Comment


          #5
          It worked. Thanks so much!!

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by ScottWalsh, 04-16-2024, 04:29 PM
          7 responses
          34 views
          0 likes
          Last Post NinjaTrader_Gaby  
          Started by cls71, Today, 04:45 AM
          0 responses
          2 views
          0 likes
          Last Post cls71
          by cls71
           
          Started by mjairg, 07-20-2023, 11:57 PM
          3 responses
          214 views
          1 like
          Last Post PaulMohn  
          Started by TheWhiteDragon, 01-21-2019, 12:44 PM
          4 responses
          544 views
          0 likes
          Last Post PaulMohn  
          Started by GLFX005, Today, 03:23 AM
          0 responses
          3 views
          0 likes
          Last Post GLFX005
          by GLFX005
           
          Working...
          X