Pips To MA Alert - Dashboard

This is a multi-currency alert for price movements towards an MA.


The inputs are:
AlertPips - the distance in pips from the MA at which to alert. One alert is sent per bar.
AlertBarsSkip - the number of bars to skip before sending another alert.
MAperiods=10; // MAperiods - the number of periods to be used by the MA calculation.
MAmethod=“E”; // MAmethod - the method to be usePips2MA_DB.zip (14.2 KB)d for the MA calculation (‘S’, ‘W’, ‘E’, ‘M’).
MAapply=“C”; // MAapply - the price type to be used for the MA calculation (‘M’, ‘T’, ‘O’, ‘C’, ‘H’, ‘L’).
MAshift=0; // MAshift - the number of periods for the MA shift calculation. MATimeFrame - this is the TF for the calculation of the MA and is usually set to 0 which means to use the chart’s TF.
DBDisplay - to turn off the dashboard and only get alerts, set to false.
MailAlert - set to true to receive emails. This option only works if the platform is properly configured for email.
SendAlert - set to false to suppress alerts and use the dashboard only.
CurrencySuffix - supply the currency suffix, if your broker has appended a lower case letter like “r” to the symbol.

You can change the colour scheme of the dashboard to suit your chart; these are the inputs and defaults:
LabelColr=Ivory; InAlertZone=Aqua; OutAlertZone=Magenta;

The currency pairs to be monitored can be selected from the list and in addition there are 4 fields for other pairs of your choice. A maximum of 15 pairs can be monitored.

This thread is for topics related to this indicator only. A few guidelines to follow:

  1. Please report bugs. Please explain how it happened and the steps to follow to recreate it. If I can’t recreate it, I can’t fix it. Include screen shots if necessary.
  2. You can request enhancements. In all likelihood they will not be implemented unless I feel they are appropriate for the intended purpose of the indicator and are beneficial to others.
  3. You cannot ask coding questions on this thread.
  4. You cannot post anything I deem off topic.
  5. You cannot PM me. If it is not important enough to discuss in a public forum, it is not important enough for me to respond.

The dashboard can be installed on any pair’s chart for any timeframe. The chart’s TF can be overridden in the settings. Once installed it should look something like the image.

Pips2MA_DB.zip (14.2 KB)

I just noticed that I hadn’t posted the code. I think I ran into problems uploading and then forgot. I think I know how to now.

So negative numbers are how many pips below the MA price currently is, and positive numbers are pips above, or above below the alert range?

And in the example “10” is the “pips to” range?..which is for all pairs…as in you can’t have a different range for each pair? And is not meaning the MA period?

AlertPips = 10 would mean the alert range is considered to be when the price is less than or equal to 10 pips above or below the MA. So if the MA is 1.2000, the alert range (colour will change) is when price is between 1.20100 and 1.11990. Negative means below 1.2000.

The parameters like the MA period and AlertPips are for all pairs, but you can deselect pairs and put the indicator on another chart if you need multiple setups. I also have a single chart version; I will try to find the link to it.

Hi Pip could not find the file for the dashboard, its something that would help me a lot, could you resend the m4 file…thank you

In post #2.

i think its the file in post 2 called pips to MA, howerver that file is not showing the script

Downloading worked for me. The forum insists on ZIP files, so you have to unzip after downloading to get the .ex4 file.

Yes thanks for that , the ex4 file does not contain the code its garbled, could you copy the script and post it would be appreciated

oh i guess it does not work as i am using the m4 platform

I just posted the single chart version of this alert. Please note that it only has an alert function, there is nothing visual on the chart. For monitoring a few charts, this is probably the better choice to use. The dashboard is superior for many pairs.

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

Oh thank you…your really helpful will get it loaded today