protected override void Initialize()
{
SetStopLoss(Dollarstop, false);
CalculateOnBarClose = true;
}
/// <summary>
/// Called on each bar update event (incoming tick)
/// </summary>
protected override void OnBarUpdate()
{
// Condition set 1
if (ToTime(Time[0]) == ToTime(9, 29, 0))
{
EnterLong(DefaultQuantity, "");
}
if (ToTime(Time[0]) == ToTime(15, 57, 0))
{
ExitLong("", "");
}
}
How can i make it so that if my stoploss is hit, it does not buy again ?

Comment