Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Multiple entry indicators

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

    Multiple entry indicators

    Hi,
    I have been creating a strategy that has two entry signals, with both entries have a different entry trigger criteria, but applied to the same chart and time frame. Currently i have built the strategy, but cannot seem to get the orders firing orders at the same time. Is it possible? i have already built them as two seperate strategies but need to apply it into one strategy, for ease of use, and testing.
    I prefer to build one strategy that can handle multiple entry signals, but if this cannot be created please advise.

    #2
    It depends a lot on which order types you use if you choose to do it all in one strategy, as you could easily run into the Internal Order Handling Rules - http://www.ninjatrader-support.com/H...verview36.html ( botton section here ).

    Please work with TraceOrders to debug your strategy order behavior -

    Last edited by NinjaTrader_Bertrand; 11-24-2009, 05:38 AM.

    Comment


      #3
      thank you for your reply, I have taken aboard what is noted and i still cannot seem to get it firing twice. Here is a sample of the code so hopefully you can see the error.
      // Entry Condition 1
      if (Open[0] < Close[1] - Close[1]/1000* gt)
      EnterShort("SGT");
      if (Position.MarketPosition == MarketPosition.Short && Close[0] > Position.AvgPrice +gts * TickSize)
      EnterLong("SGT");

      // Entry Condition 2
      if (Open[0] > Close[1] + Close[1]/1000* gt)
      EnterLong("LGT");
      if (Position.MarketPosition == MarketPosition.Long && Close[0] < Position.AvgPrice -gts * TickSize)
      EnterShort("LGT");

      // Entry Condition 3
      if (Open[0] < Close[1] - Close[1]/1000 * gf)
      EnterLong("LGF");
      if (Position.MarketPosition == MarketPosition.Long && Close[0] < Position.AvgPrice -gfs * TickSize)
      EnterShort("LGF");

      // Entry Condition 4
      if (Open[0] > Close[1] + Close[1]/1000 * gf)
      EnterShort("SGF");
      if (Position.MarketPosition == MarketPosition.Short && Close[0] > Position.AvgPrice +gfs * TickSize)
      EnterLong("SGF");

      Comment


        #4
        Please check into your EntriesPerDirection setting to accomodate for multiple entries in one script - http://www.ninjatrader-support.com/H...Direction.html

        Comment


          #5
          If i put these settings into my strategy, my strategy still continues to fire orders. I assume the reason is because i have all entry order. so to eliminate this i will need to first close the position and when market is flat enter the opposite way.

          If you could confirm this or let me know your thoughts it would be appreciated.

          Comment


            #6
            Correct you want to add checks to Position.MarketPosition in your entry conditions for this - http://www.ninjatrader-support.com/H...tPosition.html

            You can also set EntryHandling to 'UniqueEntries' and then leave EntriesPerDirection to 1, so it would enter 1 time for each uniquely named entry in your script -

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            648 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
            574 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X