It is example of code:
protected override void Initialize()
{
CalculateOnBarClose=true;
SetStopLoss(CalculationMode.Ticks,20);
SetProfitTarget(CalculationMode.Ticks,20);
EntryHandling = EntryHandling.AllEntries;
}
protected override void OnBarUpdate()
{
EnterShortStop(1,GetCurrentBid()-20*TickSize,"Sell");
EnterLongStop(1,GetCurrentAsk()+20*TickSize,"Buy");
}

Comment