This strategy is based on a simple principle.Trading Pairs is
GBP/USD I use 10 minutes timeframe if position is closed with
profit, next LONG or SHORT positions are opened in rotation
and if position is closed with loss, next position is opened
with the same direction as previous position.SMA shift 0
defaultInstrument GBP/USD defaultPeriod 5 MINTS OfferSide.ASK 1
LastAskCandle = new Candle askBar defaultPeriod 10
defaultInstrument OfferSide.ASK LastBidCandle new Candle
bidBar defaultPeriod 30 defaultInstrument OfferSide.BID if
indicators.getIndicator("SMA") == null. Position amount is
5M, SL limet - 30 pips, TP porfir - 40 pips.