分享一个通达信主图指标公式(上出下买)
- 生活百科
- 2024-05-09
- 81
这个是通达信主图指标,手机已测试通过,电脑大家自己试试
N:=17;{参数:N:5,30,17,M:5,30,18}
M:=18;
红K波段升势持股:0,,;
绿顶冲高减仓:0,,;
蓝K波段跌势卖出:0,,;
上轨不过减仓:0,,;
下轨超跌反弹:0,,;
CC:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);
BB:=ABS((CLOSE+2*HIGH+LOW)/4-MA(CLOSE,17))/MA(CLOSE,17);
DD:=DMA(CLOSE,CC);
EE:=DMA(CLOSE,BB);
低吸:=REF((1-3/100)*EE,2);
强弱分界线:=EMA(低吸,7),,;
短支撑:=EMA((LLV((C+L)/2,6)+LLV((C+L)/2,5)
+LLV((C+L)/2,4)+LLV((C+L)/2,3)+LLV((C+L)/2,2)+2*(C+L+H)/3)/7,3),;
波段趋势:=EMA(短支撑,4);
涨幅:=(C-REF(C,1))/REF(C,1)*100;
走平支撑线:=LLV((HIGH+2*LOW+OPEN+CLOSE)/5*2.03-H,30)*1.006,,;
穿两线:=((CROSS(C,短支撑) AND CROSS(C,波段趋势)) OR (L波段趋势 AND 短支撑REF(短支撑,1)} AND C>REF(C,1)*1.02 AND (C-O>H-C) AND V>REF(V,1) AND (C>强弱分界线 OR CREF(C,1)*1.07);
(穿两线,L*0.985,'上攻'),;
(穿两线,H,L,0,1),{},;
(穿两线,O,C,4.5,1),{},;
B1:=MA(CLOSE,N)+MA(CLOSE,N)-REF(MA(CLOSE,N),1);
分水岭:IF(MA(CLOSE,N)
IF(分水岭
IF(分水岭>REF(分水岭,1)*0.999,分水岭,),,;
(,分水岭,'[分水岭]'),;
{DDD:=分水岭
IF(DDD,分水岭,),,;}
操作线:=分水岭-(EMA(C,3)-分水岭),,;
{IF((操作线REF(操作线,1) AND C=REF(短线,1),短线,),,;
IF(短线
CC0:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);
DD0:=DMA(CLOSE,CC0);
上轨:(1+8/100)*DD0,,;
{IF(H>上轨,上轨,),,,;}
下轨:(1-8/100)*DD0,,;
S:=(短线>操作线);
{IF(S,分水岭,),,,;}
买入红箭头:=CROSS(分水岭,操作线) AND C-O>H-C AND 涨幅>1;
(买入红箭头,L*0.985,1);{买入红箭头}
白K转折点:=(CROSS(C,分水岭) AND CROSS(C,操作线)) OR (LMA(C,6) AND C>操作线)
OR (L操作线 AND C>分水岭 AND C>MA(C,6)) OR (分水岭>操作线 AND CROSS(C,分水岭) AND CROSS(C,MA(C,6) ));
(白K转折点,OPEN,CLOSE,3.5,0),;
(白K转折点,OPEN,CLOSE,3,0),;
(白K转折点,OPEN,CLOSE,2.2,0),;
(白K转折点,OPEN,CLOSE,1.5,0),;
(白K转折点,OPEN,CLOSE,0.4,0),;
( C>操作线 AND 操作线>REF(操作线,1)*0.99 ,HIGH,LOW,0,1 ),;
( C>操作线 AND 操作线>REF(操作线,1)*0.99,OPEN,CLOSE,3,1 ),;
(C操作线 AND 操作线>REF(操作线,1),HIGH,LOW,0,0 ),;
(C操作线 AND 操作线>REF(操作线,1) ,OPEN,CLOSE,2.8,0 ),;
((C分水岭 AND C分水岭) ;
卖出:=COUNT(CROSS(分水岭,短线),4)>=1 AND CROSS(短线,C) AND CREF(分水岭,1)*0.998 AND 涨幅>2.4 ,L*0.92,'买入'),;
(波段卖出 AND REF(波段卖出,1)=0 OR 卖出 ,H*1.02,'卖出'),;
(段头铡刀,H*1.035,'断头铡刀'),;
洗盘回升:=(REF(段头铡刀,1)>0 AND 涨幅>9) OR (REF(段头铡刀,1)>0 AND C>REF(O,1) AND 涨幅>5);
(洗盘回升,L*0.98,'洗盘回升'),;
(CROSS(短线,C) AND 涨幅分水岭 ,OPEN,CLOSE,3,0 ),;
A2:=(C-REF(C,1))/REF(C,1)*100
A3:=H>MA(C,5)*1.12;
AA:= A2 AND A3;
(AA,H*1.02,'高减'),;
(AA,H,L,0.3,0),;
LC:=REF(CLOSE,1);
RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100);
(CROSS(88,RSI) AND H>分水岭*1.2 AND H>MA(C,5)*1.09 ,(HIGH * 1.035),'高抛'),;
VARE:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;
VAR12:=(HIGH+LOW+CLOSE)/3;
VAR13:=(VAR12-MA(VAR12,14))/(0.015*(VAR12,14));
VAR14:=(VAR12-MA(VAR12,70))/(0.015*(VAR12,70));
VAR15:=IF(VAR13>=150 AND VAR13=150 AND VAR14
VAR16:=IF(VAR13-200 AND VAR14-200,-10,VAR15);
VAR17:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;
VAR18:=100-ABS(VAR17);
VAR19:=IF(VAR18
VAR1A:=IF(VARE>0,VARE,0);
VAR1B:=IF(VAR14>=200 AND VAR13>=150,15,IF( AND VAR19
(VAR1C AND COUNT(VAR1C,30)=1 AND 涨幅
波段:=EMA(EMA((2*L+C)/3,5),12),;
初穿:=CROSS(C,波段*1.015) AND C>操作线2;
A7:=(2*C+H+L)/4;
空头线:=EMA(A7,5);
双穿:=CROSS(C,A7) AND CROSS(C,EMA(空头线,10)) AND C>操作线2;
(双穿 ,L*0.997,'双穿'),;
(初穿 ,L*0.95,'初穿'),;
VAR1:=CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);
VAR2:=REF(VAR1,1) AND CLOSE=REF(CLOSE,2);
VAR3:=REF(VAR2,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE=REF(CLOSE,1) AND CLOSE=REF(CLOSE,1) AND CLOSE=REF(CLOSE,1) AND CLOSE=REF(CLOSE,1) AND CLOSE分水岭*1.02);
(蓝压顶 AND (H*1.05>上轨 OR (H>上轨 AND C
上一篇:当归四逆汤合当归芍药散---方达
发表评论