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

SetStopLoss Simulated

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

    SetStopLoss Simulated

    Hi!

    If SetStopLoss is set to simulated in OnStateChange() and trading hours of a strategy are set to regular trading hours, will it execute also outside the regular trading hours (eg. within extended trading hours)? If yes, is it possible to restrict it to execute only within the trading hours of the strategy or more specificly only if the price is hit within the strategies' trading hours?

    Does it calculate on each tick? So, even if the strategy is set to 120min chart it will immediately send an order as soon as the price is hit?

    Thanks!

    Regards
    Kirk
    Last edited by KirkHammett; 02-09-2020, 02:35 AM.

    #2
    If you are using the sample MovingAverage its uses its own settings and ignore your settings.If strategy is set to tick , it will calculate in Tick but if strategy is set to mins , it will calculate in minutes.
    Last edited by Emma1; 02-09-2020, 11:42 AM.

    Comment


      #3
      Hi Kirk, thanks for your post.

      If the stop is simulated, the stop will be submitted as a market order only if the market price reaches the price of the stop. A strategy will not trade if outside of the Session Template applied in the Data Series menu:

      https://ninjatrader.com/support/help...ding_hours.htm - Trading Hours

      The stop does calculate "on each tick" even though the strategy might run OnBarClose. So if the price reaches a stop price, the order will be submitted.

      Please let me know if I can assist any further.
      Chris L.NinjaTrader Customer Service

      Comment


        #4
        Perfect thanks a lot for the quick response!

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by rtwave, 04-12-2024, 09:30 AM
        2 responses
        20 views
        0 likes
        Last Post rtwave
        by rtwave
         
        Started by tsantospinto, 04-12-2024, 07:04 PM
        5 responses
        67 views
        0 likes
        Last Post tsantospinto  
        Started by cre8able, Today, 03:20 PM
        0 responses
        6 views
        0 likes
        Last Post cre8able  
        Started by Fran888, 02-16-2024, 10:48 AM
        3 responses
        49 views
        0 likes
        Last Post Sam2515
        by Sam2515
         
        Started by martin70, 03-24-2023, 04:58 AM
        15 responses
        115 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Working...
        X