Pips2MA Indicator

This indicator will alert when the price has moved to within a specified number of pips from the MA. Every kind of MA can be specified. There is also an email alert.

These are the inputs and their meaning.

AlertPips=10; // distance from close to MA in pips.
AlertBarsSkip=3; // number of bars to skip before next alert.
MAperiods=10; // MAperiods - the number of periods to be used by the MA calculation.
MAmethod=“E”; // MAmethod - the method to be used by the MA calculation (‘S’, ‘W’, ‘E’, ‘M’).
MAapply=“C”; // MAapply - the price type to be used by the MA calculation (‘M’, ‘T’, ‘O’, ‘C’, ‘H’, ‘L’).
MAshift=0; // MAshift - the number of periods for the MA shift calculation.
CloseBar=false // true means sending the alert only after the bar has closed and is still greater than the target distance from the MA.
MailAlert=false// set to true to receive emails. This option only works if the platform is properly configured for email.

Pips2MA.zip (5.23 KB)

There is also a multi-currency or dashboard version of this indicator in this thread. It is obviously superior when monitoring many pairs.

http://forums.babypips.com/expert-advisors-automated-trading/46775-pips2ma-indicator.html#post392044