Help with Multiple Indicators in One File

 

Good day all. I am new to coding in this language but I used to code in C and C++ when I was younger. I combined and modified two indicator codes and saved them in the attached file. One for the Bill Williams AO Alert and the other for Moving Average crosses. The aim is that I will only receive an alert when the AO changes and either moving average is above the other. Could someone kindly assist me by reviewing my code to see if it will achieve what I want?


Thanks.

Files:
 
Help anyone??????
Reason: