Forex Zone - Forex Forum

MA Intersection Alert

Discussion started on New Indicator Coding

  • Starter
  • Posts: 5
  • Points: 0
  • Likes Received: 0
  • Reputation: +0/-0
Hello, 

Is it possible that you can create and indicator that will send an alert ( preferable a text to a mobile phone or an email)  when two moving averages are within a certain absolute range of each other.

The inputs to the code/indicator would be:


  • First Moving Average (FMA)
  • Second Moving Average (SMA)
  • Lower value of range (LVR ) This would be a decimal number between 0.00000 and 10.00000)
  • Upper value of range (UVR ) This would be a decimal number between 0.00000 and 10.00000) 
  • Mobile telephone number
  • email address

So the code will monitor all ( the ones you have selected in MT4) currency pairs and:

If  (|FMA - SMA| >= LVR ) and (|FMA - SMA| <= UVR)  then send an alert.




Linkback: https://www.forex.zone/new-indicator-coding/25/ma-intersection-alert/625/
#1 - December 29, 2018, 02:50:24 PM

Administrator
  • Hero Member
  • Posts: 4764
  • Points: 34666
  • Likes Received: 4863
  • Reputation: +220/-14
MT4 has it's own built-in push notifications (mobile alerts) and also email alerts. You would need to input your email and other settings into the MT4 for it to work. This is the easiest way to do it. So instead of these inputs being in the indicator, they would be set in MT4 itself.

Am I correct in understanding that you want the indicator to scan all available charts in the Market Watch window?

Also, how often will the alerts occur? The range can be above/below the setting for a long time. Even if an alert is given once a candle, it can be many alerts. This would mean very many emails or mobile alerts and it would be annoying. Especially if many charts are scanned. So please explain some more when exactly it should alert.
#2 - December 29, 2018, 03:17:20 PM

  • Starter
  • Posts: 5
  • Points: 0
  • Likes Received: 0
  • Reputation: +0/-0
Hello,

I want an alert to be send when say the exponential MA(12) = MA(26)

Is it possible for me to setup MT4 to do this?

Thanks.
#3 - December 31, 2018, 11:55:42 PM

Administrator
  • Hero Member
  • Posts: 4764
  • Points: 34666
  • Likes Received: 4863
  • Reputation: +220/-14
I want an alert to be send when say the exponential MA(12) = MA(26)

Is it possible for me to setup MT4 to do this?
Yes, this is also possible. An indicator could be coded to alert when this condition is met.
#4 - January 01, 2019, 01:21:48 AM

  • Starter
  • Posts: 5
  • Points: 0
  • Likes Received: 0
  • Reputation: +0/-0
Can you email me the cost of creating this indicator....also the indicator must be able to send me an email and or text message.
#5 - January 22, 2019, 03:04:36 AM

Administrator
  • Hero Member
  • Posts: 4764
  • Points: 34666
  • Likes Received: 4863
  • Reputation: +220/-14
Please reply to what I said about the mobile alerts. Depending on what you need, the complexity will change greatly. So I will need to know if you agree with what I said or not.

Also, there were two questions you never answered.

So I will need to know specifics to code the indicator exactly as you want or for anyone to even quote you accurately.
#6 - January 22, 2019, 12:12:14 PM

  • Starter
  • Posts: 5
  • Points: 0
  • Likes Received: 0
  • Reputation: +0/-0
With regards to your questions....see below:

Am I correct in understanding that you want the indicator to scan all available charts in the Market Watch window?  BR: Yes

Also, how often will the alerts occur?  BR: Alert me only once.  I am only interested in using this indicator for the 1 hr time frame. If you can however give me the flexibility to use it for other time frames then that will be great.


Regards
#7 - January 23, 2019, 03:47:00 AM

  • Starter
  • Posts: 5
  • Points: 0
  • Likes Received: 0
  • Reputation: +0/-0
Can you let me know whether or not you can code this for me?
#8 - February 01, 2019, 02:13:33 AM

Administrator
  • Hero Member
  • Posts: 4764
  • Points: 34666
  • Likes Received: 4863
  • Reputation: +220/-14
Can you let me know whether or not you can code this for me?
Please check your PM.
#9 - February 01, 2019, 02:30:10 AM

  • Jr. Member
  • Posts: 95
  • Points: -5
  • Likes Received: 16
  • Reputation: +0/-0
nice modification of the indicator maybe I know that Moving averages are basic indicators but if combined with MACD this indicator will be very good and easy to explain for Buy & Sell it
#10 - February 05, 2019, 08:19:12 AM

  • Full Member
  • Posts: 127
  • Points: 0
  • Likes Received: 50
  • Reputation: +1/-0
An interesting blend of indicators to be applied at mt4 and mt5
#11 - February 05, 2019, 08:10:38 PM

  • Hero Member
  • Posts: 742
  • Points: 338
  • Likes Received: 55
  • Reputation: +3/-6
nice modification of the indicator maybe I know that Moving averages are basic indicators but if combined with MACD this indicator will be very good and easy to explain for Buy & Sell it
many senior traders also use moving average indicators to help make analysis and determine when to enter the market and when to exit the market on time, even if only using moving averages without the help of the MACD indicator
#12 - February 13, 2019, 08:35:31 AM

paidto

With regards to your questions....see below:

Am I correct in understanding that you want the indicator to scan all available charts in the Market Watch window?  BR: Yes

Also, how often will the alerts occur?  BR: Alert me only once.  I am only interested in using this indicator for the 1 hr time frame. If you can however give me the flexibility to use it for other time frames then that will be great.


Regards
if you get out too often alerts can also be uncomfortable, so I also agree with your opinion, maybe you should only hear the alert every hour
#13 - February 20, 2019, 10:34:54 AM

  • Starter
  • Posts: 6
  • Points: 0
  • Likes Received: 1
  • Reputation: +0/-0
TANG'S INDICATOR IS VERY GOOD, HERE'S A VERY COMPLETE DESCRIPTION, PLEASE ME TO FOLLOW LEARNING
#14 - February 28, 2019, 03:41:25 PM

  • Newbie
  • Posts: 19
  • Points: 0
  • Likes Received: 1
  • Reputation: +0/-1
how much does it cost to men
#15 - March 08, 2019, 01:54:43 AM

Members:

0 Members and 1 Guest are viewing this topic.