指标源码:
AA:=(3*C+L+O+H)/6; XX:=(20*AA+19*REF(AA,1)+18*REF(AA,2)+17*REF(AA,3)+16*REF(AA,4)+15*REF(AA,5)+14*REF(AA,6)+13*REF(AA,7)+12*REF(AA,8)+11*REF(AA,9)+10*REF(AA,10)+9*REF(AA,11)+8*REF(AA,12)+7*REF(AA,13)+6*REF(AA,14)+5*REF(AA,15)+4*REF(AA,16)+3*REF(AA,17)+2*REF(AA,18)+REF(AA,20))/210; AS2:=SMA(C,3,1); AS6:=SMA(C,5,1); DK:=2*(AS2-AS6); 庄成本:EMA(XX,13),COLORFF00FF,LINETHICK0; 短支撑LV(HIGH,30),LINETHICK2,COLORFFCC00; IF(MA(C,3),MA(C,3),DRAWNULL),COLORYELLOW,LINETHICK2; IF(MA(C,9),MA(C,9),DRAWNULL),COLORMAGENTA,LINETHICK2; IF(MA(C,23.5),MA(C,23.5),DRAWNULL),COLORWHITE; DRAWKLINE(HIGH,OPEN,LOW,CLOSE); MAA5:=MA(C,5); MAA10:=MA(C,10); MAA30:=MA(C,30); FAA:=BARSLAST(CROSS(MAA10,MAA5)) AND CROSS(MAA5,MAA10); FBB:=FAA AND MAA5>MAA30 AND MAA10>MAA30 AND MAA10>REF(MAA10,1); DRAWTEXT(FBB,L-0.58,'★长红'),COLORRED; VV1:=EMA(CLOSE,5); VV2:=EMA(EMA(CLOSE,90)*1.01,10); DRAWTEXT(CROSS(VV1,VV2),VV1+0.05,'主升浪'),COLOR00FF00; VR1:=LLV(LOW,21); VR2:=HHV(HIGH,21); AK1:=EMA((((CLOSE - VR1) / (VR2 - VR1)) * 100),5); AAK:=EMA((((CLOSE - VR1) / (VR2 - VR1)) * 50),13); AAB:=CROSS(AK1,AAK); DRAWTEXT((AAB = 1),(LOW * 0.99),'试买点'),COLORYELLOW; AAA1:=AMOUNT/V; BBB1:=L<AAA1*0.9; CCC1:=(C-REF(C,1))/REF(C,1)*100>1.2; DDD1:=L<MA(C,5)*0.921; EEE1:=V<MA(V,5)*1.5; 筹码沉积:=BBB1 AND CCC1 AND DDD1 AND EEE1,LINETHICK0,COLOR0099FF; DRAWTEXT(筹码沉积,L*0.99,'筹码沉积'),COLOR0099FF; B3AA:=IF((CLOSE>REF(CLOSE,1)),88,0); B4AA:=IF(((CLOSE)/(REF(CLOSE,1))>1.05) AND ((HIGH)/(CLOSE)<1.01) AND (B3AA>0),91,0); DRAWTEXT(FILTER((B4AA>90),45),(LOW)*(0.93),'★买!'),COLOR00FFFF; DRAWTEXT(FILTER((B4AA>90),35),(LOW)*(0.99000001),'★加仓'),COLOR00FFFF; B1AA:=9; B2AA:=(REF(CLOSE,B1AA+1)<CLOSE); DRAWTEXT(FILTER((B2AA>-0.5),84),(HIGH)*(1.05),'可能变盘'),COLORFFFFFF; VR6:=REF(C,1); VR7:=SMA(MAX(C-VR6,0),6,1)/SMA(ABS(C-VR6),6,1)*100; DRAWTEXT(CROSS(82,VR7),H*1.01,'卖')COLORYELLOW;
|