I have replaced "DefaultQuantity" with numerical values of 0,and 1 and it always sends 2 . Additionally, the OrderQty field on my DOM is set to 1. Bear with me, I am a beginner at this.
CalculateOnBarClose = true;
}
///<summary>
/// Called on each bar update event (incoming tick)
///</summary>
protectedoverridevoid OnBarUpdate()
{
// Condition set 1
if (Close[0] > Open[0])
{
EnterLongLimit(DefaultQuantity, Close[0], "");
}
// Condition set 2
if (Close[0] < Open[0])
{
EnterShortLimit(DefaultQuantity, Close[0], "");
}
TIA.
Comment