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

SetTrailStop

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

    SetTrailStop

    Hello

    When I call the SetTrailStop method using the following parameters:
    SetTrailStop(CalculationMode mode, double value)
    Does the order is submitted (once triggered) as a market order or a limit order?

    Thanks

    #2
    Hello kiss987,

    Thank you for writing in.

    Trail stop orders are submitted as stop market orders.

    For more information about the SetTrailStop() method, please take a look at this help guide link: https://ninjatrader.com/support/help...ttrailstop.htm

    Please, let us know if we may be of further assistance.
    Zachary G.NinjaTrader Customer Service

    Comment


      #3
      Hello

      According to your documentation about the 'simulated' parameter:
      "If true, will simulate the stop order and submit as market once triggered".
      What happens if the value is false?

      Thanks

      Comment


        #4
        Hello kiss987,

        Setting the bool "simulated" to true will make NinjaTrader use a Simulated Stop order which is a conditional locally held (PC simulated) order type that allows you to execute a market order once the market touches your order price. Since it is locally held there are some risks that your order may not be filled if your PC crashes or you have internet trouble.

        Setting the bool to false will submit your stop loss order to the exchange.

        Here is a link that goes over Simulated Stop Orders that you may view for more information.
        Zachary G.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by ZenCortexCLICK, Today, 04:58 AM
        0 responses
        1 view
        0 likes
        Last Post ZenCortexCLICK  
        Started by sidlercom80, 10-28-2023, 08:49 AM
        172 responses
        2,279 views
        0 likes
        Last Post sidlercom80  
        Started by Irukandji, Yesterday, 02:53 AM
        2 responses
        17 views
        0 likes
        Last Post Irukandji  
        Started by adeelshahzad, Today, 03:54 AM
        0 responses
        4 views
        0 likes
        Last Post adeelshahzad  
        Started by Barry Milan, Yesterday, 10:35 PM
        3 responses
        13 views
        0 likes
        Last Post NinjaTrader_Manfred  
        Working...
        X