2
Views
0
Downloads
0
Favorites
comments1
//+------------------------------------------------------------------+
//| Supertrend.mq4 |
//| Copyright © 2005, Jason Robinson (jnrtrading). |
//| http://www.jnrtrading.co.uk |
//+------------------------------------------------------------------+
#property copyright "Copyright © 2005, Jason Robinson (jnrtrading)."
#property link "http://www.jnrtrading.co.uk"
#property indicator_separate_window
#property indicator_buffers 2
#property indicator_color1 DeepSkyBlue
#property indicator_color2 Yellow //Red
extern string Pair1 = "GBPUSDm";
//+------------------------------------------------------------------+
//| Custom indicator initialization function |
//+------------------------------------------------------------------+
int init()
{
//----
return(0);
}
//+------------------------------------------------------------------+
//| Custor indicator deinitialization function |
//+------------------------------------------------------------------+
int deinit()
{
//----
//----
return(0);
}
//+------------------------------------------------------------------+
//| Custom indicator iteration function |
//+------------------------------------------------------------------+
int start()
{
int limit, i, cciPeriod;
double cciTrendNow14, cciTrendPrevious14, cciTrendNow, cciTrendPrevious;
//Signal Labels
if (OrderMagicNumber() == 00006)
{ObjectCreate("SST1", OBJ_LABEL, WindowFind("SUPER_TREND 2-MPTF"), 0, 0);
ObjectSetText("SST1",Pair1,14, "Arial Bold", White);
ObjectSet("SST1", OBJPROP_CORNER, 0);
ObjectSet("SST1", OBJPROP_XDISTANCE, 10);
ObjectSet("SST1", OBJPROP_YDISTANCE, 14);}
//----
//----
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
---