Here is about block numbers: https://fxdreema.com/demo/blocks-execution-order Block numbers matter only when 2 or more connections comes out of the same output. The same as if you drive a car and the road turns into 2 roads.
One parameter is missing from the indicator, because can't understand such definition: http://prntscr.com/6vtz28
You can add some "extern int" to make it work
Here is how to make it better:
//---- input parameters
extern int RSIOMA = 14;
extern ENUM_MA_METHOD RSIOMA_MODE = MODE_EMA;
extern ENUM_APPLIED_PRICE RSIOMA_PRICE = PRICE_CLOSE;
extern int Ma_RSIOMA = 21;
extern ENUM_MA_METHOD Ma_RSIOMA_MODE = MODE_EMA;
extern int BuyTrigger = 80;
extern int SellTrigger = 20;
extern color BuyTriggerColor = DodgerBlue;
extern color SellTriggerColor = Magenta;
extern int MainTrendLong = 50;
extern int MainTrendShort = 50;
extern color MainTrendLongColor = Red;
extern color MainTrendShortColor = Green;