副图公式 源码支持手机/电脑
牛熊线:MA(CLOSE,5),COLORYELLOW;
STICKLINE(C>=牛熊线 AND C>=O,C,O,3,1),COLORRED;
STICKLINE(C>=牛熊线 AND C>=O,H,L,0,1),COLORRED;
STICKLINE(C>=牛熊线 AND C<O,C,O,3,1),COLORRED;
STICKLINE(C>=牛熊线 AND C<O,O,H,0,1),COLORRED;
STICKLINE(C>=牛熊线 AND C<O,C,L,0,1),COLORRED;
STICKLINE(C<牛熊线 AND C>O,C,O,3,1),COLORFFFF00;
STICKLINE(C<牛熊线 AND C<=O,C,O,3,1),COLORFFFF00;
STICKLINE(C<牛熊线 AND C<=O,H,L,0,1),COLORFFFF00;
STICKLINE(C<牛熊线 AND C>O,C,H,0,1),COLORFFFF00;
STICKLINE(C<牛熊线 AND C>O,O,L,0,1),COLORFFFF00;
M10:MA(CLOSE,10),COLORYELLOW,LINETHICK2;
GUP1:=M10>=REF(M10,1);
GUP2:=CLOSE>M10*1.004;
DRAWICON(GUP1 AND GUP2,M10,1);
GUP3:=M10<=REF(M10,1);
GUP4:=COUNT(CLOSE<=M10*0.996,2)=2;
DRAWICON(GUP3 AND GUP4,M10,2);
GUA1:=REF(LOW,1);
GUA2:=(SMA(ABS(LOW-GUA1),13,1))/(SMA(MAX(LOW-GUA1,0),13,1))*100;
GUA4:=MA(GUA2,13);
GUA5:=LLV(LOW,34);
GUA8:=EMA(IF(LOW<=GUA5,GUA4,0),3);
GUA10:=SMA(SMA((CLOSE-LLV(LOW,54))/(HHV(HIGH,54)-LLV(LOW,54))*100,7,1),5,1);
GUA11:=SMA((CLOSE-LLV(LOW,54))/(HHV(HIGH,54)-LLV(LOW,54))*100,7,1)*16.18-GUA10*10.9;
GUA12:=FILTER(IF(GUA11<=GUA10 AND GUA8>REF(GUA8,1),GUA8*8,0),20);
DRAWTEXT(GUA12,LOW-0.4,'←小心变盘'),COLORFF00FF;
GUB1:=MAX(MAX((HIGH-LOW),ABS(REF(CLOSE,1)-HIGH)),ABS(REF(CLOSE,1)-LOW));
GUB2:=MA(GUB1,22);
止损:HHV(H-3*GUB2,22),COLORBLUE,DOTLINE;
GUB3:=HHV(HIGH,70);
GUB4:=HHV(HIGH,20);
红线:GUB3*0.83,COLORRED;
DRAWTEXT(ISLASTBAR,红线,'红线'),COLORRED;
绿线:GUB4*0.91,COLORGREEN;
DRAWTEXT(ISLASTBAR,绿线,'绿线'),COLORGREEN;
DRAWTEXT(CROSS(绿线,止损),L*0.99,'买'),COLORYELLOW;
选股公式源码
{选股公式一:买}
GUA1:=REF(LOW,1);
GUA2:=(SMA(ABS(LOW-GUA1),13,1))/(SMA(MAX(LOW-GUA1,0),13,1))*100;
GUB1:=MAX(MAX((HIGH-LOW),ABS(REF(CLOSE,1)-HIGH)),ABS(REF(CLOSE,1)-LOW));
GUB2:=MA(GUB1,22);
止损:=HHV(H-3*GUB2,22),COLORBLUE;
GUB3:=HHV(HIGH,70);
GUB4:=HHV(HIGH,20);
红线:=GUB3*0.83,COLORRED;
绿线:=GUB4*0.91,COLORGREEN;
买:CROSS(绿线,止损);
{选股公式二:小心变盘}
GUA1:=REF(LOW,1);
GUA2:=(SMA(ABS(LOW-GUA1),13,1))/(SMA(MAX(LOW-GUA1,0),13,1))*100;
GUA4:=MA(GUA2,13);
GUA5:=LLV(LOW,34);
GUA8:=EMA(IF(LOW<=GUA5,GUA4,0),3);
GUA10:=SMA(SMA((CLOSE-LLV(LOW,54))/(HHV(HIGH,54)-LLV(LOW,54))*100,7,1),5,1);
GUA11:=SMA((CLOSE-LLV(LOW,54))/(HHV(HIGH,54)-LLV(LOW,54))*100,7,1)*16.18-GUA10*10.9;
GUA12:=FILTER(IF(GUA11<=GUA10 AND GUA8>REF(GUA8,1),GUA8*8,0),20);
小心变盘:GUA12;
|