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 tsantospinto, 04-12-2024, 07:04 PM
              4 responses
              61 views
              0 likes
              Last Post aligator  
              Started by michi08, 10-05-2018, 09:31 AM
              3 responses
              740 views
              0 likes
              Last Post NinjaTrader_ChelseaB  
              Started by sightcareclickhere, Today, 01:55 PM
              0 responses
              1 view
              0 likes
              Last Post sightcareclickhere  
              Started by Mindset, 05-06-2023, 09:03 PM
              9 responses
              258 views
              0 likes
              Last Post ender_wiggum  
              Started by Mizzouman1, Today, 07:35 AM
              4 responses
              18 views
              0 likes
              Last Post Mizzouman1  
              Working...
              X