Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Exit Position Seconds Before Bar Close

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

    #16
    Sorry--I misstated. It should read:

    If I apply two strategies to one chart and Strategy #1 is CalculateOnBarClose true and triggers a long entry which is filled, and Strategy #2 is CalculateOnBarClose false and says that at 1:59 PM to ExitLong and ExitShort, would #2 close a position in process that has not reached profit trigger or stop loss?

    Comment


      #17
      djdinut1, the two strategies would work independent from each other.

      Comment


        #18
        You mean the ExitShort and ExitLong in Strategy #2 would not close my orders in process under Strategy #1? Because that seems to be what is happening; they are not being exited.

        Comment


          #19
          Strategy #2 does not do anything with Strategy #1. All Exit methods originating from #2 stay with #2. Same goes for #1.
          Josh P.NinjaTrader Customer Service

          Comment


            #20
            Is there a command I can enter through NinjaScript that represents "Flatten Everything?" Also, do the NinjaScript commands execute in the order in which I entered them; in other words, if my NinjaScript is set up to execute CalculateOnBarClose = true and I write first "Flatten Everything" or "Exit Long Position" and "Exit Short Position" and then write "Enter Long" and Enter Short," will the Flatten Everything or Exit Long and Exit Short execute first and then allow immediate execution of Enter Long and Enter Short?

            Comment


              #21
              No, strategy 2 can ONLY control things from strategy 2. There is nothing that will cross over to strategy 1. Everything is processed in the sequence received. Actual filling of orders is up to your brokerage and may not be in the same sequence you submitted them at.
              Josh P.NinjaTrader Customer Service

              Comment


                #22
                Can I have Strategy 1 and Strategy 2 running simultaneously ON THE SAME INSTRUMENT and have each executing its own order and exit commands which will work independently?

                Comment


                  #23
                  Yes, as those two strategies are independent from each other - all you have to do is ensure is the synching for your overall strategy position vs your real account position - http://www.ninjatrader-support.com/H...tPosition.html

                  Comment


                    #24
                    I've reviewed the link instructions but am a bit confused. Let me give an example of what I want to do.

                    Let's say I have two Strategies ("A" and "B") running simultaneously on the same instrument on the same chart. Strategy A says if the current bar closes at 1.310 then enter a buy stop limit order at 1.325. Strategy B says if the bar closes at 1.310 enter a sell stop limit order at 1.300. I want both orders entered at the close of the current bar. During the next bar, the buy stop limit order of Strategy A may or may not be filled and the sell stop limit order of Strategy B also may or may not be filled. They may both be filled and be in process at the same time. Let's say they are in process at the same time and Strategy A reaches the target written into the strategy and, therefore, closes the buy position. Strategy B needs to continue until it reaches its target and closes its sell position.

                    Will this work?

                    Comment


                      #25
                      Yes, it will work just fine. Each strategy is independent of each other.
                      Josh P.NinjaTrader Customer Service

                      Comment


                        #26
                        Apply a single strategy to multiple charts simultaneously?

                        I've read the FAQ page and see no instructions about beginning a new thread so I'm piggy-backing on something I inquired about earlier this year.

                        Can I apply the same strategy to multiple charts at once? In other words, if I have three charts on the screen, each with a different instrument, and I want to run the same strategy on all three charts, is there a way to do that through a single command or must I always apply the strategy to each chart one at a time?

                        Comment


                          #27
                          You would need to apply it to all charts manually - for our upcoming NinjaTrader 7 version applied strategies will be saved in the workspaces, so to restart all applied ones you could then do so with a single mouse click.

                          Comment


                            #28
                            Start the same strategy on multiple charts simultaneously?

                            Continuing from your previous comment on 11/11/09, then, how do I start the same strategy on multiple charts at once in NT 7?

                            Comment


                              #29
                              djdinut1,

                              You can add all the strategies you want onto the chart all in the Disabled states first. Then go to the Strategies tab in the Control Center, select them all, right click, and then select Enable. That will turn them all on.
                              Josh P.NinjaTrader Customer Service

                              Comment


                                #30
                                Works great! Thank you.

                                Comment

                                Latest Posts

                                Collapse

                                Topics Statistics Last Post
                                Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                                0 responses
                                647 views
                                0 likes
                                Last Post Geovanny Suaza  
                                Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                                0 responses
                                369 views
                                1 like
                                Last Post Geovanny Suaza  
                                Started by Mindset, 02-09-2026, 11:44 AM
                                0 responses
                                108 views
                                0 likes
                                Last Post Mindset
                                by Mindset
                                 
                                Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                                0 responses
                                572 views
                                1 like
                                Last Post Geovanny Suaza  
                                Started by RFrosty, 01-28-2026, 06:49 PM
                                0 responses
                                573 views
                                1 like
                                Last Post RFrosty
                                by RFrosty
                                 
                                Working...
                                X