Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

enter two trades on different instruments.

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

    enter two trades on different instruments.

    Hey guys I have a strategy that takes a long on the Euro and E-mini SP 500 futures. what I want Ninjatrader to do is enter a long trade on E-mini SP 500 (1 contract ) and if a long setup also happens on the Euro futures that it should take a long as well. But what I noticed is the strategy only takes one trade, for example if a position is already active on E-mini Sp 500. the strategy will not take a long on the Euro even though a setup is confirmed.
    I tried going to Strategies > Entries per direction and I put 2. But what happens is if another trade setup on the E-mini and Euro fire on the same bar it takes the E-mini SP 500 setup. So what I want to do is have only one trade on the Sp 500 and one trade on the Euro. How can I do this.

    Thank you

    #2
    Hello wallsteetking,

    You may want to give your Entry signals a different name then change your entry handling to UniqueEntires to be able to better manage this.

    For example:
    Code:
    protected override void Initialize() 
    { 
        EntryHandling = EntryHandling.UniqueEntries;
    }
    
    protected override void OnBarUpdate() 
    {
        if ( //ES Conditon)
        {
             EnterLong("ES Long");
        }
        if ( //Euro Condition)
        {
             EnterLong("Euro Long");
        }
    }
    Happy to be of further assistance.
    JCNinjaTrader Customer Service

    Comment


      #3
      Originally posted by wallsteetking View Post
      Hey guys I have a strategy that takes a long on the Euro and E-mini SP 500 futures. what I want Ninjatrader to do is enter a long trade on E-mini SP 500 (1 contract ) and if a long setup also happens on the Euro futures that it should take a long as well. But what I noticed is the strategy only takes one trade, for example if a position is already active on E-mini Sp 500. the strategy will not take a long on the Euro even though a setup is confirmed.
      I tried going to Strategies > Entries per direction and I put 2. But what happens is if another trade setup on the E-mini and Euro fire on the same bar it takes the E-mini SP 500 setup. So what I want to do is have only one trade on the Sp 500 and one trade on the Euro. How can I do this.

      Thank you
      Run the strategy on each instrument in the strategy manager??!

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by rbeckmann05, Yesterday, 11:37 PM
      2 responses
      13 views
      0 likes
      Last Post rbeckmann05  
      Started by reekotubbs, Today, 01:09 PM
      1 response
      18 views
      0 likes
      Last Post NinjaTrader_LuisH  
      Started by DJ888, Yesterday, 05:57 PM
      1 response
      19 views
      0 likes
      Last Post NinjaTrader_LuisH  
      Started by lucyb, Yesterday, 04:09 PM
      3 responses
      20 views
      0 likes
      Last Post lucyb
      by lucyb
       
      Started by DayTradingDEMON, Yesterday, 08:54 AM
      12 responses
      40 views
      0 likes
      Last Post NinjaTrader_Gaby  
      Working...
      X