I am trying to get the code to check if the stop is filled. If it is filled, I want to enter in the direction of the stop. However, the code is not working. would you please help me finding the mistake:
protected override void OnBarUpdate()
{
if (stopOrder01 != null && stopOrder01.Filled > 0)
{
EnterShort(Convert.ToInt32(Order01LotSize + Order02LotSize + Order03LotSize), "S11");
SetStopLoss("S11", CalculationMode.Ticks, Order03SL, false);
SetProfitTarget("S11", CalculationMode.Ticks, Order03PT, false);
}
}
Comment