编写要求:
请写一个选股公式,要求当日为黄色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),LOW,HIGH,0,0),COLORRED;
STICKLINE(CLOSE>=MA(CLOSE,13),CLOSE,OPEN,3,0),COLORRED;
STICKLINE(CLOSEMA(CLOSE,3) AND CLOSE=15,OPEN,CLOSE,3,0),COLORYELLOW;
STICKLINE(CLOSE>MA(CLOSE,3) AND CLOSE=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(CLOSEMA(CLOSE,3) AND CLOSE=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));
?