持仓多空界线 买卖简洁清晰【指标公式】(含选股)
第一部分 副图公式 手机/电脑N:=11;M:=36;
持仓线:MA(CLOSE,N),COLORMAGENTA,LINETHICK1;
多空线:MA(CLOSE,M),COLORGREEN,LINETHICK1;
界:=CROSS(CLOSE,MA(CLOSE,36)) AND MA(CLOSE,11)(REF(LOW,1)+REF(HIGH,1))/2 OR(LOW多空线 AND CROSS(持仓线,多空线) AND CLOSE>(REF(LOW,1)+REF(HIGH,1))/2),COLORRED,NODRAW;
ZT:=C>=1.096*REF(C,1),NODRAW;
STICKLINE(ZT,O,REF(C,1)*1.1,1,0),COLORYELLOW;
MA11:=MA(CLOSE,11);
破:=CROSS(MA11,CLOSE);
STICKLINE(界,OPEN,CLOSE,2,0),COLORRED;
STICKLINE(界,OPEN,H,0.0,0),COLORRED;
STICKLINE(界,C,L,0.0,0),COLORRED;
STICKLINE(破,OPEN,CLOSE,2,0),COLORGREEN;
STICKLINE(破,C,H,0.0,0),COLORGREEN;
STICKLINE(破,O,L,0.0,0),COLORGREEN;
CAIH1:=30;
CAIH2:=60;
CAIH3:=(CLOSE-LLV(LOW,CAIH1))/(HHV(HIGH,CAIH1)-LLV(LOW,CAIH1))*100;
CAIH4:=SMA(CAIH3,5,1);
CAIH5:=SMA(CAIH4,3,1);
CAIH6:=3*CAIH4-2*CAIH5;
CAIH16:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
CAIH17:=SMA(CAIH16,13,8);
多:=CEILING(SMA(CAIH17,13,8)),COLORYELLOW,LINETHICK1;
DRAWICON(FILTER(CAIH685,5),H*1.01,2);
买:=IF(CROSS(3*SMA((CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100,5,1),3,1),10),70,0),COLORRED,LINETHICK2;
DRAWICON(买>0,L,7);
第二部分 选股公式
{选股公式:B图标}
CAIH1:=30;
CAIH2:=60;
CAIH3:=(CLOSE-LLV(LOW,CAIH1))/(HHV(HIGH,CAIH1)-LLV(LOW,CAIH1))*100;
CAIH4:=SMA(CAIH3,5,1);
CAIH5:=SMA(CAIH4,3,1);
CAIH6:=3*CAIH4-2*CAIH5;
买:=IF(CROSS(3*SMA((CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100,5,1),3,1),10),70,0),COLORRED,LINETHICK2;
B图标:买>0;
{卖出公式:绿箭头图标}
CAIH1:=30;
CAIH2:=60;
CAIH3:=(CLOSE-LLV(LOW,CAIH1))/(HHV(HIGH,CAIH1)-LLV(LOW,CAIH1))*100;
CAIH4:=SMA(CAIH3,5,1);
CAIH5:=SMA(CAIH4,3,1);
CAIH6:=3*CAIH4-2*CAIH5;
CAIH16:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
CAIH17:=SMA(CAIH16,13,8);
多:=CEILING(SMA(CAIH17,13,8)),COLORYELLOW,LINETHICK1;
绿箭头图标:FILTER(CAIH685,5);
感谢感谢!楼主功德无量,哈哈!
页:
[1]