Difference between moving average and the price

 

Do you have a ready indicator which would be easy to modify. Indicator should have following features:

  • Different types of moving averages
  • Possibility to choose close, open, median or some average
  • Possibility to change the difference between moving average and the price
  • Alarm, when the price goes over or under the detailed price differenceI would really appereciate if someone could help me with this indicator. I have found coding where difficult, but I my learning and I rely on that one day I can produce that kinf of easy codes.
Reason: