Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Flatten on close and Strategies

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

    Flatten on close and Strategies

    Hi

    I have many strategies running and i have NT7 set to flatten everything at 4PM EST

    However I have 1 Strategy that is marked not to Exit on Close

    However it gets closed at 4PM with the others however i need to have it ready for 430PM

    What am i doing wrong???

    Thank you in advance

    Richard

    #2
    Hello richbois,
    Flatten everything will cancel all open orders across all instruments and strategies.You will need to configure the scripts to close orders at 4:00 PM EST and not flatten everything.

    Comment


      #3
      Originally posted by NinjaTrader_RyanM View Post
      Hello richbois,
      Flatten everything will cancel all open orders across all instruments and strategies.You will need to configure the scripts to close orders at 4:00 PM EST and not flatten everything.
      Thanks Ryan so that means cancelling the flatten everything under the control panel option tab and do it only in the strategies

      correct??


      PS question is the close based on my session template for the instrument or something else??

      Comment


        #4
        Hello,
        Thank you for your response. You will need to configure your strategy to close the orders at the certain time. If I understand your question correctly the flatten everything utilized in a script or if selected any where within NinjaTrader will flatten all orders across all instruments regardless.

        Comment


          #5
          Originally posted by NinjaTrader_RyanM View Post
          Hello,
          Thank you for your response. You will need to configure your strategy to close the orders at the certain time. If I understand your question correctly the flatten everything utilized in a script or if selected any where within NinjaTrader will flatten all orders across all instruments regardless.
          let me rephrase to make sure i understand
          if i have this setup in the OPTIONS tab see below then every thing gets closed at the predetermine time if i untick the setting then it wont close everything

          in the script i have this
          protected override void Initialize()
          {
          ExitOnClose = true;
          ExitOnCloseSeconds = 300;
          TimeInForce = Cbi.TimeInForce.Day ;
          CalculateOnBarClose = false;

          then this strategy will close 300 seconds before the close

          if ExitOnClose = false then nothing happens

          and 1 more question how is the close determine by the session template ????

          thanks again Ryan
          Attached Files
          Last edited by richbois; 12-21-2016, 10:17 AM.

          Comment


            #6
            Hello,

            Thank you for the reply.

            Your understanding is correct, by not using the Flatten All in the options menu, you could then pick and choose the exit time for each strategy. The exit on close is determined by the session template you choose when configuring the strategy before you enable it.

            Please let me know if I may be of additional assistance.
            JesseNinjaTrader Customer Service

            Comment


              #7
              Originally posted by NinjaTrader_Jesse View Post
              Hello,

              Thank you for the reply.

              Your understanding is correct, by not using the Flatten All in the options menu, you could then pick and choose the exit time for each strategy. The exit on close is determined by the session template you choose when configuring the strategy before you enable it.

              Please let me know if I may be of additional assistance.
              thank you i am clear now

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by valerieaton, Today, 04:17 AM
              0 responses
              1 view
              0 likes
              Last Post valerieaton  
              Started by rufat, Yesterday, 09:24 PM
              1 response
              15 views
              0 likes
              Last Post NinjaTrader_Jason  
              Started by TRADEONECLIC, Yesterday, 10:05 PM
              0 responses
              23 views
              0 likes
              Last Post TRADEONECLIC  
              Started by BrennanSalibrici, 12-17-2020, 11:55 PM
              3 responses
              45 views
              0 likes
              Last Post StealthM93  
              Started by coopgrafik, Yesterday, 07:56 PM
              0 responses
              9 views
              0 likes
              Last Post coopgrafik  
              Working...
              X