[MT4指标]Linear Price Bar k线指标
主图指标
Linear Price Bar k线指标
mt4指标类型:趋势指标
是否能用在mt4手机版上:否
mt4指标类型:震荡指标
是否能用在mt4手机版上:否
是否含有未来函数:无
可以用在韬客外汇返佣网的平台上
//+------------------------------------------------------------------+
//| Linear Price Bar.mq4 |
//| Copyright ? 2006, Keris2112 |
//| none |
//+------------------------------------------------------------------+
#property copyright "Copyright ? 2006, Keris2112"
#property link "none"
#property indicator_separate_window
#property indicator_buffers 4
#property indicator_color1 Blue
#property indicator_color2 Red
#property indicator_color3 Blue
#property indicator_color4 Red
//---- buffers
double ExtMapBuffer1;
double ExtMapBuffer2;
double ExtMapBuffer3;
double ExtMapBuffer4;
//+------------------------------------------------------------------+
//| Custom indicator initialization function |
//+------------------------------------------------------------------+
int init()
{
//---- indicators
SetIndexStyle(0,DRAW_HISTOGRAM);
SetIndexBuffer(0,ExtMapBuffer1);
SetIndexStyle(1,DRAW_HISTOGRAM);
SetIndexBuffer(1,ExtMapBuffer2);
SetIndexStyle(2,DRAW_HISTOGRAM,EMPTY,3);
SetIndexBuffer(2,ExtMapBuffer3);
SetIndexStyle(3,DRAW_HISTOGRAM,EMPTY,3);
SetIndexBuffer(3,ExtMapBuffer4);
//----
return(0);
}
//+------------------------------------------------------------------+
//| Custor indicator deinitialization function |
//+------------------------------------------------------------------+
int deinit()
{
//----
//----
return(0);
}
//+------------------------------------------------------------------+
//| Custom indicator iteration function |
//+------------------------------------------------------------------+
int start()
{
int counted_bars=IndicatorCounted();
int i;
int UpDays, DownDays, NeutralDays;
double BarH, BarL, BarC;
//----
for(i=0; i0) UpDays += 1;
else if(BarC<0) DownDays +=1;
else if(BarC==0) NeutralDays +=1;
ExtMapBuffer1 = BarH;
ExtMapBuffer2 = BarL;
// SortBuffer1 = BarH;
// SortBuffer2 = BarL;
if(Close>Open)
{
ExtMapBuffer3 = BarC;
ExtMapBuffer4 = 0;
}
else
{
ExtMapBuffer3 = 0;
ExtMapBuffer4 = BarC;
}
}
//----
return(0);
}
//+------------------------------------------------------------------+Linear%20Price%20Bar.jpg
发表于:2014-09-28 12:57只看该作者
2楼
是否含有未来函数
发表于:2015-05-26 05:12只看该作者
5楼
看看再说
韬客社区www.talkfx.co
发表于:2016-09-19 18:15只看该作者
6楼
谢谢分享
韬客社区www.talkfx.co
发表于:2017-08-08 09:05只看该作者
7楼
通宝通宝
韬客社区www.talkfx.co