以下是飞狐地心引力线主图指标公式源码和使用说明
飞狐地心引力线主图指标公式源码:
地心引力线:(MA(C,30)+MA(C,72))/2;
地心引力区1:地心引力线*0.9;
地心引力区2:地心引力线*1.1;
stICKLINE(CLOSE OPEN,CLOSE,OPEN,8,1),COLORgray;
STICKLINE(CLOSE OPEN,HIGH,CLOSE,0,0),COLORgray;
STICKLINE(CLOSE OPEN,LOW,OPEN,0,0),COLORgray;
STICKLINE(CLOSE OPEN,CLOSE,OPEN,8,0),COLORgray;
STICKLINE(CLOSE OPEN,HIGH,LOW,0,0),COLORgray;
STICKLINE(CLOSE==OPEN,CLOSE,OPEN,8,0),COLORgray;
STICKLINE(CLOSE==OPEN,HIGH,LOW,0,0),COLORgray;
LONG_N:=120;
SHORT_N:=30;
LONG:=100*(HHV(REF(CLOSE,1),LONG_N)/LLV(REF(CLOSE,1),LONG_N)-1),NODRAW;
SHORT:=100*(HHV(REF(CLOSE,90),SHORT_N)/LLV(REF(CLOSE,90),SHORT_N)-1),NODRAW;
:=HHV(CLOSE,120)==CLOSE,NODRAW;
刀型:=LONG/SHORT 2ANDBETWEEN(LONG,20,40)ANDBETWEEN(SHORT,5,15),NODRAW;
低位:=LLV(CLOSE,60)==LLV(CLOSE,LONG_N),nodraw;
右侧刀:FILTER(突破AND刀型,120)AND低位,NODRAW,COLORred;
绘图:=BacKSET(右侧刀,120),COLORYELLOW;
突破基准:REF(HHV(CLOSE,119),1),nodraw,coloryellow;
stickline(右侧刀,突破基准,突破基准,2500,0),coloryellow;
STICKLINE(绘图ANDCLOSE OPEN,CLOSE,OPEN,8,1),COLORYELLOW;
STICKLINE(绘图ANDCLOSE OPEN,HIGH,CLOSE,0,0),COLORYELLOW;
STICKLINE(绘图ANDCLOSE OPEN,LOW,OPEN,0,0),COLORYELLOW;
STICKLINE(绘图ANDCLOSE OPEN,CLOSE,OPEN,8,0),COLORYELLOW;
STICKLINE(绘图ANDCLOSE OPEN,HIGH,LOW,0,0),COLORYELLOW;
STICKLINE(绘图ANDCLOSE==OPEN,CLOSE,OPEN,8,0),COLORYELLOW;
STICKLINE(绘图ANDCLOSE==OPEN,HIGH,LOW,0,0),COLORYELLOW;
STICKLINE(右侧刀,CLOSE,OPEN,8,0),COLORRED;
STICKLINE(右侧刀,HIGH,LOW,0,0),COLORRED;
DRAWICON(右侧刀,LOW,1);
地心引力线:(MA(C,21)+MA(C,72))/2,COLORRED,LINETHICK2;地心引力区1:地心引力线*1.15;地心引力区2:地心引力线*0.9;A:C;TYP:=(HIGH+LOW+CLOSE)/3;CCI:=(TYP-MA(TYP,7))/(0.015*AVEDEV(TYP,7));价:=(((C-REF(C,5))/REF(C,5)*100)-REF(((C-REF(C,5))/REF(C,5)*100),1))/2;DRAWICON((CCI 0AND价 2),L,1);
飞狐地心引力线主图指标公式截图