protected override void Initialize()
{
SetProfitTarget ("", CalculationMode.Ticks, 4);
SetStopLoss ("", CalculationMode.Ticks, 2);
CalculateOnBarClose = false;
}
SMA(close, 4)
if ( price_is_above_SMA_5_ticks )
{
enterlong; //only one time, if price pullback (one tick because second is SL) and cross the fifth tick from SMA again, no more opening position
}
if ( price_is_bellow_SMA_5_ticks )
{
entershort; //only one time
}

Comment