Author: Ross McGuire
Indicators Used
MACD Histogram
Miscellaneous
It issuies visual alerts to the screen
1 Views
0 Downloads
0 Favorites
MACD_Alert
//+------------------------------------------------------------------+
//|                                                   MACD_Alert.mq4 |
//|                                                     Ross McGuire |
//|                                             jmcguire90@gmail.com |
//+------------------------------------------------------------------+
#property copyright "Ross McGuire"
#property link      "jmcguire90@gmail.com"

//+------------------------------------------------------------------+
//| expert initialization function                                   |
//+------------------------------------------------------------------+
int init()
{
//----
   
//----
   return(0);
}
//+------------------------------------------------------------------+
//| expert deinitialization function                                 |
//+------------------------------------------------------------------+
int deinit()
{
//----
   
//----
   return(0);
}
//+------------------------------------------------------------------+
//| expert start function                                            |
//+------------------------------------------------------------------+
int start()
{
   double   
      macdizzle   =  iMACD(Symbol(),PERIOD_M5,12,26,9,PRICE_CLOSE,MODE_MAIN,0);
   if(macdizzle>0.00060) Alert("Macd above 0.00060!");
   if(macdizzle<-0.00060)   Alert("Macd below -0.00060!");
   return(0);
}
//+------------------------------------------------------------------+

Comments

Markdown supported. Formatting help

Markdown Formatting Guide

Element Markdown Syntax
Heading # H1
## H2
### H3
Bold **bold text**
Italic *italicized text*
Link [title](https://www.example.com)
Image ![alt text](image.jpg)
Code `code`
Code Block ```
code block
```
Quote > blockquote
Unordered List - Item 1
- Item 2
Ordered List 1. First item
2. Second item
Horizontal Rule ---