Indicators Used
Miscellaneous
0
Views
0
Downloads
0
Favorites
Alert_SAR
//+------------------------------------------------------------------+
//| Alert_SAR.mq4 |
//| Kalenzo |
//| bartlomiej.gorski@gmail.com |
//+------------------------------------------------------------------+
#property copyright "Kalenzo"
#property link "bartlomiej.gorski@gmail.com"
extern int range = 1;
extern double step = 0.02;
extern double maximum = 0.2;
#property indicator_chart_window
//+------------------------------------------------------------------+
//| Custom indicator initialization function |
//+------------------------------------------------------------------+
int init()
{
//---- indicators
//----
return(0);
}
//+------------------------------------------------------------------+
//| Custom indicator deinitialization function |
//+------------------------------------------------------------------+
int deinit()
{
//----
//----
return(0);
}
//+------------------------------------------------------------------+
//| Custom indicator iteration function |
//+------------------------------------------------------------------+
int start()
{
//----
double sar = iSAR(Symbol(),0,step,maximum,0);
double psar = iSAR(Symbol(),0,step,maximum,1);
if( (sar > Open[0] && psar < Open[1]) || (sar < Open[0] && psar > Open[1]) )
Alert(Symbol()+" SAR changed ");
//----
return(0);
}
//+------------------------------------------------------------------+
Comments
Markdown Formatting Guide
# H1
## H2
### H3
**bold text**
*italicized text*
[title](https://www.example.com)

`code`
```
code block
```
> blockquote
- Item 1
- Item 2
1. First item
2. Second item
---