to create items less difficult, think about the example under, named MyIndicator.mq4, which buys when a bar closes earlier mentioned the higher of the final bar, and shorts when a bar closes beneath the reduced of the final bar. If it's essential to trade symbols with substantial spreads or with lower liquidity, make sure to boost the zone param