Indicators Used
0
Views
0
Downloads
0
Favorites
Ichi_KUMO_TC_sw
//+------------------------------------------------------------------+
//| KUMO Tenkan Price (ChikoShift) MACD.mq4 |
//+------------------------------------------------------------------+
//2008forextsd
#property copyright "Copyright © 2006, MetaQuotes Software Corp."
#property link "http://www.metaquotes.net"
#property indicator_separate_window
#property indicator_buffers 3
#property indicator_color1 RoyalBlue
#property indicator_color2 Maroon
#property indicator_color3 Green
extern int Tenkan=9;
extern int Kijun=26;
extern int Senkou=52;
extern int KumoShift=0;
extern string note = "IchimokuKumoShift=Kijun";
double ExtMapBuffer1[];
double ExtMapBuffer2[];
double ExtMapBuffer3[];
//+------
int init()
{
SetIndexBuffer (0,ExtMapBuffer1);
SetIndexStyle (0,DRAW_HISTOGRAM);
SetIndexDrawBegin (0,Senkou);
SetIndexShift (0,KumoShift);
SetIndexBuffer (1,ExtMapBuffer2);
SetIndexStyle (1,DRAW_LINE);
SetIndexDrawBegin (1,Senkou);
SetIndexBuffer (2,ExtMapBuffer3);
SetIndexStyle (2,DRAW_LINE);
SetIndexDrawBegin (2,Senkou);
SetIndexLabel(0,"Kumo");
SetIndexLabel(1,"Tenkan");
SetIndexLabel(2,"PriceChk");
IndicatorShortName("Ichi KUMO TC ("+Tenkan+","+Kijun+","+Senkou+"),"+KumoShift+": ");
return(0);
}
//+----------
int start()
{
int i,limit,counted_bars=IndicatorCounted();
if(counted_bars<0) return(-1);
if(counted_bars>0) counted_bars--;
limit=Bars-counted_bars;
for (i=limit; i>=0; i--)
{
ExtMapBuffer1[i] = iIchimoku(NULL, 0, Tenkan, Kijun, Senkou, MODE_SENKOUSPANA, i-Kijun)-
iIchimoku(NULL, 0, Tenkan, Kijun, Senkou, MODE_SENKOUSPANB, i-Kijun);
ExtMapBuffer2[i] = iIchimoku(NULL, 0, Tenkan, Kijun, Senkou, MODE_TENKANSEN, i)-
iIchimoku(NULL, 0, Tenkan, Kijun, Senkou, MODE_SENKOUSPANB, i-Kijun);
ExtMapBuffer3[i] = iIchimoku(NULL, 0, Tenkan, Kijun, Senkou, MODE_CHINKOUSPAN, i+Kijun)-
iIchimoku(NULL, 0, Tenkan, Kijun, Senkou, MODE_SENKOUSPANB, i-Kijun);
}
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
---