九毛八公式指标
麻烦大师把这个转折指标安要求注上箭头 当5日线走平向下死叉转折线放一个绿色键 当5日线走平向上金叉转折线放一个红色键 如图 指标原码:MA5:MA(C,5);A7:=C-REF(C,1); A8:=100*EMA(EMA(A7,6),6)/EMA(EMA(ABS(A7),6),6); 买:=LLV(A8,2)=LLV(A8,7) AND COUNT(A8<0,2) AND CROSS(A8,MA(A8,2));STICKLINE(买,OPEN,CLOSE,2,0),COLORYELLOW; XCLOSE:=EMA((OPEN+HIGH+LOW+CLOSE)/4,3); XOPEN:=EMA((REF(OPEN,1)+REF(XCLOSE,1))/2,3); TEMPG:=MAX(HIGH,XOPEN); XHIGH:=EMA(MAX(TEMPG,XCLOSE),3); TEMP:=MIN(LOW,XOPEN); XLOW:=EMA(MIN(TEMP,XCLOSE),3); O1:=IF(XOPEN公式模块:
MA5:MA(C,5);A7:=C-REF(C,1);
A8:=100*EMA(EMA(A7,6),6)/EMA(EMA(ABS(A7),6),6); 买:=LLV(A8,2)=LLV(A8,7) AND COUNT(A8<0,2) AND crOSS(A8,MA(A8,2));STICKLINE(买,OPEN,CLOSE,2,0),COLORYELLOW; XCLOSE:=EMA((OPEN+HIGH+LOW+CLOSE)/4,3); XOPEN:=EMA((REF(OPEN,1)+REF(XCLOSE,1))/2,3); TEMPG:=MAX(HIGH,XOPEN); XHIGH:=EMA(MAX(TEMPG,XCLOSE),3); TEMP:=MIN(LOW,XOPEN); XLOW:=EMA(MIN(TEMP,XCLOSE),3); O1:=IF(XOPEN<XCLOSE,XOPEN,XCLOSE); C1:=IF(XOPEN<XCLOSE,XCLOSE,XOPEN); HH:=(6*H+5*REF(H,1)+4*REF(H,2)+3*REF(H,3)+2*REF(H,4)+REF(H,5))/21; LL:=(6*L+5*REF(L,1)+4*REF(L,2)+3*REF(L,3)+2*REF(L,4)+REF(L,5))/21; {TDX没有WMA函数,上面的写法代替} {A1:=IF(C>REF(EXPMEMA(H,6),1),1,0); A2:=IF(C<REF(EXPMEMA(L,6),1),-1,0);} A1:=IF(C>REF(HH,1),1,0); A2:=IF(C<REF(LL,1),-1,0); A3:=A1+A2; A4:=IF(A3=0,REF(A3,BArslAST(NOT(A3=0))),A3); 转折线:IF(A4=-1,MA(HIGH,6),MA(LOW,6))LINETHICK2,COLORFFFFFF; DRAWICON(MA5<=REF(MA5,1) AND CROSS(转折线,MA5),MA5,2); DRAWICON(MA5>=REF(MA5,1) AND CROSS(MA5,转折线),MA5,1);