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 Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      601 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      347 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      103 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      559 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      558 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X