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 habeebft, Today, 07:27 AM
        1 response
        11 views
        0 likes
        Last Post NinjaTrader_ChristopherS  
        Started by AveryFlynn, Today, 04:57 AM
        1 response
        12 views
        0 likes
        Last Post NinjaTrader_Erick  
        Started by Max238, Today, 01:28 AM
        4 responses
        37 views
        0 likes
        Last Post Max238
        by Max238
         
        Started by r68cervera, Today, 05:29 AM
        1 response
        10 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by geddyisodin, Today, 05:20 AM
        1 response
        14 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Working...
        X