通達(dá)信——牛股啟動(dòng)潛伏分析指標(biāo)公式 源碼: 牛股啟動(dòng):MA(C,3),COLORWHITE; 牛股潛伏:MA(C,5),COLORGREEN; 牛股指標(biāo)公式:MA(C,10),COLORRED; 通達(dá)信牛股:MA(C,20),COLORBLUE; 牛股啟動(dòng)0:MA(C,30),COLORYELLOW; gdfd1:=EMA(C,3); gdfd2:=EMA(C,5); gdfd3:=EMA(C,10); gdfd4:=EMA(C,20); gdfd5:=EMA(C,30); gdfd6:=(gdfd2+gdfd3+gdfd4+gdfd5)/4; gdfd7:=(gdfd6-REF(gdfd6,15))/REF(gdfd6,15)*100; gdfd8:=(gdfd6-REF(gdfd6,15))/REF(gdfd6, 15)*100; gdfd9:=EMA(gdfd7,8); STICKLINE(gdfd7<1*REF(gdfd7,1),H,L,0.5,0),COLORBLUE;STICKLINE(gdfd7<1*REF(gdfd7,1),O,C,8, 0),COLORBLUE; STICKLINE(gdfd7>1*REF(gdfd7,1),H,L,0.5,0),COLORRED;STICKLINE(gdfd7>1*REF(gdfd7,1),O,C,8, 0),COLORRED; STICKLINE(gdfd7<1*REF(gdfd7,1) AND gdfd9>1*REF(gdfd9,1),H,L,0.5,0),COLORGREEN;STICKLINE(gdfd7<1*REF(gdfd7,1) AND gdfd9>1*REF(gdfd9,1),O,C,8, 0),COLORGREEN; eert1:=((C-REF(MA(C,6),1))/6+MA(C,6))*1.004; eert2:=CROSS(C,eert1) AND eert1>REF(eert1,1); STICKLINE(eert2,H,L,0.5,1),COLORWHITE,LINETHICK2;STICKLINE(eert2,O,C,8,0),COLORWHITE,LINETHICK2; eert3:=((C-REF(MA(C,18),1))/18+MA(C,18))*1.004; eert6:=CROSS(C,eert3) AND eert3>REF(eert3,1); STICKLINE(eert6,H,L,0.5,1),COLORYELLOW,LINETHICK2;STICKLINE(eert6,O,C,8,0),COLORYELLOW,LINETHICK2; |
|