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

Stop Order guard timer

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

    Stop Order guard timer

    Hello all.

    please advise if there is a possibility to place a Stop Market Order which has kind of guard timer ? The goal is to avoide stop execution in case the price is just strike the stop activation level for a second or two and then return back. I know some platfrom has such a possibility.. but what about Ninja ?
    Or only way to make it is to use Unmanaged orders and control everything in a script code? As a last resort - yes.. the only problem is possible connectivity loss and respectively loss of the position cotrol.

    thanks

    Andrey

    #2
    Hello Andrey,

    Thanks for your post.

    There would not be a way to add a guard timer to a stop market order. Once the stop market order is submitted, it will reside on the broker's order routing server and will convert to a market order when the price is touched.

    If you would like to add additional criteria to exit your position, you could consider programming logic to check if the current market price is where you want it, and then call ExitLong()/ExitShort() to exit the position with a market order.

    If you have suffered a connection loss, a strategy can be re-enabled with ImmediatelySubmit to have an existing position resumed. The strategy will process historical data to see what trades it would have taken, and any working historical orders will be compared against live working orders. If the orders match, they will resume, otherwise the live orders will be cancelled and replaced from historically calculated orders.

    Syncing account positions - https://ninjatrader.com/support/help..._positions.htm

    We look forward to assisting.
    Last edited by NinjaTrader_Jim; 01-26-2021, 01:02 PM.
    JimNinjaTrader Customer Service

    Comment


      #3
      Ok.. got it..

      So for the guart timer logic I have to control stop level price touch in the code, once it touched, start timer.. and place respective market stop order as timer expire and price still over stop level.
      A bit extra coding.. but ok.. manageable.


      thanks

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by RookieTrader, Today, 09:37 AM
      3 responses
      15 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by kulwinder73, Today, 10:31 AM
      0 responses
      8 views
      0 likes
      Last Post NinjaTrader_Erick  
      Started by terofs, Yesterday, 04:18 PM
      1 response
      24 views
      0 likes
      Last Post terofs
      by terofs
       
      Started by CommonWhale, Today, 09:55 AM
      1 response
      5 views
      0 likes
      Last Post NinjaTrader_Erick  
      Started by Gerik, Today, 09:40 AM
      2 responses
      8 views
      0 likes
      Last Post Gerik
      by Gerik
       
      Working...
      X