(主图解盘)指标写个黄色K线选股公式
2019/12/16 18:03:56
公式编写说明:
请写一个选股公式,要求当日为黄色K线; 谢谢大家~! AAA:=CONST(HHV(H,90));BBB:=CONST(LLV(L,30))-0.5;MA5:=MA(CLOSE,5);MA13:=MA(CLOSE,13);MA75:=MA(CLOSE,75);预:=CLOSE>MA(CLOSE,13);升:=CLOSE>MA(CLOSE,5) AND CLOSE<MA(CLOSE,13);STICKLINE(CLOSE>=MA(CLOSE,13),LOW,HIGH,0,0),COLORRED; STICKLINE(CLOSE>=MA(CLOSE,13),CLOSE,OPEN,3,0),COLORRED; STICKLINE(CLOSE<MA(CLOSE,13),CLOSE,OPEN,3,0),COLOR00FF00; STICKLINE(CLOSE<MA(CLOSE,13),LOW,HIGH,0,0),COLOR00FF00; STICKLINE(CROSS(CLOSE,MA(CLOSE,13)),OPEN,(C+O)/2,3,0),COLORYELLOW;STICKLINE(CROSS(MA13,C),OPEN,CLOSE,3,0),COLORFFFF00;STICKLINE(CLOSE>MA(CLOSE,3) AND CLOSE<MA(CLOSE,13) AND COUNT(C<MA13,20)>=15,OPEN,CLOSE,3,0),COLORYELLOW;STICKLINE(CLOSE>MA(CLOSE,3) AND CLOSE<MA(CLOSE,13) AND COUNT(C<MA13,20)>=15,OPEN,CLOSE,0,0),COLORYELLOW; CCI背:=IF(LLV(CCI,2)>LLV(CCI,7) AND LLV(L,2)<=LLV(L,7) AND HHV(H,10)>MA(CLOSE,60),1,0),COLORWHITE;DRAWICON(CCI背 AND REF(CCI,1)<-150 AND C>O,L*0.98,1);DRAWTEXT(CCI背 AND REF(CCI,1)<-150 AND C>O,L*0.9,'杀'),COLORGREEN;T1:=CONST(IF(CLOSE>=MA(CLOSE,13),1,0));T2:=CONST(IF(CLOSE<MA(CLOSE,13) AND C<MA(CLOSE,5),1,0));T3{长十字}:=CONST(IF(C<MA75,1,0));T4:=CONST(IF(CROSS(CLOSE,MA(CLOSE,13)),1,0));T5:=CONST(IF(CROSS(MA(CLOSE,13),CLOSE),1,0));T6:=CONST(IF((CLOSE>MA(CLOSE,3) AND CLOSE<MA(CLOSE,13) AND COUNT(C<MA13,20)>=15),1,0));T7:=CONST(IF(C>=MA75,1,0));TS1:=IF(T1=1,0+0.03,0);TS2:=IF(T2=1,TS1+0.035,TS1);TS3:=IF(T3=1,TS2+0.035,TS2);TS4:=IF(T4=1,TS3+0.035,TS3);TS5:=IF(T5=1,TS3+0.035,TS4);TS6:=IF(T6=1,TS3+0.035,TS5);TS7:=IF(T7=1,TS3+0.035,TS6);DRAWTEXT(T1=1 AND CURRBARSCOUNT=58,BBB-(BBB*TS1),'短线上升持股‖'),COLORGREEN ;DRAWTEXT(T2=1 AND CURRBARSCOUNT=58,BBB-(BBB*TS2),'短线下降持币‖'),COLORGREEN ;DRAWTEXT(T3=1 AND CURRBARSCOUNT=58,BBB-(BBB*TS3),'长线下降持币'),COLORGREEN ;DRAWTEXT(T4=1 AND CURRBARSCOUNT=58,BBB-(BBB*TS4),'加买点信号'),COLORGREEN ;DRAWTEXT(T5=1 AND CURRBARSCOUNT=58,BBB-(BBB*TS5),'下降短线卖出信号‖'),COLORGREEN ;DRAWTEXT(T6=1 AND CURRBARSCOUNT=58,BBB-(BBB*TS6),'低买持股信号‖'),COLORGREEN ;DRAWTEXT(T7=1 AND CURRBARSCOUNT=58,BBB-(BBB*TS7),'长线上升持股信号'),COLORGREEN ;
公式源码示例:
CROSS(CLOSE,MA(CLOSE,13));
看股吧 公式 www.kanguba.c om
其它股票公式列表