Miscellaneous
0
Views
0
Downloads
0
Favorites
###Gann_HiLo_Activator_v2###1_MTF
//+------------------------------------------------------------------+
//| MTF_###Gann_HiLo_Activator_v2###.mq4
//| MTF by Zathar, mod c codobro
//+------------------------------------------------------------------+
//mod 4 HiLo Activator.mq4 kbpauk.ru
#property indicator_chart_window
#property indicator_buffers 3
#property indicator_color1 Blue
#property indicator_color2 Red
#property indicator_color3 Navy
#property indicator_width1 2
#property indicator_width2 2
#property indicator_width3 2
extern int TimeFrame=0;
extern int R=10; // default value for auslanco system
extern bool dots=false;
extern bool line=true;
double ExtMapBuffer1[];
double ExtMapBuffer2[];
double ExtMapBuffer3[];
int init()
{
//---- indicator line
if(dots)
{
SetIndexStyle(0,DRAW_ARROW);
SetIndexStyle(1,DRAW_ARROW);
SetIndexArrow(0, 0x9F);
SetIndexArrow(1, 0x9F);
SetIndexBuffer(0,ExtMapBuffer1);
SetIndexBuffer(1,ExtMapBuffer2);
SetIndexEmptyValue(0,0);
SetIndexEmptyValue(1,0);
}
if(line)
{
SetIndexStyle(2,DRAW_LINE,EMPTY);
SetIndexBuffer(2,ExtMapBuffer3);
SetIndexEmptyValue(2,0);
}
IndicatorShortName("MTF_###Gann_HiLo_Activator_v2###");
SetIndexLabel(0,"MTF_Gann_HiLo Hi");
SetIndexLabel(1,"MTF_Gann_HiLo Lo");
SetIndexLabel(2,"MTF_Gann_HiLo Line");
}
//----
return(0);
int start()
{
datetime TimeArray[];
int i,shift,limit,y=0,counted_bars=IndicatorCounted();
ArrayCopySeries(TimeArray,MODE_TIME,Symbol(),TimeFrame);
limit=Bars-counted_bars+TimeFrame/Period();
for(i=0,y=0;i<limit;i++)
{
if (Time[i]<TimeArray[y]) y++;
ExtMapBuffer1[i]=iCustom(NULL,TimeFrame,"###Gann_HiLo_Activator_v2###1",R,dots,line,0,y);
ExtMapBuffer2[i]=iCustom(NULL,TimeFrame,"###Gann_HiLo_Activator_v2###1",R,dots,line,1,y);
ExtMapBuffer3[i]=iCustom(NULL,TimeFrame,"###Gann_HiLo_Activator_v2###1",R,dots,line,2,y);
}
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
---