Could anyone give some hints? Thanks.
Here is my code below:
{
SetProfitTarget("", CalculationMode.Ticks, Target);
SetStopLoss("", CalculationMode.Ticks, StopLoss, false);
CalculateOnBarClose = true;
}
protected override void OnBarUpdate()
{
// Condition set 1
if (Close[0] > SMA(SMA10)[0] && myBool)
{
EnterLong(DefaultQuantity, "");
myBool = false;
}
Comment