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 charlesugo_1, 05-26-2026, 05:03 PM
      0 responses
      61 views
      0 likes
      Last Post charlesugo_1  
      Started by DannyP96, 05-18-2026, 02:38 PM
      1 response
      148 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 05-11-2026, 05:56 AM
      0 responses
      162 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 05-10-2026, 08:12 PM
      0 responses
      98 views
      0 likes
      Last Post CarlTrading  
      Started by Hwop38, 05-04-2026, 07:02 PM
      0 responses
      286 views
      0 likes
      Last Post Hwop38
      by Hwop38
       
      Working...
      X