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() overnight

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

    SetStopLoss() overnight

    Hi there,
    i developed a strategy which operates on a daily timeframe on a european market.
    I use the SetStopLoss() command to set my exit level, if i open a position which stays open overnight, in the morning before the market opens i get my stoploss canceled and this line in my log:

    6/20/2012 6:38:08 AM,Order,Order='173064694/DU117982' Name='Stop loss' New state=Unknown Instrument='FGBL 09-12' Action=BuyToCover Limit price=0 Stop price=141.55 Quantity=18 Type=Stop Filled=0 Fill price=0 Error=NoError Native error='',

    is there something i'm missing to keep my stop levels valid overnight?
    Thank you, kind regards.

    #2
    Hello barbra streisand,
    Please set the TimeInForce parameter to Gtc from the strategy parameters box so that the orders dont gets cancelled after the end of the day.



    Please let me know if I can assist you any further.
    Attached Files
    JoydeepNinjaTrader Customer Service

    Comment


      #3
      Hello Joydeep,
      thank you for your reply, unfortunately strategy's TimeInForce is already set to Gtc.
      I use IB as broker, is it possible they don't support Gtc orders?
      Thank you.

      Comment


        #4
        Hello barbra streisand,
        Can you please check if Trigger After hours is checked or not in your Account connection
        • In Control Center menu bar goto Tools>Account Connections..
        • In the Account Connection dialog select your IB account connection and click on the Change button
        • In the Connection Options dialog click Next, Next,


        Please let me know if Trigger After Hours is checked or not.

        I look forward to assisting you further.
        Attached Files
        JoydeepNinjaTrader Customer Service

        Comment


          #5
          Hello,
          yes, Trigger After Hours is checked already.

          Comment


            #6
            Hello barbra streisand,
            Please uncheck Trigger After Hour in the account connection.

            Also please make sure to uncheck “Allow triggering outside of regular trading hours” in TWS
            (Configure > Order > Stop Trigger Method menu).


            Please let me know if I can assist you any further.
            JoydeepNinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by WHICKED, Today, 12:45 PM
            2 responses
            18 views
            0 likes
            Last Post WHICKED
            by WHICKED
             
            Started by GussJ, 03-04-2020, 03:11 PM
            15 responses
            3,276 views
            0 likes
            Last Post xiinteractive  
            Started by Tim-c, Today, 02:10 PM
            1 response
            8 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Started by Taddypole, Today, 02:47 PM
            0 responses
            3 views
            0 likes
            Last Post Taddypole  
            Started by chbruno, 04-24-2024, 04:10 PM
            4 responses
            51 views
            0 likes
            Last Post chbruno
            by chbruno
             
            Working...
            X