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 Brevo, Today, 01:45 AM
          0 responses
          3 views
          0 likes
          Last Post Brevo
          by Brevo
           
          Started by aussugardefender, Today, 01:07 AM
          0 responses
          3 views
          0 likes
          Last Post aussugardefender  
          Started by pvincent, 06-23-2022, 12:53 PM
          14 responses
          240 views
          0 likes
          Last Post Nyman
          by Nyman
           
          Started by TraderG23, 12-08-2023, 07:56 AM
          9 responses
          384 views
          1 like
          Last Post Gavini
          by Gavini
           
          Started by oviejo, Today, 12:28 AM
          0 responses
          6 views
          0 likes
          Last Post oviejo
          by oviejo
           
          Working...
          X