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 llanqui, Today, 03:53 AM
      0 responses
      2 views
      0 likes
      Last Post llanqui
      by llanqui
       
      Started by burtoninlondon, Today, 12:38 AM
      0 responses
      10 views
      0 likes
      Last Post burtoninlondon  
      Started by AaronKoRn, Yesterday, 09:49 PM
      0 responses
      14 views
      0 likes
      Last Post AaronKoRn  
      Started by carnitron, Yesterday, 08:42 PM
      0 responses
      11 views
      0 likes
      Last Post carnitron  
      Started by strategist007, Yesterday, 07:51 PM
      0 responses
      14 views
      0 likes
      Last Post strategist007  
      Working...
      X