通达信【济安线战法】洞悉股票走势 形成交易策略 主图公式 源码

N:=10;
涨停:=IF((C-REF(C,1))*100/REF(C,1)>=9.80,1,0);
涨停龙:=EVERY(涨停,2);
DRAWTEXT(涨停龙,L*1.02,'龙再现'),COLORYELLOW;
STICKLINE(涨停龙,OPEN,CLOSE,1,0),COLORYELLOW;
次新:=(BARSCOUNT(C)+1)<120;
MA30:=MA(C,30);
MA60:=MA(C,60);
MA120:=MA(C,120);
WYYM1:=(MAX(C,O)-MIN(C,O))/MIN(C,O)*100;
WYYM2:=(H-MAX(C,O))/MAX(C,O)*100;
WYYM3:=MA(REF(LLV(C,30),1),2);
WYYM4:=MA(REF(HHV(C,30),1),2);
WYYM5:=MAX(MA30,MAX(MA60,MA120));
WYYM6:=MIN(MA30,MIN(MA60,MA120));
WYYM71:=(CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2));
WYYM72:=CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2);
WYYM73:=REF(WYYM72,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
WYYM74:=REF(WYYM72 OR WYYM73,1) AND WYYM71;
WYYM7:=WYYM74 AND CLOSE>OPEN;
WYYM81:=IF(C>MA(C,4),1,0);
WYYM82:=IF(C<MA(C,4),-1,0);
WYYM83:=IF(MA(C,5)>REF(MA(C,5),1),1,0);
WYYM84:=IF(MA(C,5)<REF(MA(C,5),1),-1,0);
WYYM85:=WYYM81+WYYM82+WYYM83+WYYM84;
WYYM8:=WYYM85=2 AND C<O;
WYYM91:= EMA((CLOSE*2+HIGH+LOW)/4,13)-EMA((CLOSE*2+HIGH+LOW)/4,73);
WYYM92:=(CROSS(WYYM91,EMA(WYYM91,2)) AND WYYM91<=0.05 AND (C/REF(C,1)>0.035));
WYYM9:=WYYM92 AND NOT(WYYM8);
WYYM10:=(C<WYYM6 OR (C<WYYM6*1.01 AND 次新)) AND C<WYYM4 AND WYYM6<WYYM4 AND WYYM6<=REF(WYYM6,1);
WYYM11:=WYYM1>3.9 AND WYYM1<8 AND C>OPEN AND WYYM2<1 AND WYYM9=0 AND REF(MAX(C,OPEN),1)>C AND WYYM9=0 AND REF(WYYM7=0,2) AND (REF(WYYM9=0 AND WYYM7=0,1) OR REF(MAX(C,O),1)>C);
XG:=WYYM11 AND WYYM3=REF(WYYM3,1) AND WYYM10;
DRAWTEXT(XG,L*0.97,'↖阳穿地底'),LINETHICK1,COLORBROWN;
现价线:=4*SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,5,1)-3*SMA(SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,5,1),3.2,1),COLORFF00FF,LINETHICK2;
确认线:=4*SMA((CLOSE-LLV(LOW,10))/(HHV(HIGH,10)-LLV(LOW,10))*100,5,1)-3*SMA(SMA((CLOSE-LLV(LOW,10))/(HHV(HIGH,10)-LLV(LOW,10))*100,5,1),3.2,1),COLORGREEN,LINETHICK2;
短底:=12,COLORBLUE,LINETHICK2;
穿越线:=CROSS(现价线,短底);
预警线:=IF(现价线<=10,30,0),COLORFFCC00,LINETHICK1;
穿值:=FINANCE(7)<500000000;
先锋:=IF(CROSS(现价线,短底),50,0),COLORRED,LINETHICK2;
穿值先锋:=先锋 AND 穿值;
DRAWICON(穿值先锋, LOW, 1);
AA:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,N))/MA(CLOSE,N);
济安线:DMA((2*CLOSE+LOW+HIGH)/4,AA),LINETHICK3,COLORMAGENTA;
CC:=(CLOSE/济安线);
MA1:=MA(CC*(2*CLOSE+HIGH+LOW)/4,3);
MAAA:=((MA1-济安线)/济安线)/3;
TMP:=MA1-MAAA*MA1;
J:IF(TMP<=济安线,济安线,DRAWNULL),LINETHICK3,COLORCYAN;
A:TMP,LINETHICK2,COLORBROWN;
X:IF(TMP<=济安线,TMP,DRAWNULL),LINETHICK2,COLORGREEN;
WYZB0:=CROSS(TMP,济安线);
DIFF := EMA(CLOSE,12) - EMA(CLOSE,26);
DEA := EMA(DIFF,9);
MACD := 2*(DIFF-DEA);
LC := REF(CLOSE,1);
RSI := SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
MID := MA(CLOSE,20);
TMP2 := STD(CLOSE,20);
TOP := MID + 2*TMP2;
BOTTOM := MID - 2*TMP2;
VR := SUM(VOL,N)/REF(SUM(VOL,N),1);
WYZB1 := WYZB0;
WYZB2 := MACD > 0;
WYZB3 := RSI > 50;
WYZB4 := CLOSE > BOTTOM AND CLOSE < TOP;
WYZB5 := VR > 1;
济安线战法:= WYZB1 AND WYZB2 AND WYZB3 AND WYZB4 AND WYZB5;
DRAWICON(济安线战法, LOW, 38);
DRAWTEXT(济安线战法,L*0.97,'↖济安线买点'),LINETHICK1,COLORYELLOW;


未来函数检测结果如下:
该公式包含未来函数:FINANCE
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式

联系我们  |  股票指标网  |  指标网   |  指标公式  |   加入收藏   |  设为主页

@2005-2023 粤ICP备2023063687号-2 股票指标网别名指标网仅为互联网文章,所有股票指标公式及文章仅供学习研究,并不构成投资建议,请勿以此为依据进行股票交易,由此引起的投资亏损与本站无关。股票指标网均来源互联网收集整理,如不慎侵犯了你的权益,请联系我们告知,我们将做删除处理
QQ:88652583 微信 88652583
sitemap站点地图