变色的指标线能调用进EA进行识别吗
这个指标就是变色,但是如何识别变色的代码啊?判断数据大小不实用,得看变色,大神指点下
//-------ANG3110@latchess.com-------
//****************************************
#property indicator_separate_window
#property indicator_buffers 1
#property indicator_color2 DodgerBlue
#property indicator_color3 SandyBrown
#property indicator_width2 2
#property indicator_width3 2
#property indicator_style4 2
#property indicator_style5 2
//=====================================
extern int p=14;
//=====================================
double ADX[],ADXL[],DI[],levh[],levl[];
double dh,dl,tr,H,L,num1,num2,num3,dhk,dlk,div;
double zdh,zdhp,zdl,zdlp,zdx,zdxp,zdhl,si;
double temp,ki;
int fs,fss,ti;
//*********************************************************
int init()
{
IndicatorShortName("ADXK "+"("+p+")");
//--------------------
SetIndexBuffer(0,DI);
SetIndexBuffer(1,ADX);
SetIndexBuffer(2,ADXL); SetIndexEmptyValue(2,0.0);
SetIndexBuffer(3,levh);
//--------------------
return(0);
}
//*********************************************************
int start()
{
int cbi,IC=Bars-IndicatorCounted()-1;
if (IC=0; i--)
{
if (ti!=Time[i]) {zdhp=zdh; zdlp=zdl; zdxp=zdx; ti=Time[i];}
H=High[i]; L=Low[i];
dh=H-High[i+1];
dl=Low[i+1]-L;
if(dhzdl) fs=1;
if (zdhADX[i+1]) fss=1;
if (ADX[i]纯文本查看 复制代码
//****************************************************************** |