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, 11: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 fx.practic, 10-15-2013, 12:53 AM
              5 responses
              5,404 views
              0 likes
              Last Post Bidder
              by Bidder
               
              Started by Shai Samuel, 07-02-2022, 02:46 PM
              4 responses
              95 views
              0 likes
              Last Post Bidder
              by Bidder
               
              Started by DJ888, Yesterday, 10:57 PM
              0 responses
              8 views
              0 likes
              Last Post DJ888
              by DJ888
               
              Started by MacDad, 02-25-2024, 11:48 PM
              7 responses
              160 views
              0 likes
              Last Post loganjarosz123  
              Started by Belfortbucks, Yesterday, 09:29 PM
              0 responses
              8 views
              0 likes
              Last Post Belfortbucks  
              Working...
              X