The problem is in this input:
http://img.prntscr.com/img?url=http://i.imgur.com/BPYtVCt.png
While everything is fine inside the indicator itself, the EA does not know about this datatype that is defined in the indicator ENUM_PRICE, it also does not know variable/constant with name PRICE__MEDIAN. This enumeration is defined and used in the indicator, but the EA does not have access to it, so from the EA it looks like something undefined.
I will suggest to change the datatype from ENUM_PRICE to int and the value from PRICE__MEDIAN to 0.
You can see where possible values of that enumeration are defined up there - PRICE__MEDIAN, PRICE__OPEN, PRICE__CLOSE.... as a numbers they are 0, 1, 2, 3, 4, 5, 6 and 7.
Enumerations are good because when you add indicator to the chart, you can select from all possible values in that enumeration. There is no need for you to know what value to add - 0, 1, 2, 3... this is hard to remember. So enumerations are way to make input parameters more intuitive. But when when you use that indicator in an EA, they does not seem to work the same way 