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

Using market orders for SetProfitTarget

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

    Using market orders for SetProfitTarget

    I am using the SetProfitTarget function to set profit targets for my entries. Is it possible that I can set the order to execute as a market order instead of a limit order at the profit target using SetProfitTarget? I can do this manually by having the system detect when the profit target is hit then send a market order to exit, but being able to use SetProfitTarget would make things much easier.

    #2
    >> Is it possible that I can set the order to execute as a market order instead of a limit order at the profit target using SetProfitTarget?
    Unfortunately this is not supported.

    Comment


      #3
      Just keep polling in the update loop for the price on every tick in NinjaSript. When you see the price you want on the bid or ask, just exit with a market order.

      TW

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Ashkam, 04-29-2024, 09:28 AM
      4 responses
      42 views
      0 likes
      Last Post Ashkam
      by Ashkam
       
      Started by nightstalker, Yesterday, 02:05 PM
      1 response
      29 views
      0 likes
      Last Post NinjaTrader_Eduardo  
      Started by dcriador, Today, 02:09 PM
      0 responses
      4 views
      0 likes
      Last Post dcriador  
      Started by nicthe, Today, 07:38 AM
      4 responses
      21 views
      0 likes
      Last Post bltdavid  
      Started by cmtjoancolmenero, 04-29-2024, 03:40 PM
      30 responses
      98 views
      0 likes
      Last Post cmtjoancolmenero  
      Working...
      X