So,

If using the TimeFrame you got different. Try without Timeframe and change only BarPeriod. I spend more days with this problem. See, in my post (Indicator and TimeFrame).

For me is a Zorro best platform for developing AOS. I make more like 100 AOS under MT4 and 80% time I make workaround MT4.