【股票指标公式下载】-【通达信】震荡波(出击)
【股票指标公式下载】-【通达信】波段之星(拉升力、做空周期、波峰波谷、空头)
【通达信】波段之星(拉升力、做空周期、波峰波谷、空头)-指标公式源码拉升力:=(CLOSE-LLV(LOW,28))/(HHV(HIGH,30)-LLV(LOW,36))*0.6*CLOSE; 拉升力A:=SMA(拉升力,6.3,1);波峰波谷:SMA(拉升力A,3,1),COLORFF00FF;拉升力B:=3*拉升力A-2.1*波峰波谷;空方:=3*波峰波谷-1* 拉升力A;做空:IF(空方>拉升力B,拉升力B,空方),LINETHICK2,COLOR00FF00;做空周期:HHV(做空,21),COLORBLUE,LINETHICK2;多头:IF(做空>=REF(做空,1) ,做空,DRAWNULL),COLORRED,LINETHICK3; DRAWICON(做空>=REF(做空,1) AND REF(做空,1)<REF(做空,2),做空,23);空头:IF(做空<REF(做空,1),做空,DRAWNULL),COLORGREEN,LINETHICK3; {DRAWICON(做空<=REF(做空,1) AND REF(做空,1)>REF(做空,2),做空,19);} 短线:(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*20,LINETHICK0,COLORWHITE;中线:(CLOSE-MA(CLOSE,4))/MA(CLOSE,4)*20,LINETHICK0,COLORYELLOW;红柱:SMA(短线,3,1),LINETHICK0,COLOR0000FF;蓝柱:SMA(中线,3,1),COLORSTICK,COLORFFFF00;{红柱}STICKLINE(红柱<REF(红柱,1)AND 红柱>0,0,红柱,2,0),COLOR888800; STICKLINE(红柱<REF(红柱,1)AND 红柱>0,0,红柱,1.5,0),COLORAAAA00; STICKLINE(红柱<REF(红柱,1)AND 红柱>0,0,红柱,0.8,0),COLORDDDD00; STICKLINE(红柱<REF(红柱,1)AND 红柱>0,0,红柱,0.3,0),COLORFFFF00; STICKLINE(红柱>REF(红柱,1)AND 红柱>0,0,红柱,2,0),COLOR000088; STICKLINE(红柱>REF(红柱,1)AND 红柱>0,0,红柱,1.5,0),COLOR0000AA; STICKLINE(红柱>REF(红柱,1)AND 红柱>0,0,红柱,0.8,0),COLOR0000DD; STICKLINE(红柱>REF(红柱,1)AND 红柱>0,0,红柱,0.3,0),COLOR0000FF; STICKLINE(蓝柱<REF(蓝柱,1) AND 蓝柱>0,0,蓝柱,2,0),COLOR008800; STICKLINE(蓝柱<REF(蓝柱,1) AND 蓝柱>0,0,蓝柱,1,0),COLOR00AA00; STICKLINE(蓝柱<REF(蓝柱,1) AND 蓝柱>0,0,蓝柱,0.8,0),COLOR00DD00; STICKLINE(蓝柱<REF(蓝柱,1) AND 蓝柱>0,0,蓝柱,0.3,0),COLOR00FF00; {蓝柱}STICKLINE(红柱>REF(红柱,1)AND 红柱<0,0,红柱,2,0),COLOR880088; STICKLINE(红柱>REF(红柱,1)AND 红柱<0,0,红柱,1.5,0),COLORAA00AA; STICKLINE(红柱>REF(红柱,1)AND 红柱<0,0,红柱,0.8,0),COLORDD00DD;STICKLINE(红柱>REF(红柱,1)AND 红柱<0,0,红柱,0.3,0),COLORFF00FF; STICKLINE(红柱<REF(红柱,1)AND 红柱<0,0,红柱,2,0),COLOR888800; STICKLINE(红柱<REF(红柱,1)AND 红柱<0,0,红柱,1.5,0),COLORAAAA00; STICKLINE(红柱<REF(红柱,1)AND 红柱<0,0,红柱,0.8,0),COLORDDDD00; STICKLINE(红柱<REF(红柱,1)AND 红柱<0,0,红柱,0.3,0),COLORFFFF00; STICKLINE(蓝柱>REF(蓝柱,1)AND 蓝柱<0,0,蓝柱,2,0),COLOR009999; STICKLINE(蓝柱>REF(蓝柱,1)AND 蓝柱<0,0,蓝柱,1.5,0),COLOR00BBBB; STICKLINE(蓝柱>REF(蓝柱,1)AND 蓝柱<0,0,蓝柱,0.8,0),COLOR00DDDD; STICKLINE(蓝柱>REF(蓝柱,1)AND 蓝柱<0,0,蓝柱,0.3,0),COLOR00FFFF; VAR200:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;VAR300:=SMA(SMA(VAR200,3,1),3,1)/28.57;VAR400:=EMA(VAR300,5);操盘:=3*VAR300-2*VAR400;A1:=CROSS(操盘,VAR300) AND VAR300<2.1 AND C>O;STICKLINE(A1,5,0,4,0),COLOR770077;STICKLINE(A1,5,0,3,0),COLOR990099;STICKLINE(A1,5,0,2,0),COLORBB00BB;STICKLINE(A1,5,0,1,0),COLORDD00DD;STICKLINE(A1,5,0,0.3,0),COLORFF00FF;DRAWTEXT(A1,5.2,'全仓'),COLORRED;CYC13:=0.01*EXPMA(AMOUNT,13)/EXPMA(VOL,13);CYS:(CLOSE-CYC13)/CYC13*100;DRAWTEXT("ZXNH.ZXNH"=1 AND CYS<=-2,CYS,'B'),COLORRED;DRAWTEXT("ZXNH.ZXNH"=1 AND CYS>2,CYS,'S'),COLORGREEN;【通达信】波段之星(拉升力、做空周期、波峰波谷、空头)-指标公式效果图(文档来源:若水财经社区)。
【股票指标公式下载】-【通达信】凤翔MACD(猎豹出击、猎鹰出击)
【通达信】凤翔MACD(猎豹出击、猎鹰出击)-指标公式源码DIFF8 := EMA(CLOSE,25) - EMA(CLOSE,65),POINTDOT,LINETHICK2;DEA8 := EMA(DIFF8,45),POINTDOT,LINETHICK2;MACD8 := 2*(DIFF8-DEA8), COLORSTICK;DRAWBAND(DEA8,RGB(0,24,224),DIFF8,RGB(160,20,30));FIL:=IF(DIFF8<REF(DIFF8,1),DIFF8,DEA8)COLORWHITE;DRAWBAND(FIL,RGB(0,24,224),DIFF8,RGB(200,100,0));DIFF :=EMA(CLOSE,12) - EMA(CLOSE,26),COLORYELLOW,LINETHICK2;DEA := EMA(DIFF,9)COLORGREEN,LINETHICK2;MACD : 2*(DIFF-DEA), COLORSTICK,LINETHICK1;STICKLINE(MACD<REF(MACD,1) AND DIFF>DEA,MACD,0,1,0),COLORRED; STICKLINE(MACD>REF(MACD,1) AND DIFF>DEA,MACD,0,3,0),COLORRED; STICKLINE(MACD>REF(MACD,1) AND DIFF>DEA,MACD,0,1,0),COLORYELLOW; STICKLINE(DIFF>DEA AND MACD<REF(MACD,1) ,MACD,0,3,0),COLORE500DD; STICKLINE(DIFF>DEA AND MACD<REF(MACD,1),MACD,0,1,0),COLORYELLOW; STICKLINE(DIFF<DEA ,MACD,0,8,0),COLOR005B0C;STICKLINE(DIFF<DEA ,MACD,0,1,0),COLOR848284;STICKLINE(DIFF<DEA AND MACD>REF(MACD,1) ,MACD,0,3,0),COLOR7BA600; STICKLINE(DIFF<DEA AND MACD>REF(MACD,1),MACD,0,1,0),COLORDDDDDD; DIFFS : EMA(CLOSE,5) - EMA(CLOSE,12)COLORWHITE,LINETHICK1;DEAS : EMA(DIFFS,4)COLORGREEN,LINETHICK1;MACDS := 2*(DIFFS-DEAS), COLORSTICK,LINETHICK1;DRAWICON(CROSS(DEA8,DIFF8),DEA8,6);DRAWICON(CROSS(DIFF8,DEA8),DEA8,5);DRAWTEXT(CROSS(DIFF,DEA) AND MACD8>0 AND DIFFS>DEAS,DEA,'--卧槽马')COLORDDDDDD;{{猎豹出击}A2:=(CLOSE/REF(CLOSE,1)-1)*100;A3:=AMOUNT/FINANCE(7)/1000;{A2/A3;}A4:=INDEXC/REF(INDEXC,1);DRAWTEXT(A2/A4>9.5,DIFF8,'--猎豹出击82'),COLORYELLOW;{猎鹰出击}出击:=((C-O)/REF(C,1)),COLORMAGENTA;DRAWTEXT(CROSS(出击,0.09) OR 出击>0.09,DEA8,'--猎鹰出击75')COLORYELLOW;【通达信】凤翔MACD(猎豹出击、猎鹰出击)-指标公式效果图(文档来源:若水财经社区)。
通达信震荡副图指标
震荡指标(通达信副图源码)VAR1:=IF(OPEN <= REF(OPEN,1),0,MAX(HIGH-OPEN,OPEN-REF(OPEN,1)));VAR2:=IF(OPEN >= REF(OPEN,1),0,MAX(OPEN-LOW,OPEN-REF(OPEN,1)));VAR3:=SUM(VAR1,5);VAR4:=SUM(VAR2,5);VAR5:=IF(VAR3 > VAR4,(VAR3-VAR4)/VAR3,IF(VAR3=VAR4,0,(VAR3-VAR4)/VAR4)); VAR6:=MA(VAR5,5);VAR8:=IF(OPEN <= REF(OPEN,1),0,MAX(HIGH-OPEN,OPEN-REF(OPEN,1)));VAR9:=IF(OPEN >= REF(OPEN,1),0,MAX(OPEN-LOW,OPEN-REF(OPEN,1))); VARA:=SUM(VAR8,3);VARB:=SUM(VAR9,3);VARC:=IF(VARA > VARB,(VARA-VARB)/VARA,IF(VARA=VARB,0,(VARA-VARB)/VARB)); VARD:=MA(VARC,3);火: BARSLAST(EMA(CLOSE,5) < REF(EMA(CLOSE,5),1)), COLORRED;VARE:=HHV(CLOSE,2);VARF:=BARSLAST(VARE < REF(VARE,2));VAR10:=IF(VARF >= 1,LLV(VARE,VARF),LOW);VAR11:=VAR10+VAR10*VARF*0.5/100;VAR12:=IF(VAR11 < REF(VAR11,1),MA(LOW,3),VAR11);VAR13:=VAR10+VAR10*(VARF-1)*1.618/100;山: COUNT(EMA(CLOSE,5) > REF(EMA(CLOSE,5),1),5);VAR14:=IF(OPEN <= REF(OPEN,1),0,MAX(HIGH-OPEN,OPEN-REF(OPEN,1)));VAR15:=IF(OPEN >= REF(OPEN,1),0,MAX(OPEN-LOW,OPEN-REF(OPEN,1)));VAR16:=SUM(VAR8,3);VAR17:=SUM(VAR9,3);VAR18:=IF(VARA > VARB,(VARA-VARB)/VARA,IF(VARA=VARB,0,(VARA-VARB)/VARB)); VAR19:=MA(VARC,3);RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;买入或持股: STICKLINE(山> 0,火,0,2,0), COLORRED;VAR1A:=IF(OPEN <= REF(OPEN,1),0,MAX(HIGH-OPEN,OPEN-REF(OPEN,1)));VAR1B:=IF(OPEN >= REF(OPEN,1),0,MAX(OPEN-LOW,OPEN-REF(OPEN,1)));VAR1C:=SUM(VAR8,3);VAR1D:=SUM(VAR9,3);VAR1E:=IF(VARA > VARB,(VARA-VARB)/VARA,IF(VARA=VARB,0,(VARA-VARB)/VARB)); VAR1F:=MA(VARC,3);下跌→抛出: STICKLINE(山> 0,火,山,2,1), COLORF0F000;VAR20:=IF(OPEN <= REF(OPEN,1),0,MAX(HIGH-OPEN,OPEN-REF(OPEN,1)));VAR21:=IF(OPEN >= REF(OPEN,1),0,MAX(OPEN-LOW,OPEN-REF(OPEN,1)));VAR22:=SUM(VAR8,3);VAR23:=SUM(VAR9,3);VAR24:=IF(VARA > VARB,(VARA-VARB)/VARA,IF(VARA=VARB,0,(VARA-VARB)/VARB)); VAR25:=MA(VARC,3);观望: STICKLINE(山=0 AND 火=0,0,1,4,1), COLORBLUE;VAR26:=IF(OPEN <= REF(OPEN,1),0,MAX(HIGH-OPEN,OPEN-REF(OPEN,1)));VAR27:=IF(OPEN >= REF(OPEN,1),0,MAX(OPEN-LOW,OPEN-REF(OPEN,1)));VAR28:=SUM(VAR8,3);VAR29:=SUM(VAR9,3);VAR2A:=IF(VARA > VARB,(VARA-VARB)/VARA,IF(VARA=VARB,0,(VARA-VARB)/VARB)); VAR2B:=MA(VARC,3);植被: STICKLINE(山< 火,火,山,1,0), COLOR00FF00;VAR2C:=IF(OPEN <= REF(OPEN,1),0,MAX(HIGH-OPEN,OPEN-REF(OPEN,1)));VAR2D:=IF(OPEN >= REF(OPEN,1),0,MAX(OPEN-LOW,OPEN-REF(OPEN,1)));VAR2E:=SUM(VAR8,3);VAR2F:=SUM(VAR9,3);VAR30:=IF(VARA > VARB,(VARA-VARB)/VARA,IF(VARA=VARB,0,(VARA-VARB)/VARB)); VAR31:=MA(VARC,3);VAR32:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*10;VAR33:=IF(OPEN <= REF(OPEN,1),0,MAX(HIGH-OPEN,OPEN-REF(OPEN,1)));VAR34:=IF(OPEN >= REF(OPEN,1),0,MAX(OPEN-LOW,OPEN-REF(OPEN,1)));VAR35:=SUM(VAR8,3);VAR36:=SUM(VAR9,3);VAR37:=IF(VARA > VARB,(VARA-VARB)/VARA,IF(VARA=VARB,0,(VARA-VARB)/VARB)); VAR38:=MA(VARC,3);STICKLINE(REF(山,1)=0 AND 山> 0,0,-1,2,0), COLORRED;DRAWTEXT(REF(火,3) > 0 AND REF(火,2) > 0 AND REF(火,1) > 0 AND 火=0 AND REF(火,1) > 山,REF(火,1),'调整'),COLORYELLOW ;。
震荡选股指标公式
震荡选股指标公式以下是一个简单的震荡选股指标公式,可以在股票行情软件中使用:1. 选择日线周期下的震荡行情,通常选择连续几天的振幅较小的行情。
2. 在当日行情结束后,计算当日的最高价、最低价和收盘价,并计算出它们的涨幅和跌幅。
3. 选择涨幅大于等于 2% 的股票,或者选择跌幅大于等于 2% 的股票。
这个条件可以根据个人偏好进行调整。
4. 选择最近几个交易日中出现过涨停或跌停的股票,这些股票可能有更强的波动性。
5. 查看股票的基本面和技术分析指标,确保股票具有良好的基本面和技术面支撑,以提高选股的准确性。
公式示例:{振幅选股公式}DaysToRun := 7; // 设置选股周期为 7 个交易日MaxGain := 2; // 设置涨幅最大为 2%MinGain := 0; // 设置跌幅最小为 0%SortDate := Today(); // 获取当前日期SortOrder := "asc"; // 设置排序顺序为升序For i := 1 To DaysToRun // 循环执行选股操作Do BeginTodayPrice := SortPrice(SortDate, SortOrder); // 获取当前日期的股票开盘价YesterdayPrice := TodayPrice - (TodayPrice -SortPrice(SortDate, SortOrder)) * 0.01; // 计算昨日收盘价的涨跌幅Gain := YesterdayPrice - SortPrice(SortDate, SortOrder); // 计算今日涨幅Ifgain > MaxGain Then // 如果今日涨幅大于 2%Select Case gain // 根据涨幅大小进行筛选Case 2Exit For // 退出循环,选择涨幅大于 2% 的股票Case ElseBegin选股结果 := GetStockList().Where(Function(x) x.Gain >= gain).ToList(); // 筛选股票列表If(选股结果.Count > 0) ThenBeginFor Each stock In 选股结果 // 遍历选股结果Beginstock.SortPrice = SortPrice(SortDate, SortOrder); // 更新股票开盘价End;End;选股结果.Clear(); // 清空选股结果End;End;End;End;Next i;End;以上是一个简单的震荡选股指标公式,可以根据实际需要进行修改和完善。
动量震荡通达信指标公式源码
朋友送来一个指标---动量震荡指标,我看了一下,其核心原理就是AO。
选股信号较多(三绿柱---钱袋、碟形---红箭头、双峰---手指三种信号“OR”选股),学员可根据自己的需要删减。
{ DLZD 动量振荡指标TDX}ZF:EMA(EMA(C-REF(C,1),14),3)*11;HL:=(H+L)/2;JXC:MA(HL,5)-MA(HL,34),COLORFFBB00,NODRAW;STICKLINE(JXC>=REF(JXC,1),0,JXC,0,0),COLORRED;STICKLINE(JXC<=REF(JXC,1),0,JXC,0,0),COLORGREEN;TJ1:= REF(C,1)/L>1.05 AND C/L>1.05 AND L<REF(L,1) AND REF(L,1)<REF(L,2);TJ2:=REF(TJ1,4)=1 OR REF(TJ1,5)=1 OR REF(TJ1,6)=1 OR REF(TJ1,7)=1 ORREF(TJ1,8)=1;TJ3:=JXC>REF(JXC,1) AND REF(JXC,1)>REF(JXC,2) AND REF(JXC,2)>REF(JXC,3) AND REF(JXC,3)<REF(JXC,4) AND REF(JXC,4)<REF(JXC,5) AND REF(JXC,5)<REF(JXC,6) AND REF(JXC,6)<REF(JXC,7) AND REF(JXC,7)<REF(JXC,8) AND REF(JXC,8)<0;SLZ:=TJ2 AND TJ3;DRAWICON(SLZ,JXC*0.95,9);{钱袋}DX:=JXC>0 AND JXC>REF(JXC,1) AND REF(JXC,1)<REF(JXC,2) ANDREF(JXC,2)<REF(JXC,3) AND REF(JXC,3)<REF(JXC,4);DRAWICON(DX,JXC,1);{红箭头}BCOUNT:=BARSLAST(JXC>0);BD:=LLV(JXC,BCOUNT);BCOUNTD:=LLVBARS(JXC,BCOUNT);B3:=JXC<0 AND REF(JXC,1)<REF(JXC,2) AND JXC>REF(JXC,1);B31:=COUNT(B3,BCOUNTD);AA:=JXC>REF(JXC,1) AND REF(JXC,1)<REF(JXC,2) AND REF(JXC,2)<REF(JXC,3) AND REF(JXC,3)<REF(JXC,4);SF:=B31>=2 AND B3 AND AA;DRAWICON(SF,JXC*1.06,11);{向上手指}XG:=SLZ OR SF OR DX; {选股时吧“=”去掉};----------------------------------------------------------{DLZD 动量振荡指标XG}HL:=(H+L)/2;JXC:=MA(HL,5)-MA(HL,34);TJ1:=REF(C,1)/L>1.05 AND C/L>1.05 AND L<REF(L,1) AND REF(L,1)<REF(L,2);TJ2:=REF(TJ1,4)=1 OR REF(TJ1,5)=1 OR REF(TJ1,6)=1 OR REF(TJ1,7)=1 ORREF(TJ1,8)=1;TJ3:=JXC>REF(JXC,1) AND REF(JXC,1)>REF(JXC,2) AND REF(JXC,2)>REF(JXC,3) AND REF(JXC,3)<REF(JXC,4) AND REF(JXC,4)<REF(JXC,5) AND REF(JXC,5)<REF(JXC,6) AND REF(JXC,6)<REF(JXC,7) AND REF(JXC,7)<REF(JXC,8) AND REF(JXC,8)<0;SLZ:=TJ2 AND TJ3; {钱袋}DX:=JXC>0 AND JXC>REF(JXC,1) AND REF(JXC,1)<REF(JXC,2) ANDREF(JXC,2)<REF(JXC,3) AND REF(JXC,3)<REF(JXC,4); {红箭头}BCOUNT:=BARSLAST(JXC>0);BD:=LLV(JXC,BCOUNT);BCOUNTD:=LLVBARS(JXC,BCOUNT);B3:=JXC<0 AND REF(JXC,1)<REF(JXC,2) AND JXC>REF(JXC,1);B31:=COUNT(B3,BCOUNTD);AA:=JXC>REF(JXC,1) AND REF(JXC,1)<REF(JXC,2) AND REF(JXC,2)<REF(JXC,3) AND REF(JXC,3)<REF(JXC,4);SF:=B31>=2 AND B3 AND AA; {向上手指}XG:SLZ OR DX OR SF;。
【股票指标公式下载】-【通达信】震荡波(出击)
【通达信】震荡波(出击)-指标公式源码VAR1:=10;VAR2:=11;VAR3:=11;VAR4:=12;VAR5:=12;VAR6:=13;VAR7:=13;VAR8:=14;VAR9:=14;VARA:=15;VARB:=15;VARC:=SMA((CLOSE-LLV(LOW,VAR1))/(HHV(HIGH,VAR1)-LLV(LOW,VAR1))*100,4, 1);VARD:=SMA((CLOSE-LLV(LOW,VAR2))/(HHV(HIGH,VAR2)-LLV(LOW,VAR2))*100,4, 1);VARE:=SMA((CLOSE-LLV(LOW,VAR3))/(HHV(HIGH,VAR3)-LLV(LOW,VAR3))*100,4, 1);VARF:=SMA((CLOSE-LLV(LOW,VAR4))/(HHV(HIGH,VAR4)-LLV(LOW,VAR4))*100,4, 1);VAR10:=SMA((CLOSE-LLV(LOW,VAR5))/(HHV(HIGH,VAR5)-LLV(LOW,VAR5))*100,4 ,1);VAR11:=SMA((CLOSE-LLV(LOW,VAR6))/(HHV(HIGH,VAR6)-LLV(LOW,VAR6))*100,4 ,1);VAR12:=SMA((CLOSE-LLV(LOW,VAR7))/(HHV(HIGH,VAR7)-LLV(LOW,VAR7))*100,4 ,1);VAR13:=SMA((CLOSE-LLV(LOW,VAR8))/(HHV(HIGH,VAR8)-LLV(LOW,VAR8))*100,4 ,1);VAR17:=SMA((CLOSE-LLV(LOW,VARB))/(HHV(HIGH,VARB)-LLV(LOW,VARB))*100,4 ,1);D11:(SMA((VAR17-50)*2,3,1)+SMA((VAR13-50)*2,3,1))/2,LINETHICK2,COLOR00FF00;VAR14:=SMA((CLOSE-LLV(LOW,VAR9))/(HHV(HIGH,VAR9)-LLV(LOW,VAR9))*100,4 ,1);(SMA((VAR14-50)*2,3,1)+SMA((VAR11-50)*2,3,1))/2,LINETHICK2,COLORFFCC3 3;VAR15:=SMA((CLOSE-LLV(LOW,VARA))/(HHV(HIGH,VARA)-LLV(LOW,VARA))*100,4 ,1);VAR16:=SMA((VAR15-50)*2,3,1);D11,COLORSTICK,COLOR888888;X:3*(VAR17-50)*2-2*SMA((VAR17-50)*2,3,1),COLORYELLOW;VAR18:=(HIGH+LOW+CLOSE)/3;VAR19:=(VAR18-MA(VAR18,14))/(0.015*AVEDEV(VAR18,14));VAR1A:=(VAR18-MA(VAR18,70))/(0.015*AVEDEV(VAR18,70));VAR1B:=IF(VAR19>=150 AND VAR19<200 AND VAR1A>=150 AND VAR1A<200,-10,0); VAR1C:=IF(VAR19<=-150 AND VAR19>-200 AND VAR1A<=-150 ANDVAR1A>-200,10,0);VAR1D:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;VAR1E:=100-ABS(VAR1D);IF(BARSCOUNT(CLOSE)<13,100,IF(VAR1E<88 ANDVAR1D>0,85,100)),COLORCCFFCC,;IF(BARSCOUNT(CLOSE)<13,-100,0-IF(VAR1E<92 ANDVAR1D<0,85,100)),COLORF00FF0;IF(BARSCOUNT(CLOSE)<70,120,IF(VAR1A>=200 ANDVAR19>=150,-15,VAR1B)+120),LINETHICK2,COLORCCFF66;出击1:IF(BARSCOUNT(CLOSE)<70,-120,IF(VAR1A<=-200 ANDVAR19<=-150,15,VAR1C)-120),COLORRED,LINETHICK2,;{POLYLINE(C>0,SMA((VARC-50)*2,3,1)),LINETHICK2,COLORFF0033; POLYLINE(C>0,SMA((VARD-50)*2,3,1)),LINETHICK2,COLORFF2233;POLYLINE(C>0,(SMA((VARE-50)*2,3,1)+SMA((VARC-50)*2,3,1))/2),LINETHICK 2,COLORFF4433;POLYLINE(C>0,SMA((VARF-50)*2,3,1)),LINETHICK2,COLORFF6633;POLYLINE(C>0,(SMA((VAR10-50)*2,3,1)+SMA((VARD-50)*2,3,1))/2),LINETHIC K2,COLORFF8833;POLYLINE(C>0,SMA((VAR11-50)*2,3,1)),LINETHICK2,COLORFF9933; POLYLINE(C>0,(SMA((VAR12-50)*2,3,1)+SMA((VARF-50)*2,3,1))/2),LINETHIC K2,COLORFFAA33;POLYLINE(C>0,SMA((VAR13-50)*2,3,1)),LINETHICK2,COLORFFBB33; };【通达信】震荡波(出击)-指标公式效果图(文档来源:若水财经社区)。
动量震荡通达信指标公式源码
动量震荡通达信指标公式源码动量震荡(Momentum Oscillator)是一种常用的技术指标,用于测量价格变动速度的相对强度。
该指标可以帮助投资者判断资产价格的超买和超卖情况,以及价格的趋势反转。
通达信是中国股市常用的交易软件之一,提供了强大的技术指标库。
下面是动量震荡通达信指标的公式源码,包括计算动量的方法和计算动量震荡指标的方法。
1.计算动量的方法:Var1:=(CLOSE-REF(CLOSE,6))/(REF(CLOSE,6))*100;动量通过计算收盘价与6天前的收盘价之间的差值,然后将差值除以6天前的收盘价,最后乘以100来归一化动量。
2.计算动量震荡的方法:Var2:SMA(Var1,6,1);Var3:SMA(Var2,6,1);MOMOSC: Var2-Var3;其中,SMA函数用于计算简单移动平均线。
SMA(Var1,6,1)表示对Var1序列进行6日的简单移动平均。
最后,MOMOSC等于平滑后的动量减去6日平滑动量的平均值。
通过以上两个公式,我们可以得到动量震荡指标的值。
一般来说,当动量震荡指标在正值以上时,代表资产处于超买情况;当动量震荡指标在负值以下时,代表资产处于超卖情况。
当动量震荡指标从正值变为负值时,可能代表价格趋势向下反转;当动量震荡指标从负值变为正值时,可能代表价格趋势向上反转。
以上是动量震荡通达信指标的公式源码。
投资者可以在通达信软件中使用这些源码来添加动量震荡指标到自己的图表中,以辅助他们的投资决策。
需要注意的是,这只是一个示例,不代表完整的动量震荡指标实现逻辑。
实际使用时,还需考虑其他因素,并根据具体市场情况进行参数的调整和优化。
通达信波浪 涨幅、突破、出击)
跌幅:IF(A1Xቤተ መጻሕፍቲ ባይዱ0,(C-休假)/休假*100,DRAWNULL)NODRAW;
♂10%:IF(H>=出击*1.1,出击*1.1,DRAWNULL),COLORRED,POINTDOT;
♂20%:IF(H>=出击*1.2,出击*1.2,DRAWNULL),COLORRED,POINTDOT;
DRAWTEXT(时间窗口6,LOW*0.99,'55');
时间窗口7:=FILTER(IF(HHVBARS(HIGH,89),0,40),89),COLORDDFFDD;
DRAWTEXT(时间窗口7,HIGH*0.99,'89');
时间窗口8:=FILTER(IF(LLVBARS(LOW,89),0,40),89),COLOR0055FF;
♀Ⅲ:IF(L<休假*0.7,休假*0.7,DRAWNULL),COLORGREEN,POINTDOT;
STICKLINE(CROSS(A1X,0),C,O,2,0)COLORYELLOW;
STICKLINE(CROSS(0,A1X),C,O,2,0)COLORGREEN;
STICKLINE(CROSS(A1X,0)OR CROSS(0,A1X),REF(EMA(C,14),1),REF(EMA(C,14),1)*0.998,2,0)COLORWHITE;
DRAWTEXT(时间窗口10,LOW*0.99,'144');
时间窗口11:=FILTER(IF(HHVBARS(HIGH,233),0,60),233),COLORDDFFFF;
通达信【波段出击】副图指标
通达信【波段出击】副图指标通达信【波段出击】副图指标ZEROS:0,NODRAW;RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=3*K-2*D;VARV:=(2*C+H+L)/4;VARU:=LLV(LOW,30);VARA1:=HHV(HIGH,30);B:=EMA((VARV-VARU)/(VARA1-VARU)*100,8);B1:=EMA(B,5);STICKLINE(B-B1>0,B,B1,8,1),COLORRED;STICKLINE(B-B1<0,B,B1,8,1),COLOR00FF00;多:=B-B1>0;空:=B-B1<0;转空:=空 AND REF(多,1);转多:多 AND REF(空,1),NODRAW;转多期:=COUNT(转多,5);PASTDAYS:=5;DRAWICON(转空,MAX(B,B1),'SELL');DRAWTEXT(转空,MAX(B,B1)+25,'卖');LC:=REF(CLOSE,1);RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;低吸:IF(CROSS(RSI,11),70,0),COLORWHITE,POINTDOT;STICKLINE(低吸,MIN(B,B1),0,4,0),COLORWHITE;VAR7:=EMA(AMOUNT/VOL/100,3);VAR8:=EMA(VAR7,88);VAR9:=EMA(VAR7,88)*0.85;VARA:=VAR9*0.87;VARB:=LOW<VARA AND CLOSE>REF(CLOSE,1)*1.02;STICKLINE(FILTER(VARB,6),MIN(B,B1),0,4,0),COLORFF00FF;坚决买进:IF(FILTER(VARB,6),65,0),COLORFF00FF,POINTDOT;VARF:=(2*CLOSE+HIGH+LOW)/4;VA4:=LLV(LOW,34);VA5:=HHV(HIGH,34);VA6:=EMA((VARF-VA4)/(VA5-VA4)*100,6);VA7:=EMA(0.667*REF(VA6,1)+0.333*VA6,4);出击:IF(IF(COUNT(CLOSE<REF(CLOSE,1),8)/8>0.3 AND COUNT(VA6>VA7,3) AND REF(LOW,1)=LLV(LOW,120) AND CLOSE>OPEN,1,0),60,0),COLORYELLOW,POINTDOT;STICKLINE(IF(COUNT(CLOSE<REF(CLOSE,1),8)/8>0.3 AND COUNT(VA6>VA7,3) ANDREF(LOW,1)=LLV(LOW,120) AND CLOSE>OPEN,1,0),MIN(B,B1),0,4,0),COLORFF00FF;A:=(3*CLOSE+LOW+OPEN+HIGH)/6;D1:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF( A,4)+15*REF(A,5)+14*REF(A,6)+13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)+9*R EF(A,11)+8*REF(A,12)+7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*RE F(A,17)+2*REF(A,18)+REF(A,20))/211;D2:=EMA(D1,2);D3:=EMA(D2,2);K1:=EMA(D3,2);波段买入:IF(CROSS(D1,K1) AND 多>0,MIN(B,B1),0),COLOR0099FF,POINTDOT;STICKLINE(波段买入,MIN(B,B1),0,4,0),COLOR0099FF;多方趋势:=7*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1)-3*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1),3,1)-SMA(SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1),3,1),2,1);天线:=78.89;STICKLINE(CROSS(天线,多方趋势),90,95,6,0),COLOR00FF00;STICKLINE(B>0 AND B-B1>=0,79,80,6,0),COLORRED;STICKLINE(B>0 AND B-B1<0,79,80,6,0),COLOR00FF00;STICKLINE(B>0 AND B-B1>=0,49,50,6,0),COLORRED;STICKLINE(B>0 AND B-B1<0,49,50,6,0),COLORFF8899;STICKLINE(B>0 AND B-B1>=0,19,20,6,0),COLORRED;STICKLINE(B>0 AND B-B1<0,19,20,6,0),COLOR00FF00;STICKLINE(B-B1>0,B,B1,8,1),COLORRED;STICKLINE(B-B1<0,B,B1,8,1),COLOR00FF00;地量:DRAWTEXT(CROSS(0.9,1/VOL*1000>0.01 AND J<0),L*1,'地量'),COLOR00FFFF;STICKLINE(地量>0,0,30,2,0),COLOR008888;STICKLINE(地量>0,0,30,1.5,0),COLOR00AAAA;STICKLINE(地量>0,0,30,0.8,0),COLOR00DDDD;STICKLINE(地量>0,0,30,0.3,0),COLOR00FFFF;VARR1:=SMA(MAX(CLOSE-REF(C,1),0),6,1)/SMA(ABS(CLOSE-REF(C,1)),6,1)*100;DRAWICON(CROSS(82,VARR1),10,15);VAR10:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);VAR11:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);VAR12:=VAR10<REF(VAR11,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1);主力进场:VAR12 AND COUNT(VAR12,30)=1,NODRAW;DRAWTEXT(主力进场,MAX(B,B1)+30,'主力进场!');主力进场期:COUNT(主力进场,PASTDAYS),NODRAW;DIFF:=EMA(C,12)-EMA(C,26),COLORWHITE;DEA:=EMA(DIFF,8),COLORFFAA00;MACD:=2*(DIFF-DEA);DIFF上穿0轴:=CROSS(DIFF,0),NODRAW;MACD金叉:=CROSS(DIFF,DEA),NODRAW;MACD金叉期:=COUNT(MACD金叉,PASTDAYS),NODRAW;MACD势增:=MACD>REF(MACD,1);N:=9;M1:=3;M2:=3;KDJ势增:J>REF(J,1),NODRAW;高安全区:=0,COLORRED;安全区:=20,COLORCYAN;风险区:=100,COLORGREEN;KDJ金叉:=CROSS(J,K),NODRAW;KDJ死叉:=CROSS(K,J),NODRAW;KDJ买点:=KDJ金叉 ;KDJ卖点:=KDJ死叉;KDJ买点期:=COUNT(KDJ买点,PASTDAYS),NODRAW;通:=MA(C,21);低吸期:=COUNT(低吸,PASTDAYS);出击期:COUNT(出击,PASTDAYS);坚决买进期:COUNT(坚决买进,PASTDAYS);波段买入期:COUNT(波段买入,PASTDAYS);转多买点:(转多期) AND (KDJ金叉 OR MACD金叉),NODRAW;最佳买点:(多>0) AND (主力进场期OR 出击期 OR 坚决买进期 OR 波段买入期) AND (KDJ金叉 OR MACD金叉),NODRAW;波段买点:((主力进场 OR 出击 OR 坚决买进 OR 波段买入 OR 转多) AND (KDJ势增OR MACD势增)) OR 最佳买点,NODRAW;DRAWTEXT_FIX(C>O,0.02,0.01,0,'公'),COLOR666666;精选公式源码:DRAWNULL,COLORCCCCCC;DRAWTEXT_FIX(C>O,0.03,0.01,0,'众'),COLOR666666;DRAWTEXT_FIX(C>O,0.04,0.01,0,'号'),COLOR666666;DRAWTEXT_FIX(C>O,0.01,0.16,0,'指标公式合集'),COLORMAGENTA;。
分时抓振幅指标通达信指标公式源码
分时抓振幅指标通达信指标公式源码分时抓振幅指标是一种技术指标,用于衡量股票或其他金融资产在短时间内的波动情况。
通达信是国内知名的金融软件,提供了丰富的技术指标库。
本文将通过通达信的指标公式代码,介绍分时抓振幅指标的计算方法。
指标计算公式分时抓振幅指标通达信的计算公式如下:变量A=STD(V,6)/SMMA(V,6),变量B=((C-L)/(H-L)*100)^2.VI:(EMA(A*(1+B)*A*(1-B),24)-1)*100其中,V为成交量,C为收盘价,L为最低价,H为最高价,STD为标准差函数,SMMA为平滑移动平均函数,EMA为指数移动平均函数。
公式解读变量A代表了成交量的标准差除以成交量的平滑移动平均,用于衡量成交量的波动情况。
变量B代表了股价在当日波动的程度,将波动幅度转化为一个0到100的百分数。
VI代表分时抓振幅指标的计算结果,通过对变量A和变量B 进行一系列计算和平滑操作,得到最终的指标值。
公式应用分时抓振幅指标的应用可以有多种方式,以下是几个常见的应用案例:1.抓取短期波动:分时抓振幅指标可以帮助投资者捕捉股价短期波动的机会。
当指标值较高时,说明成交量和股价的波动都相对较大,可能是一个短期的买入机会。
反之,当指标值较低时,可能是一个短期的卖出机会。
2.确定市场拐点:当分时抓振幅指标出现明显的趋势反转时,可能预示着市场的拐点。
投资者可以根据指标的变动情况来调整自己的投资策略。
3.确定止盈止损点:分时抓振幅指标可以帮助投资者确定合适的止盈和止损点位。
当指标值达到一定的高点时,可能是一个适合止盈的时机;当指标值达到一定的低点时,可能是一个适合止损的时机。
以上只是分时抓振幅指标的一些应用案例,投资者可以根据自己的需求和实际情况进行进一步的研究和验证。
总结本文介绍了分时抓振幅指标在通达信软件中的指标公式源码,并解读了公式的含义和应用。
分时抓振幅指标是一种用于衡量股票短期波动情况的技术指标,可以帮助投资者捕捉短期买卖机会、确定市场拐点和确定止盈止损点位等。
通达信放量大阳后窄幅震荡公式
通达信放量大阳后窄幅震荡公式一、背景介绍1.1 通达信是目前国内最为常用的股票软件之一,具有丰富的功能和数据资源。
1.2 大阳是指当日股票收盘价高于开盘价,成交量比前一交易日明显放大的情况。
1.3 窄幅震荡是指股票价格在一个相对狭窄的区间内来回波动,波动幅度较小,没有明显的趋势。
二、通达信放量大阳后窄幅震荡公式2.1 通达信放量大阳后窄幅震荡公式是一种技术分析方法,用于判断股票价格短期走势的可能性。
2.2 公式内容包括以下几个要素:1) 放量大阳:即当日股票的成交量明显放大,且当日收盘价高于开盘价。
2) 窄幅震荡:即在放量大阳后,股票价格在一个相对狭窄的区间内来回震荡,波动幅度较小。
2.3 通达信放量大阳后窄幅震荡公式是基于技术分析理论和历史数据的统计分析得出的一种股市交易规律。
三、通达信放量大阳后窄幅震荡公式应用3.1 如何应用通达信放量大阳后窄幅震荡公式?1) 需要从股票软件中获取到当日的成交量和价格数据,确认当日是否出现了放量大阳的情况。
2) 需要观察股票价格的走势,确认是否出现了窄幅震荡的情况。
3) 根据通达信放量大阳后窄幅震荡公式所得出的结论,决定是否进行买入或卖出操作。
3.2 通达信放量大阳后窄幅震荡公式的优势和局限性1) 优势:通过对放量大阳和窄幅震荡的技术分析,可以较为客观地判断股票短期走势的可能性,提高交易决策的准确性。
2) 局限性:技术分析是基于历史数据的统计方法,不能完全准确地预测未来股票的价格走势,尤其在市场行情波动较大的情况下,公式的适用性会有所限制。
四、总结4.1 通达信放量大阳后窄幅震荡公式是一种股市交易规律,通过对放量大阳和窄幅震荡的技术分析,可以较为客观地判断股票短期走势的可能性。
4.2 在实际应用中,需要结合其他技术指标和基本面分析,综合判断股票的交易机会,提高交易决策的准确性和效率。
以上是关于通达信放量大阳后窄幅震荡公式的相关内容,希望对您有所帮助。
通达信放量大阳后窄幅震荡公式是一个比较常见的技术分析方法,通过观察成交量和价格走势,研究股票的波动情况,尝试判断短期股票价格的可能走势。
通达信五指共振指标公式
通达信五指共振指标公式{1指.能量线}能量线:=EMA(100*(C-LLV(L,34))/(HHV(H,34)-LLV(L,34)),3),LINETHICK0;{2指.RSI}RSI:=SMA(MAX(CLOSE-REF(CLOSE,1),0),6,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),6,1)*100,LINETHICK0;{3指.KDJ}RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100,LINETHICK0;K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=3*K-2*D,LINETHICK0;{4指.W&R}威廉WR:=(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14))*100,LINETHICK0;{5指.CCI}TYP := (HIGH + LOW + CLOSE)/3;CCI:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14)),LINETHICK0;五指A:WMA((能量线+RSI+J-威廉WR+CCI)/5,5);五指B:WMA((能量线+RSI+J-威廉WR+CCI)/5,13);DRAWBAND(五指A,RGB(255,155,0),五指B,RGB(0,40,255));WMA((能量线+RSI+J-威廉WR+CCI)/5,5),COLOR00FF00,LINETHICK3;IF(五指A>REF(五指A,1),五指A,DRAWNULL),COLOR0000FF,LINETHICK3;DRAWTEXT_FIX(1,0.02,0,0,'◆能量线,RSI3.KDJ,W&R,CCI,【五个指标共振线.[红].[绿].变化是买卖信号.颜色及标记是配合信号】'),COLOR00FFFF,LINETHICK3;KC:=FORCAST(((2*C+H+L)/4*0.618+C*0.382),3);AAX:=(KC-MA(KC,9))/MA(KC,9)*100;VAR0:=MIN(EXIST(KC,55),9);AAX1:=EMA(AAX,VAR0)*VAR0;AAX2:=MA(AAX1,3);AAX3:=MA(AAX1,5);卖:=AAX3>3 AND AAX1<REF(AAX1,1) AND CROSS(AAX2,AAX1);VBA:=FILTER(卖,5);DRAWTEXT(VBA,五指A*1.08,'★卖出'),COLOR0044FF;VB2:=EMA(EMA(C-REF(C,1),6),6)/EMA(EMA(ABS(C-REF(C,1)),6),6)*100;VB3:=IF(LLV(VB2,3)=LLV(VB2,11) AND COUNT(VB2<0,2) AND CROSS(VB2,MA(VB2,2)),1,0);VB4:=FILTER(VB3=1,5);DRAWTEXT(VB4,五指A*0.97,'★买入'),COLOR00FFFF;。
不错的通达信出击888主图指标公式
不错的通达信出击888主图指标公式高1:=REF(HHV(H,150),3);低1:=REF(LLV(L,150),3);H1:=高1-(高1-低1)*0.191;H2:=高1-(高1-低1)*0.382;H3:=高1-(高1-低1)*0.5;H4:=高1-(高1-低1)*0.618;H5:=高1-(高1-低1)*0.809;{顶:REFDATE(高1,DATE),POINTDOT,COLORWHITE;}%19:REFDATE(H1,DATE),POINTDOT,COLORYELLOW;%38:REFDATE(H2,DATE),POINTDOT,COLORYELLOW;%50:REFDATE(H3,DATE),POINTDOT,COLORWHITE;%61:REFDATE(H4,DATE),POINTDOT,COLORYELLOW;%80:REFDATE(H5,DATE),POINTDOT,COLORYELLOW;突破:REF(EMA(C,14),1)COLORMAGENTA,LINETHICK2;A1X:=(EMA(C,14)-突破)/突破*100,NODRAW;出击:IF(A1X>=0,REF(EMA(C,14),BARSLAST(CROSS(A1X,0))+1),DRA WNULL)COLORRED,LINETHICK2;休假:IF(A1X<0,REF(EMA(C,14),BARSLAST(CROSS(0,A1X))+1),DRAW NULL)COLORGREEN,LINETHICK2;STICKLINE(A1X>=0,出击,突破,0,-1)COLORRED;STICKLINE(A1X<0,休假,突破,0,-1)COLORGREEN;STICKLINE(CROSS(A1X,0),C,O,2,0)COLORYELLOW;STICKLINE(CROSS(0,A1X),C,O,2,0)COLORGREEN;※:IF(A1X<0,突破,DRAWNULL)COLORGREEN,LINETHICK2;DP:=REF(EMA(INDEXC,14),1);DPX:=(EMA(INDEXC,14)-DP)/DP*100;STICKLINE(DPX>=0 AND A1X>=0,REFDATE(低1,DATE),REFDATE(低1,DATE)*0.98,2,1)COLORRED;STICKLINE(DPX<0 AND A1X<0,REFDATE(低1,DATE),REFDATE(低1,DATE)*0.98,2,1)COLORGREEN;STICKLINE(NOT(DPX>=0 AND A1X>=0) AND NOT(DPX<0 AND A1X<0),REFDATE(低1,DATE),REFDATE(低1,DATE)*0.98,2,1)COLORYELLOW;{股旁网-股票公式网站 }GJ:=(C+H+L+O)/4;明日阻力:=L+(GJ-L)+(C-L);明日支撑:=L+(C-GJ);下档线:=(((CLOSE - LLV(LOW,13)) / (HHV(HIGH,13) - LLV(LOW,13))) * 100);RRRSV:=SMA(下档线,3,1);KKK:=SMA(RRRSV,3,1);DDDDD:=((3 * RRRSV) - (2 * KKK));JJ12:=(((CLOSE - LLV(LOW,55)) / (HHV(HIGH,55) - LLV(LOW,55))) * 100);RSV24:=SMA(JJ12,3,1);K24:=SMA(RSV24,3,1);D24:=((3 * RSV24) - (2 * K24));压力2:=IF(CROSS(D24,DDDDD),HIGH,REF(HIGH,BARSLAST(CROSS(D 24,DDDDD)))),COLORFFFFFF;底部:=LLV(HIGH,30),COLOR00FF00;今日阻力:REF(明日阻力 , 1),NODRAW;今日支撑:REF(明日支撑 , 1),NODRAW;压力位:IF(ISLASTBAR,压力2,DRAWNULL),NODRAW;底部位:IF(ISLASTBAR,底部,DRAWNULL),NODRAW;高:=REF(HHV(H,80),3);低:=REF(LLV(L,80),3);H19:=高-(高-低)*0.191;H38:=高-(高-低)*0.382;H中:=高-(高-低)*0.5;H61:=高-(高-低)*0.618;H80:=高-(高-低)*0.809;顶点:REFDATE(高,DATE),POINTDOT,COLORWHITE;疯牛19.8:REFDATE(H19,DATE),POINTDOT,COLORYELLOW;突破38.2:REFDATE(H38,DATE),POINTDOT,COLORMAGENTA;平衡50:REFDATE(H中,DATE),POINTDOT,COLORRED;回落61.8:REFDATE(H61,DATE),POINTDOT,COLORGREEN;安全80.9:REFDATE(H80,DATE),POINTDOT,COLORBLUE;低点:REFDATE(低,DATE),POINTDOT,COLORWHITE;DRAWTEXT(ISLASTBAR,顶点,'顶点'),COLORWHITE;DRAWTEXT(ISLASTBAR,疯牛19.8,'疯牛'),COLORYELLOW;DRAWTEXT(ISLASTBAR,突破38.2,'突破'),COLORMAGENTA;DRAWTEXT(ISLASTBAR,平衡50,'平衡'),COLORRED;DRAWTEXT(ISLASTBAR,回落61.8,'回落'),COLORMAGENTA;{DRAWTEXT(ISLASTBAR,安全80.9,'安全'),COLORYELLOW;DRAWTEXT(ISLASTBAR,低点,'低点'),COLORWHITE};VAR1:=CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);VAR2:=REF(VAR1,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);VAR3:=REF(VAR2,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VAR4:=REF(VAR3,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);VAR5:=REF(VAR4,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VAR6:=REF(VAR5,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);VAR7:=REF(VAR6,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VAR8:=REF(VAR7,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);VAR9:=REF(VAR8,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VARA:=REF(VAR9,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);VARB:=REF(VARA,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VARC:=REF(VARB,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);VARD:=CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2);VARE:=REF(VARD,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VARF:=REF(VARE,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);VAR10:=REF(VARF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VAR11:=REF(VAR10,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);VAR12:=REF(VAR11,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VAR13:=REF(VAR12,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);VAR14:=REF(VAR13,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VAR15:=REF(VAR14,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);VAR16:=REF(VAR15,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);VAR17:=REF(VAR16,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);VAR18:=REF(VAR17,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VAR19:=REF(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,1) AND VAR1;DRAWICON(VAR19,L*0.98,1);DRAWICON(CROSS(LLV(AMOUNT/V/100,3),L) AND V>REF(V,3) AND C<O,O*1.1,2);MA6:EMA(C,6),COLORWHITE;MA18:EMA(C,18),COLORGREEN;牧:STICKLINE(MA6>MA18 AND MA6>=REF(MA6,1) AND MA18>REF(MA18,1),MA6,MA18,0.3,0),COLORRED;马:STICKLINE(MA6>MA18 AND MA6<REF(MA6,1) AND MA18>=REF(MA18,1),MA6,MA18,0.3,0),COLORYELLOW;人:STICKLINE(MA6<MA18 AND MA6<=REF(MA6,1) AND MA18<REF(MA18,1),MA6,MA18,0.3,0),COLORGREEN;中:STICKLINE(MA6<MA18 AND MA6>REF(MA6,1) AND MA18<=REF(MA18,1),MA6,MA18,0.3,0),COLORCYAN;长:STICKLINE(MA6>MA18 AND MA6>REF(MA6,1) AND MA18<=REF(MA18,1),MA6,MA18,0.3,0),COLORMAGENTA;线:STICKLINE(MA6<MA18 AND MA6<REF(MA6,1) AND MA18>=REF(MA18,1),MA6,MA18,0.3,0),COLORBLUE;买进:=CROSS(MA6,MA18) AND MA18>=REF(MA18,1);DRAWICON(买进,L*0.95,9);DRAWTEXT(CROSS(85,RSI),(HIGH * 1.02),'落袋'),COLORCYAN;。
通达信震荡高抛低吸公式源码K线图
通达信震荡高抛低吸公式源码K线图DF:=3;N1:=12;RSV:=(CLOSE-LLV(LOW,N1))/(HHV(HIGH,N1)-LLV(LOW,N1))*100;K:=SMA(RSV,DF,1);D:=SMA(K,DF,1);KK:=SMA(RSV,DF,1);DD:=SMA(K,DF,1);N:=KK+DD;关注区:STICKLINE(N<50,N,50,2,0),COLORRED;风险区:STICKLINE(N>160,N,160,2,0),COLORGREEN;成本区:50,COLORYELLOW,LINETHICK2;GWGD:=N<REF(N,1) AND REF(N,1)>=160 AND REF(N,1)>=REF(N,2);获利区:160,COLOR007700,LINETHICK2;操盘线:N,COLORFF00FF,LINETHICK1;买:DRAWICON(CROSS(N,50),50,26),COLORRED;卖:DRAWICON(CROSS(160,N),160,15),COLORGREEN;AA:=(C+O+L+H)/4;{以下含未来,不喜删除}BB:=REF(CLOSE,AA);获利盘:=SMA(MAX(CLOSE-BB,0),2,1)/SMA(ABS(CLOSE-BB),2,1)*100;DZ1:=获利盘>REF(获利盘,1) AND 获利盘>89;TYP:=(HIGH+LOW+CLOSE)/3;CCI:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));CCI1:=EMA(EMA(EMA(CCI,2),2),2);CCI2:=EMA(EMA(EMA(CCI,3),2),2);DZ2:=CCI1>100;T:=CLOSE*1.0+LOW*0.0+HIGH*0.0;SL:=(T/REF(T,1)-1)*1000;快:=XMA(XMA(XMA(SL,3),3),3);慢:=XMA(XMA(XMA(SL,5),5),5);X:=快-慢;增速1:=X;WWW:=REF(增速1,1)<0;DZ4:=增速1>3 AND WWW;选股:=DZ1 AND DZ2 AND DZ4; STICKLINE(选股,50,150,2,0),COLORYELLOW; DRAWTEXT(选股,120,'*暴涨'),COLORRED;参数1-4设置参数最小最大缺省1 M2 1.00 100.00 36.002 P 3.00 100.00 13.003 N 80.00 100.00 100.004 M 1.00 100.00 5.00参数5-8设置参数最小最大缺省5 SHORT 1.00 999.00 21.006 LONG 1.00 999.00 44.007 MIDD 1.00 999.00 11.008 P1 1.00 999.00 11.00。
通达信警戒点出击选股指标公式程序源码编程思路破译及回测数据
通达信警戒点出击选股指标公式程序源码编程思路破译及回测数据编程思路破译B1赋值:(5日内最高价的最高值-收盘价)/(5日内最高价的最高值-5日内最低价的最低值)*100- 70B2赋值:B1的9日[1日权重]移动平均+100B3赋值:(收盘价-9日内最低价的最低值)/(9日内最高价的最高值- 9日内最低价的最低值)*100B4赋值:B3的3日[1日权重]移动平均B5赋值:B4的3日[1日权重]移动平均+100B6赋值:B5-B2B7赋值:如果B6>60,返回B6-60,否则返回0输出XG:1日前的收阴线 AND 2日前的收阴线 AND 收阳线AND 收盘价/1日前的收盘价>1.03 AND (3日前的最高价-1日前的最低价)/收盘价*100>10 ANDB7>=1日前的B7,画红色条件选股:通达信警戒点出击[日线]成功率测试(20日收益率10%)测试股票数:5087共发出信号:69288 成功信号:42473 失败信号:26624 未完成信号:191信号发出率:89.97% 平均成功率:61.47% 成功率达到50%的股票数有:77.10%利润1总平均:16.39% 最大平均利润1: 152.58% 最小平均利润1: 0.00%利润2总平均:2.71% 最大平均利润2: 120.39% 最小平均利润2: -41.61%条件选股:通达信警戒点出击[日线]成功率测试(250日收益率10%)测试股票数:5087共发出信号:69287 成功信号:60423 失败信号:7129 未完成信号:1735信号发出率:89.97% 平均成功率:89.45% 成功率达到50%的股票数有:97.25%利润1总平均:58.90% 最大平均利润1: 695.28% 最小平均利润1: 0.48%利润2总平均:8.43% 最大平均利润2: 632.26% 最小平均利润2: -82.34%程序源码B1:=(HHV(H,5)-C)/(HHV(H,5)-LLV(LOW,5))*100- 70;B2:=SMA(B1,9,1)+100;B3:=(C-LLV(L,9))/(HHV(H,9)- LLV(L,9))*100;B4:=SMA(B3,3,1);B5:=SMA(B4,3,1)+100;B6:=B5-B2;B7:=IF(B6>60,B6-60,0);XG:REF(C<O,1) AND REF(C<O,2) AND C>O AND C/REF(C,1)>1.03 AND (REF(H,3)-REF(L,1))/C*100>10 AND B7>=REF(B7,1),COLORRED;。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
【通达信】震荡波(出击)-指标公式源码
VAR1:=10;
VAR2:=11;
VAR3:=11;
VAR4:=12;
VAR5:=12;
VAR6:=13;
VAR7:=13;
VAR8:=14;
VAR9:=14;
VARA:=15;
VARB:=15;
VARC:=SMA((CLOSE-LLV(LOW,VAR1))/(HHV(HIGH,VAR1)-LLV(LOW,VAR1))*100,4, 1);
VARD:=SMA((CLOSE-LLV(LOW,VAR2))/(HHV(HIGH,VAR2)-LLV(LOW,VAR2))*100,4, 1);
VARE:=SMA((CLOSE-LLV(LOW,VAR3))/(HHV(HIGH,VAR3)-LLV(LOW,VAR3))*100,4, 1);
VARF:=SMA((CLOSE-LLV(LOW,VAR4))/(HHV(HIGH,VAR4)-LLV(LOW,VAR4))*100,4, 1);
VAR10:=SMA((CLOSE-LLV(LOW,VAR5))/(HHV(HIGH,VAR5)-LLV(LOW,VAR5))*100,4 ,1);
VAR11:=SMA((CLOSE-LLV(LOW,VAR6))/(HHV(HIGH,VAR6)-LLV(LOW,VAR6))*100,4 ,1);
VAR12:=SMA((CLOSE-LLV(LOW,VAR7))/(HHV(HIGH,VAR7)-LLV(LOW,VAR7))*100,4 ,1);
VAR13:=SMA((CLOSE-LLV(LOW,VAR8))/(HHV(HIGH,VAR8)-LLV(LOW,VAR8))*100,4 ,1);
VAR17:=SMA((CLOSE-LLV(LOW,VARB))/(HHV(HIGH,VARB)-LLV(LOW,VARB))*100,4 ,1);
D11:(SMA((VAR17-50)*2,3,1)+SMA((VAR13-50)*2,3,1))/2,LINETHICK2,COLOR0
0FF00;
VAR14:=SMA((CLOSE-LLV(LOW,VAR9))/(HHV(HIGH,VAR9)-LLV(LOW,VAR9))*100,4 ,1);
(SMA((VAR14-50)*2,3,1)+SMA((VAR11-50)*2,3,1))/2,LINETHICK2,COLORFFCC3 3;
VAR15:=SMA((CLOSE-LLV(LOW,VARA))/(HHV(HIGH,VARA)-LLV(LOW,VARA))*100,4 ,1);
VAR16:=SMA((VAR15-50)*2,3,1);
D11,COLORSTICK,COLOR888888;
X:3*(VAR17-50)*2-2*SMA((VAR17-50)*2,3,1),COLORYELLOW;
VAR18:=(HIGH+LOW+CLOSE)/3;
VAR19:=(VAR18-MA(VAR18,14))/(0.015*AVEDEV(VAR18,14));
VAR1A:=(VAR18-MA(VAR18,70))/(0.015*AVEDEV(VAR18,70));
VAR1B:=IF(VAR19>=150 AND VAR19<200 AND VAR1A>=150 AND VAR1A<200,-10,0); VAR1C:=IF(VAR19<=-150 AND VAR19>-200 AND VAR1A<=-150 AND
VAR1A>-200,10,0);
VAR1D:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;
VAR1E:=100-ABS(VAR1D);
IF(BARSCOUNT(CLOSE)<13,100,IF(VAR1E<88 AND
VAR1D>0,85,100)),COLORCCFFCC,;
IF(BARSCOUNT(CLOSE)<13,-100,0-IF(VAR1E<92 AND
VAR1D<0,85,100)),COLORF00FF0;
IF(BARSCOUNT(CLOSE)<70,120,IF(VAR1A>=200 AND
VAR19>=150,-15,VAR1B)+120),LINETHICK2,COLORCCFF66;
出击1:IF(BARSCOUNT(CLOSE)<70,-120,IF(VAR1A<=-200 AND
VAR19<=-150,15,VAR1C)-120),COLORRED,LINETHICK2,;
{POLYLINE(C>0,SMA((VARC-50)*2,3,1)),LINETHICK2,COLORFF0033; POLYLINE(C>0,SMA((VARD-50)*2,3,1)),LINETHICK2,COLORFF2233;
POLYLINE(C>0,(SMA((VARE-50)*2,3,1)+SMA((VARC-50)*2,3,1))/2),LINETHICK 2,COLORFF4433;
POLYLINE(C>0,SMA((VARF-50)*2,3,1)),LINETHICK2,COLORFF6633;
POLYLINE(C>0,(SMA((VAR10-50)*2,3,1)+SMA((VARD-50)*2,3,1))/2),LINETHIC K2,COLORFF8833;
POLYLINE(C>0,SMA((VAR11-50)*2,3,1)),LINETHICK2,COLORFF9933; POLYLINE(C>0,(SMA((VAR12-50)*2,3,1)+SMA((VARF-50)*2,3,1))/2),LINETHIC K2,COLORFFAA33;
POLYLINE(C>0,SMA((VAR13-50)*2,3,1)),LINETHICK2,COLORFFBB33; };
【通达信】震荡波(出击)-指标公式效果图
(文档来源:若水财经社区)。