Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

multicontract entry

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

    multicontract entry

    I am using the wizard and want to have two contracts total, with different signal names, so I can manage the exits.. Seems no matter what I do only 1 (1L) contract is being entered, from observing the chart screen.. The 2L signal never shows up.

    #region Variables
    // Wizard generated variables
    private int myInput0 = 1; // Default setting for MyInput0
    // User defined variables (add any user defined variables below)
    #endregion

    /// <summary>
    /// This method is used to configure the strategy and is called once before any strategy method is called.
    /// </summary>
    protected override void Initialize()
    {
    CalculateOnBarClose = true;
    }

    /// <summary>
    /// Called on each bar update event (incoming tick)
    /// </summary>
    protected override void OnBarUpdate()
    {
    EnterLong(DefaultQuantity, "1L");
    EnterLong(DefaultQuantity, "2L");

    }

    #region Properties
    [Description("")]
    [Category("Parameters")]
    public int MyInput0
    {
    get { return myInput0; }
    set { myInput0 = Math.Max(1, value); }
    }
    #endregion

    #2
    Make sure your EntriesPerDirection are not set to 1.
    If it's 1 you can change EntryHandling to "unique entries"
    Last edited by roonius; 04-16-2009, 03:59 PM.

    Comment


      #3
      TXs there was no entry at all that the wiz put in some wiz.. Works good now!

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CarlTrading, 03-31-2026, 09:41 PM
      1 response
      67 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      36 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      59 views
      1 like
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      62 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      53 views
      0 likes
      Last Post CarlTrading  
      Working...
      X