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 Tim-c, Today, 03:54 AM
      0 responses
      3 views
      0 likes
      Last Post Tim-c
      by Tim-c
       
      Started by FrancisMorro, Today, 03:24 AM
      0 responses
      2 views
      0 likes
      Last Post FrancisMorro  
      Started by Segwin, 05-07-2018, 02:15 PM
      10 responses
      1,771 views
      0 likes
      Last Post Leafcutter  
      Started by Rapine Heihei, 04-23-2024, 07:51 PM
      2 responses
      31 views
      0 likes
      Last Post Max238
      by Max238
       
      Started by Shansen, 08-30-2019, 10:18 PM
      24 responses
      945 views
      0 likes
      Last Post spwizard  
      Working...
      X