大智慧的指南针指标公式
大智慧个股强弱排序指标公式大智慧股票技术指标大全
大智慧个股强弱排序指标公式大智慧股票技术指标大全求能选出强于大盘走势的股票大智慧选股公式不用另写公式,大智慧自带“相对强度指标CD”就是个股相对大盘的。
用条件选股/技术指标/强弱指标/CD相对强度,然后设置XHORT 大于第4条指标线。
执行选股即可请高手写大智慧排序公式。
N天涨幅:=(CLOSE-LLV(L,N))/LLV(CLOSE,N)*100;N天回落:=(HHV(C,N)-CLOSE)/HHV(C,N)*100;T1:=BARSLAST(H=HHV(H,N));T2:=BARSLAST(L=LLV(L,N));排序:IF(T1T2,N天涨幅,-N天回落);你好,你以前提到过的RS,个股与大盘相对强弱指标,请问有没有大智慧的公式?谢谢指教对比强弱(DBQR)指标概述:对比强弱(DBQR)指标实际上是从变动率指标(ROC)改进发展而来的。
该指标是通过分别计算大盘和个股的变动率指标,再将两者进行比较,得出该股相对于整个大势的强弱状况。
计算公式:1.指数强弱线(DB)=(大盘收盘指数-N日前大盘收盘指数)/N日前大盘收盘指数 2.个股强弱线(QB)=(收盘价-N日前收盘价)/N日前收盘价 3.MADBQR1=QB的M1日简单移动平均MADBQR2=QB的M2日简单移动平均MADBQR3=QB的M3日简单移动平均 4.参数N=5,M1=10,M2=20,M3=60应用法则1.QB向上金叉DB,表明个股强于大盘,是买进时机;QB向下死叉DB,表明个股弱于大盘,是卖出时机。
2.当QB与DB有较大偏离的时候,如果QB能够快速,并且几乎垂直地向上穿越DB,则是一个较好的买进时机。
3.当QB与DB有较大偏离的时候,如果QB能够快速,并且几乎垂直地向下穿越DB,则是一个较好的卖出时机。
4.如果QB与DB同时快速向上穿越三条均线,表示大势转暖,该股有跟随走强的趋势,可买进。
5.如果QB与DB同时快速向下穿越三条均线,表示大势转弱,该股有跟随走弱的趋势,可卖出.相对强弱指数(RSI)一、相对强弱指数相对强弱指数是根据一定时期内上涨和下跌幅度之和的比率 ... 出的一种技术曲线。
大智慧自编指标
1、天狼操盘手指导线(主图指标)LC:=REF(CLOSE,1);RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100);FF:=EMA(CLOSE,3);MA15:=EMA(CLOSE,21);波动回调提示图:MA(CLOSE,10000);STICKLINE((MA15 > REF(MA15,1)),MA15,MA15,9,6),LINETHICK2,color0000FF; STICKLINE((MA15 < REF(MA15,1)),MA15,MA15,9,6),LINETHICK2,colorFF0000; DRAWTEXT(CROSS(FF,MA15),(LOW * 0.99),'上拐点'),Color00FFFF;DRAWTEXT(CROSS(MA15,FF),(HIGH * 1.02),'下拐点'),Color00FF00;DRAWTEXT(CROSS(85,RSI),(HIGH * 1.02),'回调!'),colorFFFFFF;买线:=EMA(C,2);卖线:=EMA(SLOPE(C,21)*20+C,42);BU:=cross(买线,卖线);SEL:=cross(卖线,买线);stickline(买线>=卖线,low,high,1,0),colorred;stickline(买线>=卖线,close,open,4.5,0),color0000aa;stickline(买线>=卖线,close,open,4,0),color0000cc;stickline(买线>=卖线,close,open,3,0),color0000cc;stickline(买线>=卖线,close,open,2,0),color0000ee;stickline(买线<卖线,close,open,4.5,0),coloraaaa00;stickline(买线<卖线,close,open,4,0),colorbbbb00;stickline(买线<卖线,close,open,3,0),colorcccc00;stickline(买线<卖线,close,open,2,0),coloreeee00;stickline(买线<卖线,low,high,1,0),colorffff00;stickline(cross(买线,卖线) or cross(卖线,买线),open,close,3,0),color00ffff;指导线: EMA((EMA(CLOSE,4)+EMA(CLOSE,6)+EMA(CLOSE,12)+EMA(CLOSE,24))/4,2),linethick1, ColorFFffFF;界: MA(CLOSE,27),linethick1,Color00FFFF;2、成交天机(付图指标)实际量:vol,LINETHICK0;{V AR1:=DYNAINFO(17)*REF(MA(VOL,5),1);V AR2:=DYNAINFO(7)=CLOSE AND DYNAINFO(10)=AMOUNT;预测:IF(DYNAINFO(7)=CLOSE AND DYNAINFO(10)=AMOUNT,V AR1,V AR2)/10000;预测量:STICKLINE(IF(DYNAINFO(7)=CLOSE AND DYNAINFO(10)=AMOUNT,V AR1,V AR2),V AR1,0,7,1),COLORGREEN;}AA:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));主买:IF(CLOSE>OPEN,AA*(HIGH-LOW),IF(CLOSE<OPEN,AA*((HIGH-OPEN)+(CLOSE-LO W)),VOL/2)),POINTDOT,COLORRED;主卖:IF(CLOSE>OPEN,0-AA*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-AA*(HIGH-LOW),0-VOL/2)),LINETHICK0,COLORGREEN;换手率%:VOL/CAPITAL*100,POINTDOT,COLORwhite;STICKLINE(C>=REF(C,1) ,0,VOL,4,1),COLORRED;STICKLINE(C<REF(C,1) ,0,VOL,4,1),COLORGREEN;STICKLINE(主买>0 ,0,主买,4,0),COLORRED;STICKLINE(主卖<0 ,0,主卖,4,0),COLORGREEN;资金异动:VOL/ma(vol,55)*100,COLORyellow;STICKLINE(资金异动>100,0,vol,2,0),COLORyellow;A股:CAPITAL/1000000,colorwhite;ma5:ma(v,5),colorwhite;ma13:ma(v,13),colorred;DRAWtext(cross(ma(v,5),ma(v,13)),(v *1.05),'★'),coloryellow;3、吸逃指标(辅图指标)stickline(c>0,-100,150,100,0),color334400;RSV:=(((CLOSE - LLV(LOW,9)) / (HHV(HIGH,9) - LLV(LOW,9))) * 100); 短期底部:=LLV(OPEN,30);K:SMA(RSV,3,1);D:SMA(K,3,1);J:((3 * K) - (2 * D));AA10:=MA(CLOSE,10);AA12:=MA(CLOSE,12);BB10:=((A TAN((AA10 - REF(AA10,1))) * 3.1416) * 10);BB12:=((A TAN((AA12 - REF(AA12,1))) * 3.1416) * 10);MA13:=MA(CLOSE,13);if((K > D),K,d),colorFF00FF;if((K < D),d,K),colorFFFF00;if((J > D),J,d),LINETHICK2,color0000FF;if((J < D),d,J),LINETHICK2,color00FF00;20,POINTDOT,color00FF00;80,POINTDOT,color00FF00;V AR2:=(((CLOSE - MA(CLOSE,6)) / MA(CLOSE,6)) * 100);V AR3:=(((CLOSE - MA(CLOSE,12)) / MA(CLOSE,12)) * 100);V AR4:=(((CLOSE - MA(CLOSE,24)) / MA(CLOSE,24)) * 100);V AR5:=(((V AR2 + (2 * V AR3)) + (3 * V AR4)) / 6);V AR6:=MA(V AR5,3);底部1:IF(V AR6 ,20,0),colorFFFF00;STICKLINE((CROSS(J,K) AND (底部1 >= 20)),100,0,2,0),colorFFFFFF; DRAWICON((CROSS(J,K) AND (底部1 >= 20)),100,1);DRAWTEXT((CROSS(J,K) AND (底部1 >= 20)),98,'--全仓'); STICKLINE((V AR6 <= (0 - 15)),80,4.88,2,0);DRAWTEXT((V AR6 <= (0 - 15)),80,'买'),colorFFFFFF;STICKLINE((V AR6 <= (0 - 15)),80,60,2,0),color0000FF;V AR7:=DMA(EMA(CLOSE,12),((SUM(VOL,5) / 3) / CAPITAL));V AR8:=(((CLOSE - V AR7) / V AR7) * 100);V AR9:=((((REF(V AR8,1) < (0 - 40)) AND (V AR8 > REF(V AR8,1))) AND (REF(V AR8,1) < REF(V AR8,2))) AND ((V AR8 - REF(V AR8,1)) > 2.5));V ARA:=(((CLOSE - MA(CLOSE,6)) / MA(CLOSE,6)) * 100);V ARB:=(((CLOSE - MA(CLOSE,12)) / MA(CLOSE,12)) * 100);V ARC:=(((CLOSE - MA(CLOSE,24)) / MA(CLOSE,24)) * 100);V ARD:=REF(CLOSE,1);V ARE:=((SMA(MAX((CLOSE - V ARD),0),5,1) / SMA(ABS((CLOSE - V ARD)),5,1)) * 100);V ARF:=(((HIGH + LOW) + CLOSE) / 3);V AR10:=((V ARF - MA(V ARF,14)) / (0.015 * A VEDEV(V ARF,14)));V AR11:=(((((MA(AMOUNT,5) / MA(VOL,5)) / 100) - ((MA(AMOUNT,110) / MA(VOL,110)) / 100)) / ((MA(AMOUNT,5) / MA(VOL,5)) / 100)) < (0 - 0.273));V AR12:=(((CLOSE - MA(CLOSE,30)) / MA(CLOSE,30)) < (0 - 0.125));V AR13:=(V AR11 AND V AR12);V AR14:=((((V ARA>= (0 - 45)) AND (V ARA<= (0 - 10))) AND (V ARB <= (0 - 15))) AND (V ARC <= (0 - 20)));V AR15:=(COUNT(V AR14,1) >= 1);V AR16:=(V AR13 AND V AR15);V AR17:=1;V AR18:=(CLOSE * VOL);V AR19:=EMA((((((MA(V AR18,4) / MA(VOL,4)) + (MA(V AR18,6) / MA(VOL,6))) + (MA(V AR18,13) / MA(VOL,13))) + (MA(V AR18,24) / MA(VOL,24))) / 4),1);V AR1A:=(1 * V AR19);V AR1B:=(V AR19 * 0.92);V AR1C:=EMA(CLOSE,34);V AR1D:=MA((V AR1C * 1.12),5);V AR1E:=MA((V AR1C * 0.82),5);V AR1F:=(CLOSE < V AR1E);V AR20:=((((((MA(AMOUNT,5) * V AR17) / MA(VOL,5)) / 100) - ((MA(AMOUNT,125) / MA(VOL,125)) / 100)) / ((MA(AMOUNT,5) / MA(VOL,5)) / 100)) < ((0 - 0.4) * V AR17));V AR21:=HHV(HIGH,500);V AR22:=LLV(LOW,500);V AR23:=HHV(HIGH,250);V AR24:=LLV(LOW,250);V AR25:=HHV(HIGH,125);V AR26:=LLV(LOW,125);V AR27:=MA(((((((V AR21 * 0.45) + (V AR23 * 0.5)) + V AR22) + V AR24) + V AR26) / 5),35);V AR28:=MA((((V AR23 * 0.62) + V AR26) / 2),35);V AR29:=MA((((V AR23 * 0.75) + V AR26) / 2),18);V AR2A:=MA((((((V AR23 * 0.93) + (V AR27 * 2)) + (V AR28 * 1.8)) + (V AR29 * 1.5)) / 4),18);V AR2B:=MA(((((V AR21 * 0.95) + (V AR27 * 3)) + (V AR28 * 2)) / 3),35);V AR2C:=V AR27;V AR2D:=V AR28;V AR2E:=V AR29;V AR2F:=V AR2A;V AR30:=V AR2B;V AR31:=((CLOSE - REF(MA(CLOSE,20),11)) < (0 - 2));V AR32:=(INDEXA / 100000000);V AR33:=INDEXADV;V AR34:=INDEXDEC;V AR35:=((V AR18 / (V AR18 + V AR19)) * V AR17);V AR36:=((V AR19 / (V AR18 + V AR19)) * V AR17);V AR37:=EMA(V AR35,10);V AR38:=EMA(V AR36,10);V AR39:=EMA(V AR37,10);V AR3A:=EMA(V AR38,20);V AR3B:=EMA(V AR37,3);V AR3C:=EMA(V AR39,6);V AR3D:=EMA(V AR3A,2);V AR3E:=(V AR3C - V AR3D);V AR3F:=(((V AR3C - REF(V AR3C,1)) > 0) AND ((REF(V AR3C,1) - REF(V AR3C,2)) < 0));V AR40:=IF((CROSS(V AR3B,V AR3C) AND (V AR3C <= 20)),30,0);V AR41:=V AR40;V AR42:=(SMA(((AMOUNT / VOL) / 100),13,1) * 1.15);V AR43:=(SMA(((AMOUNT / VOL) / 100),13,1) * 0.85);V AR44:=(CLOSE - REF(MA(CLOSE,20),11));V AR45:=(((((((((((((CLOSE < V AR1E) AND V AR20) AND (CLOSE < V AR43)) OR (((CLOSE < V AR1E) AND V AR31) AND V AR20)) OR ((CLOSE < V AR1E) AND (CLOSE < V AR43))) OR (((CLOSE < V AR1E) AND V AR20) AND (CLOSE < V AR43))) OR (V AR20 AND (CLOSE < V AR2C))) OR ((V AR20 AND V AR31) AND (V AR44 < (0 - 1.5)))) OR (V AR20 AND (CLOSE < V AR1E))) OR (V AR20 AND (V AR44 < (0 - 1.5)))) OR (V AR31 AND (CLOSE < V AR43))) OR ((CLOSE < V AR2C) AND (V AR44 < (0 - 1.5)))) OR ((CLOSE < V AR1E) AND V AR31));V AR46:=(((CLOSE - MA(CLOSE,6)) / MA(CLOSE,6)) * 100);V AR47:=(((CLOSE - MA(CLOSE,12)) / MA(CLOSE,12)) * 100);V AR48:=(((CLOSE - MA(CLOSE,24)) / MA(CLOSE,24)) * 100);V AR49:=REF(CLOSE,1);V AR4A:=((SMA(MAX((CLOSE - V AR49),0),5,1) / SMA(ABS((CLOSE - V AR49)),5,1)) * 100); V AR4B:=(((HIGH + LOW) + CLOSE) / 3);V AR4C:=((V AR4B - MA(V AR4B,14)) / (0.015 * A VEDEV(V AR4B,14)));V AR4D:=(((((MA(AMOUNT,5) / MA(VOL,5)) / 100) - ((MA(AMOUNT,110) / MA(VOL,110)) / 100)) / ((MA(AMOUNT,5) / MA(VOL,5)) / 100)) < (0 - 0.273));V AR4E:=(((CLOSE - MA(CLOSE,30)) / MA(CLOSE,30)) < (0 - 0.125));V AR4F:=(V AR11 AND V AR12);V AR50:=((((V AR2 >= (0 - 45)) AND (V AR2 <= (0 - 7))) AND (V AR3 <= (0 - 11))) AND (V AR4 <= (0 - 14)));V AR51:=(COUNT(V AR50,1) >= 1);V AR52:=(V AR4F AND V AR51);V AR53:=(((((V AR20 AND (CLOSE < V AR1E)) AND V AR31) AND (CLOSE < V AR2C)) ANDV AR45) AND V AR52);V AR54:=(((CLOSE - MA(CLOSE,6)) / MA(CLOSE,6)) * 100);V AR55:=(((CLOSE - MA(CLOSE,12)) / MA(CLOSE,12)) * 100);V AR56:=(((CLOSE - MA(CLOSE,24)) / MA(CLOSE,24)) * 100);V AR57:=REF(CLOSE,1);V AR58:=((SMA(MAX((CLOSE - V AR57),0),5,1) / SMA(ABS((CLOSE - V AR57)),5,1)) * 100); V AR59:=(((HIGH + LOW) + CLOSE) / 3);V AR5A:=((V AR59 - MA(V AR59,14)) / (0.015 * A VEDEV(V AR59,14)));V AR5B:=((((((V AR54 >= (0 - 15.8)) AND (V AR54 <= (0 - 12.2))) AND (V AR55 <= (0 - 20.8))) AND (V AR56 <= (0 - 27.5))) AND (V AR58 <= 11.7)) AND (V AR5A <= (0 - 145)));V AR5C:=9.999999884842+026;V AR5D:=(COST(10) * 0);V AR5E:=((((MA(AMOUNT,5) / MA(VOL,5)) / 100) - ((MA(AMOUNT,125) / MA(VOL,125)) / 100)) / ((MA(AMOUNT,5) / MA(VOL,5)) / 100));V AR5F:=MA((((LLV(LOW,45) - CLOSE) / (HHV(HIGH,45) - LLV(LOW,45))) * 100),5);V AR60:=((CROSS((0 - 5),V AR5F) AND (V AR5E < (0 - 0.4))) AND (((CLOSE - MA(CLOSE,30)) / MA(CLOSE,30)) < (0 - 0.19)));V AR61:=MA(CLOSE,3);V AR62:=(REF(CLOSE,2) * 0.865);V AR63:=(REF(CLOSE,13) * 0.772);V AR64:=MIN(V AR62,V AR63);V AR65:=((100 * VOL) / CAPITAL);V AR66:=MA(CLOSE,13);V AR67:=IF(((((CLOSE - V AR64) / CLOSE) < 0.03) AND ((SUM(V AR65,5) / 5) < 1.8)),1,0);胡涂出击:IF(((((V AR9 OR V AR16) OR V AR53) OR V AR5B) OR ((((CLOSE - V AR64) / CLOSE) < 0.03) AND ((SUM(V AR65,5) / 5) < 1.8))),120,0),LINETHICK2,color0000FF;V AR68:=0;MACD:(V AR6 * 5),COLORSTICK,LINETHICK2;STICKLINE((CROSS(K,D) AND (BB10 > 1)),70,0,2,0),colorCC99FF;DRAWTEXT((CROSS(K,D) AND (BB10 > 1)),64,'--短买'),color00FF00;DRAWICON((CROSS(K,D) AND (BB10 > 1)),70,0);底部预警:STICKLINE((V AR6 <= (0 - 10)),0,(0 - 20),5,0),color88B7EA;V ARQ:=MA(CLOSE,152);V ARW:=MA(CLOSE,194.16);V AREe:=(V ARW + (2 * STD(CLOSE,170)));V ARR:=(V ARQ + (2 * STD(CLOSE,170)));V ART:=IF((DA TE > 1080822),0,1);V AR611:=EMA(HHV(HIGH,500),21);V AR71:=EMA(HHV(HIGH,250),21);V AR81:=EMA(HHV(HIGH,90),21);V AR91:=EMA(LLV(LOW,500),21);V ARA1:=EMA(LLV(LOW,250),21);V ARB1:=EMA(LLV(LOW,90),21);V ARC1:=EMA((((((((V AR91 * 0.96) + (V ARA1 * 0.96)) + (V ARB1 * 0.96)) + (V AR611 * 0.558))+ (V AR71 * 0.558)) + (V AR81 * 0.558)) / 6),21);V ARD1:=EMA((((((((V AR91 * 1.25) + (V ARA1 * 1.23)) + (V ARB1 * 1.2)) + (V AR611 * 0.55)) + (V AR71 * 0.55)) + (V AR81 * 0.65)) / 6),21);V ARE1:=EMA((((((((V AR91 * 1.3) + (V ARA1 * 1.3)) + (V ARB1 * 1.3)) + (V AR611 * 0.68)) + (V AR71 * 0.68)) + (V AR81 * 0.68)) / 6),21);V ARF1:=EMA((((((V ARC1 * 3) + (V ARD1 * 2)) + V ARE1) / 6) * 1.738),21);V AR101:=REF(LOW,1);V AR111:=((SMA(ABS((LOW - V AR101)),3,1) / SMA(MAX((LOW - V AR101),0),3,1)) * 100); V AR121:=EMA(IF(((CLOSE * 1.35) <= V ARF1),(V AR111 * 10),(V AR111 / 10)),3);V AR131:=LLV(LOW,30);V AR141:=HHV(V AR121,30);V AR151:=IF(MA(CLOSE,58),1,0);V AR161:=((EMA(IF((LOW <= V AR131),((V AR121 + (V AR141 * 2)) / 2),0),3) / 618) * V AR151);V AR171:=(((IF((V AR161 > 50),50,V AR161) / 20) * 15) * V ART);底部吸筹:STICKLINE((V AR171 > 0),0,V AR171,1,1),colorFF00FF;STICKLINE(((CROSS(K,D) AND ((AA10 - REF(AA10,1)) > 0)) AND (K <= 49)),80,0,3,0),color0000FF;DRAWTEXT(((CROSS(K,D) AND ((AA10 - REF(AA10,1)) > 0)) AND (K <= 49)),80,'--抄底'),color0000FF;STICKLINE(CROSS(90,J),88,100,2,0),color00FF00;DRAWTEXT(CROSS(90,J),108,'。
大智慧威廉姆斯指标公式
大智慧威廉姆斯指标公式
大智慧威廉姆斯指标公式包括以下部分:
1. 计算WR值:WR = 100 - 100 (HHV(HIGH,58) - CLOSE) /
(HHV(HIGH,58) - LLV(LOW,5N))。
2. 确定强弱分界线:强弱分界线通常设定为50。
3. 绘制指标线:根据WR值绘制指标线,通常以不同的颜色表示不同区间的值。
例如,低于-15的值用颜色00FFFF表示,0到20的值用颜色FFFF33表示,20到80的值用颜色00FF00表示,80到100的值用颜色00FF00表示,高于100的值用颜色FFFF33表示。
4. 显示文字标注:在特定的位置(如底部或顶部区域)显示文字标注,以提醒用户当前的位置。
以上是大智慧威廉姆斯指标公式的简要介绍,如需了解更多信息,建议咨询金融领域专业人士。
大智慧七种技术指标主图指标公式(MACD KDJ CCI RSI DMI DMA 主图)
大智慧七种技术指标主图指标公式(MACD KDJ CCI RSI DMI DMA 主图)INPUT:AM(1,0,1),AJ(1,0,1),AC(1,0,1),AR(1,0,1),AD(1,0,1),DM(1,0,1),ZL(1,0,1); DRAWGBKlast(c>0,strip(RGB(0,0,0),RGB(0,0,120),0));{1.K线}STICKLINE(CLOSE>OPEN,CLOSE,OPEN,8.5,0) ,COLOR000011;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,7,0) ,COLOR000033;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,6,0) ,COLOR000055;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,5,0) ,COLOR000077;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,4,0) ,COLOR000099;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3,0) ,COLOR0000BB;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2,0) ,COLOR0000DD;STICKLINE((CLOSE >= OPEN),HIGH,LOW,1,0),color0000FF;STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,8.5,0),color006600;STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,7,0),color008800;STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,6,0),color00AA00;STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,5,0),color00BB00;STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,4,0),color00CC00;STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,3,0),color00DD00;STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,2,0),color00EE00;STICKLINE((OPEN > CLOSE),HIGH,LOW,1,0),color00FF00;LC:=REF(C,1);卖黄金:((SMA(MAX((C - LC),0),3,1) / SMA(ABS((C - LC)),3,1)) * 100),LINETHICK0; DRAWTEXT(CROSS(80,卖黄金) ,high*1.04,'顶'),COLOR00ffFF,ALIGN1,LINETHICK1; STICKLINE(CROSS(80,卖黄金) AND C<O,H,L,2,0),COLOR00ffff,LAYER0;STICKLINE(CROSS(80,卖黄金) AND C<O,C,O,12,0 ),COLOR007777,LAYER0; STICKLINE(CROSS(80,卖黄金) AND C<O,C,O,8,0 ),COLOR009999,LAYER0; STICKLINE(CROSS(80,卖黄金) AND C<O,C,O,6,0 ),COLOR00BBBB,LAYER0; STICKLINE(CROSS(80,卖黄金) AND C<O,C,O,4,0 ),COLOR00DDDD,LAYER0; STICKLINE(CROSS(80,卖黄金) AND C<O,C,O,2 ,0 ),COLOR00ffff,LAYER0; DRAWTEXTABS(5,5,'基本指标:MA5波段'),Color00FFff,LINETHICK3;BC:=(3*C+H+L)/5;MA5:EMA(MA(BC,5),5);PARTLINE(MA5,(MA5>REF(MA5,1))-1,rgb(0,255,0),1,rgb(255,0,0) ),LINETHICK2,LAYE R0;XL:=BARSLAST(DISPSTATUS=1)+1;E:=llvall(llv(L,XL))*0.95;IF AM=1 THEN BEGINDRAWTEXTABS(250,5,'技术指标:MACD'),Color0000ff,LINETHICK4;DIFF:=EMA( EMA(CLOSE,12) - EMA(CLOSE,26),3);DEA:=EMA(DIFF,9);MACD:2*(DIFF-DEA),Color0598FF,LINETHICK0;;STICKLINE(MACD>0,E+MACD*2,E,12,0),Color0598FF;STICKLINE(MACD<0,E+MACD*2,E,12,0),ColorFF5500;END;IF AJ=1 THEN BEGINDRAWTEXTABS(250,5,'技术指标:KDJ'),Colorff00ff,LINETHICK4;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),Color05FFFF,LINETHICK0;if(CROSS(K,D) AND BARSLAST(CROSS(D,K))<3,E*1.09,E),ColorFF9910 ; STICKLINE(K>D,E+(K-D)/50,E,12,0),Color0000FF;STICKLINE(K<D,E+(K-D)/50,E,12,0),Color00FF00;END;IF AC=1 THEN BEGINDRAWTEXTABS(200,5,'指标:CCI'),Color00ffff,LINETHICK4;TYP := (HIGH + LOW + CLOSE)/3;CCI:(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14)),Color05FF00,LINETHICK0;; STICKLINE(CCI>0,E+CCI/350,E,12,0),Color0077FF;STICKLINE(CCI<0,E+CCI/350,E,12,0),ColorFF9900;END;IF AR=1 THEN BEGINDRAWTEXTABS(250,5,'技术指标:RSI'),Color00ff00,LINETHICK4;LC := REF(CLOSE,1);RSI:SMA(MAX(CLOSE-LC,0),14,1)/SMA(ABS(CLOSE-LC),14,1)*100,ColorFF05FF,LINE THICK0;CRSI:="RSI.RSI3#WEEK";金叉RSI:STICKLINE(CROSS("RSI.RSI2#WEEK","RSI.RSI3#WEEK"),E,E*1.1,0.6,0),ColorFF 00FF;DRAWTEXT(CROSS("RSI.RSI2#WEEK","RSI.RSI3#WEEK"),E*1.1,'金叉'),COLOR0000FF;STICKLINE(RSI>CRSI,E+(RSI-CRSI)/50,E,12,0),Color0000FF;STICKLINE(RSI<CRSI,E+(RSI-CRSI)/50,E,12,0),Color00FF00;VAR1:=(CLOSE*2+HIGH+LOW)/4;SK:=EMA(VAR1,13)-EMA(VAR1,73);SD:=EMA(SK,2);XG:=((CROSS(SK,SD) AND SK<-0.04 AND (C-REF(C,1))/REF(C,1)>=0.03) OR (CROSS(SK,SD) AND SK<=-0.14 )OR (CROSS(SK,SD) AND SK<=0.05 AND (V/MA(V,5)>2 OR C/REF(C,1)>0.035)) OR 金叉RSI);STICKLINE(XG,E,E*1.15,0.6,0),COLOR00FFFF;DRAWTEXT(XG,E*1.15,'突破'),COLOR00FFBB;END;IF AD=1 THEN BEGIN{DMI新编}DRAWTEXTABS(250,5,'技术指标:DMI'),Color0598ff,LINETHICK4;N:=21;M:=6;M1:=20;TR1:=EMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LO W)),N);HD :=HIGH-REF(HIGH,1);LD :=REF(LOW,1)-LOW;DMP:=EMA(IF(HD>0 AND HD>LD,HD,0),N);DMM:=EMA(IF(LD>0 AND LD>HD,LD,0),N);PDI:= DMP*100/TR1;MDI:DMM*100/TR1,Color05FFFF,LINETHICK0;ADX:= EMA((PDI-MDI)/(MDI+PDI)*100,M)*2;ADXR:=EMA(ADX,M);ADMA:=EMA(ADX,M1);OMD:=(ADX-2*ADMA+ADXR)/2;STICKLINE( OMD>0,E,E+OMD/100,12,0),COLORRED;STICKLINE(OMD<0,E,E+OMD/100,12,0),COLORGREEN;END;IF DM=1 THEN BEGINDRAWTEXTABS(250,5,'技术指标:DMA'),ColorFF55ff,LINETHICK4;DDD:=(MA(CLOSE,10)-MA(CLOSE,50));AMA:=MA(DDD,10);STICKLINE( DDD>AMA,E,E+(DDD-AMA),12,0),COLORFF22FF;STICKLINE(DDD<AMA,E,E+(DDD-AMA),12,0),COLOR99FF99;END;IF ZL=1 THEN BEGINDRAWTEXTABS(250,5,'技术指标:主力进出'),ColorFF55ff,LINETHICK4;jcs:=ZLSHORT;jcm:=ma(zlshort ,12);STICKLINE(jcs>jcm,E,E+(jcs-jcm)/CAPITAL*5000,12,0),COLOR222299; STICKLINE(jcs<jcm,E,E+(jcs-jcm)/CAPITAL*5000,12,0),COLORFFee00; END;。
大智慧量化公式
大智慧量化公式
以下是大智慧股票指标公式:
1. 做空95:HHV((HIGH+LOW+OPEN+2CLOSE)/5+H-L,5),颜色为蓝色。
2. 做空68:HHV((HIGH+LOW+OPEN+2CLOSE)/52-L,5),颜色为红色。
3. 平衡点:LLV((HIGH+LOW+OPEN+2CLOSE)/5,3),颜色为灰色,DOTLINE。
4. 做多68:LLV((HIGH+LOW+OPEN+2CLOSE)/52-H,8),颜色为绿色。
5. 做多95:LLV((HIGH+LOW+OPEN+2CLOSE)/5-H+L,8),颜色为浅绿色。
6. F:=100(C-REF(C,1))/REF(C,1),表示当前收盘价与前一日收盘价的差值
占前一日收盘价的百分比。
7. 今小昨:IF(C<REF(O,1) AND f<0,1,0),表示当前收盘价小于前一日开
盘价且当前差值小于0时为1,否则为0。
8. 今小前:IF(C<REF(O,2) AND f<0,1,0),表示当前收盘价小于前两日开
盘价且当前差值小于0时为1,否则为0。
9. 真实波动范围(TR)的计算公式为TR=Max(H-L,H-PDC,PDC-L),其中
H表示当日的最高价,L表示当日的最低价,PDC表示前一日的收盘价。
以上是大智慧股票指标公式的部分示例,如需更多信息,建议查阅大智慧股票软件官网或咨询专业金融分析师。
(整理)大智慧指标公式.
REFLINE: 0, ,, , ;Var2:=1/WINNER(CLOSE);Var3:=100-ABS((CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100);STICKLINE(Var2>5,Var3<100,Var2,5,0),;Var4:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;Var5:=SMA(Var4,5,1);Var6:=SMA(Var5,9,1);STICKLINE(VOL AND Var6<18,0,V ar2*0.5,5,0),coloryellow;〖觅庄建仓〗:0,coloryellow;5>1/WINNER(CLOSE) AND Var6<18;控盘强弱Vur1:=VOL/CAPITAL;Vur2:=1.1*(MAX(HIGH,REF(CLOSE,1))/MIN(LOW,REF(CLOSE,1))-1);Vur3:=2.5*MAX(Vur1,Vur2);Vur4:=DMA(CLOSE,Vur3);Vur5:=20*(Vur4/REF(Vur4,1)-1)*38;Vur6:=EMA(Vur5,2);Vur7:=EMA(Vur5,2);Vur8:=EMA(Vur7,3);VurS:=EMA(Vur7,8);Vur9:=1.1*(MAX(INDEXH,REF(INDEXC,1))/MIN(INDEXL,REF(INDEXC,1))-1); VurA:=2.5*MAX(Vur1,Vur9);VurB:=DMA(INDEXC,VurA);VurC:=EMA(20*(VurB/REF(VurB,1)-1),1)*38;VurD:=EMA(VurC,2);VurE:=EMA(VurC,2);D强:STICKLINE(VurD>0,0,VurD,6.5,1),colorB210E4;D弱:STICKLINE(VurD<0,0,VurD,6.5,1),colorFFA6A6;极强:STICKLINE(Vur5>0,0,Vur5,6.5,0),COLORYELLOW;强势:STICKLINE(Vur6>0,0,Vur6,6.5,0),COLORRED;极弱:STICKLINE(Vur5<0,0,Vur5,6.5,0),color10D010;弱势:STICKLINE(Vur6<0,0,Vur6,6.5,0),colorE4E410;DX:VurE,color1088FF,LINETHICK2;界:VurS,color6CBC10,LINETHICK2;控:Vur8,colorFF10FF;指:Vur7,color10E4E4;V1:=(C*2+H+L)/4*10;V2:=EMA(V1,13)-EMA(V1,34);V3:=EMA(V2,5);V4:=2*(V2-V3)*5.5;庄秘撤: IF(V4<=0,V4,0),COLOR00FF00,LINETHICK2;庄秘进: IF(V4>=0,V4,0),COLORFF00FF,LINETHICK2;V5:=(HHV(INDEXH,8)-INDEXC)/(HHV(INDEXH,8)-LLV(INDEXL,8))*8;V6:=EMA(3*V5-2*SMA(V5,18,1),5);V7:=(INDEXC-LLV(INDEXL,8))/(HHV(INDEXH,8)-LLV(INDEXL,8))*10;V8:=(INDEXC*2+INDEXH+INDEXL)/4;V9:=EMA(V8,13)-EMA(V8,34);V A:=EMA(V9,3);VB:=(V9-VA)/2;大筹金进场: IF(VB>=0,VB,0),COLORYELLOW,LINETHICK2;大筹金撤走: IF(VB<=0,VB,0),COLORBLUE,LINETHICK2;aa:=WINNER(CLOSE+CLOSE*15/100)*100;bb:=WINNER(CLOSE+CLOSE*0/100)*100;cc:=aa-bb;dd:=(WINNER(CLOSE-CLOSE*0.1/100)-WINNER(CLOSE-CLOSE*15/100))*100; ee:=cc<3 and dd<0.5 and OPEN<>LOW;a1:=DYNAINFO(6);a2:=IF(LOW>a1,0,IF(HIGH<a1,1,(a1-LOW+0.01)/(HIGH-LOW+0.01)));a3:=VOL/WINNER(LOW);a4:=REF(HHV(CLOSE,120),1);a5:=REF(LLV(CLOSE,120),1);a6:=100*(CLOSE-a5)/(a4-a5);a7:=a2>0 or a2=1;a8:=a7 and a3/REF(a3,3)>=3 and a6<80;a9:=REF(a8,1) or REF(a8,2) or REF(a8,3) or REF(a8,4);a10:=a8 and a9;a11:=IF(FILTER(a8,3),5,0);a12:=IF(FILTER(a10,3) or ee,10,0);筹码进场日:IF(a11,8,0),LINETHICK0;STICKLINE(a12,0,15,5,0),colorff00ff;筹码加仓日:IF(a12,88,0),LINETHICK0;STICKLINE(a12,0,15,5,0),colorff00ff;STICKLINE(a11,0,5,5,0),colorff7700;STICKLINE(a11,0,5,4.5,0),colorff8800;STICKLINE(a11,0,5,4,0),colorff9900;STICKLINE(a11,0,5,3.5,0),colorffaa00;STICKLINE(a11,0,5,3,0),colorffbb00;STICKLINE(a11,0,5,2.5,0),colorffcc00;STICKLINE(a11,0,5,2,0),colorffdd00;STICKLINE(a11,0,5,1,0),colorffee00;STICKLINE(a12,0,15,4.5,0),color102099;STICKLINE(a12,0,15,4,0),color1020aa;STICKLINE(a12,0,15,3.5,0),color1020bb;STICKLINE(a12,0,15,3,0),color1020cc;STICKLINE(a12,0,15,2.5,0),color1020dd;STICKLINE(a12,0,15,2,0),color1020ee;STICKLINE(a12,0,15,1,0),color1020ff;DRAWTEXT(a11,8,'筹码进场');DRAWTEXT(a12,17,'筹码加仓');Var1:=REF(LOW,1);Var2:=SMA(ABS(LOW-Var1),13,1)/SMA(MAX(LOW-Var1,0),13,1)*4;Var3:=EMA(Var2,13);Var4:=LLV(LOW,34);Var5:=EMA(IF(LOW<=Var4,Var3,0),3);主力进场:IF(Var5>REF(Var5,1),V AR5,0),COLORred,LINETHICK2;STICKLINE(Var5>REF(Var5,1),0,V ar5,7,0 ),COLORRED;洗盘:IF(V AR5<REF(VAR5,1),V AR5,0),COLORGREEN,LINETHICK2;STICKLINE(V AR5<REF(V AR5,1),0,V AR5,2,1),COLORGREEN;Var6:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SM A(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);Var7:=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);Var8:=Var6<REF(Var7,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1); DRAWTEXT(V ar8 AND COUNT(Var8,30)=1,40,'★有筹码进场');天使报佳音vor03:=EMA(c,3);vor07:=EMA(c,7);vor13:=EMA(c,13);vor21:=EMA(c,21);vor34:=EMA(c,34);vor55:=EMA(c,55);y03:EMA(vor03,3),linethick1,colorred;y07:EMA(vor07,7),linethick1,COLOR0099FF;y13:EMA(vor13,13),linethick1,coloryellow;y21:EMA(vor21,21),linethick1,colorblue;y34:EMA(vor34,34),linethick1,colorcf88ee;y55:EMA(vor55,55),linethick1,colorwhite;vor023:=hhv(y03,3)/hhv(h,3);vor027:=hhv(y07,7)/hhv(h,7);vor213:=hhv(y13,13)/hhv(h,13);vor221:=hhv(y21,21)/hhv(h,21);vor234:=hhv(y34,34)/hhv(h,34);vor255:=hhv(y55,55)/hhv(h,55);vor33:=c*vor023;vor37:=c*vor027;vor313:=c*vor213;vor321:=c*vor221;vor334:=c*vor234;vor355:=c*vor255;vor43:=longcross(vor023,y03+0.1,10);vor47:=longcross(vor027,y07+0.1,10);vor413:=longcross(vor313,y13+0.1,10);vor421:=longcross(vor321,y21+0.1,10);vor434:=longcross(vor334,y21+0.1,10);vor455:=longcross(vor355,y55+0.1,10);DRAWICON(vor413,HIGH*1.235,1);DRAWICON(vor421,HIGH*1.235,1);DRAWICON(vor434,HIGH*1.35,1);DRAWICON(vor455,HIGH*1.46,1);stickline(vor43,if(c>0,llv(y03,22),y03),if(c>0,hhv(y03,22),y03),6,0),colorred;stickline(vor47,if(c>0,llv(y07,33),y07),if(c>0,hhv(y07,33),y07),6,0),COLOR0099FF;stickline(vor413,if(c>0,llv(y13,44),y13),if(c>0,hhv(y13,44),y13),6,0),coloryellow;stickline(vor421,if(c>0,llv(y21,55),y21),if(c>0,hhv(y21,55),y21),6,0),colorblue;stickline(vor434,if(c>0,llv(y34,66),y34),if(c>0,hhv(y34,66),y21),6,0),colorcf88ee;stickline(vor455,if(c>0,llv(y55,88),y55),if(c>0,hhv(y55,88),y21),6,0),colorwhite;资金流量PJJ:=DMA((((HIGH + LOW) + (CLOSE * 2)) / 4),0.9);JJ:=REF(EMA(PJJ,3),1);QJJ:=(VOL / (((HIGH - LOW) * 2) - ABS((CLOSE - OPEN))));XVL:=(IF((CLOSE > OPEN),(QJJ * (HIGH - LOW)),IF((CLOSE < OPEN),(QJJ * ((HIGH - OPEN) + (CLOSE - LOW))),(VOL / 2))) + IF((CLOSE > OPEN),(0 - (QJJ * ((HIGH - CLOSE) + (OPEN - LOW)))),IF((CLOSE < OPEN),(0 - (QJJ * (HIGH - LOW))),(0 - (VOL / 2)))));ZLL:=(VOL / CAPITAL);HSL1:=IF((ZLL > 10),10,ZLL);HSL:=((XVL / 20) / 1.15);攻击流量:=(((HSL * 0.55) + (REF(HSL,1) * 0.33)) + (REF(HSL,2) * 0.22));STICKLINE(((HSL * 0.4) >= 0),((HSL * 0.4) * 1.5),0,1,0),color808080;STICKLINE(((HSL * 0.4) < 0),((HSL * 0.4) * 1.5),0,1,0),color808080;GJJ:=EMA(攻击流量,8);LLJX:=EMA(攻击流量,3);资金流量:LLJX,LINETHICK0,color0000FF;STICKLINE((资金流量> 0),资金流量,0,7,0),color0000FF;STICKLINE((资金流量< 0),资金流量,0,7,0),colorFF0000;流量基线:GJJ,color00FFFF;ZJLL:=REF(LLJX,1);QZJJ:=(((LLJX - ZJLL) / ZJLL) * 100);流量增幅:IF(((LLJX > 0) AND (ZJLL < 0)),ABS(QZJJ),IF((((LLJX < 0) AND (ZJLL < 0)) AND (LLJX < ZJLL)),(0 - QZJJ),QZJJ)),LINETHICK0;力度:(HSL / 1000),LINETHICK0;周流量:SUM(LLJX,5),LINETHICK0;BB:=REF(周流量,1);ZQZJJ:=(((周流量- BB) / BB) * 100);周增幅:IF(((周流量> 0) AND (BB < 0)),ABS(ZQZJJ),IF((((周流量< 0) AND (BB < 0)) AND (周流量< BB)),(0 - ZQZJJ),ZQZJJ)),LINETHICK0;0,color808080;庄见愁获利线:EMA(WINNER(C)*100,3),colorwhite;庄筹线:EMA(WINNER(C)*70,5),colorred,linethick2;散筹线:EMA((WINNER(C*1.1)-WINNER(C*0.9))*70,5),coloryellow,linethick2;收:=winner(C)*100;开:=winner(O)*100;博弈K线长:MAX(ABS(收-开),ABS(收-REF(收,1))),pointdot,colorwhite;STICKLINE(庄筹线>散筹线,庄筹线,散筹线,0,0),COLOrwhite;stickline(收>=REF(收,1),0,博弈K线长,4,0),colorred;stickline(收<=REF(收,1),0,博弈K线长,4,0),color00ff00;{庄筹线:EMA(WINNER(C)*70,5), colorred, linethick2;散筹线:EMA((WINNER(C*1.1)-WINNER(C*0.9))*80,5),colorgreen, linethick2;}5,colorwhite,pointdot;20,coloryellow,pointdot;40,colorffcc66,pointdot;60,colorff00ff,pointdot;cc:FILTER((CROSS(5,庄筹线) and 散筹线<20 )*60,10 ),colorff00ff;DRAWTEXT(cc ,60 ,'海底捞活鱼(抄底)' ),colorff00ff;aa:= ref(庄筹线,30)>40 or ref(庄筹线,20)>40;aa1:=cross(庄筹线,散筹线);DRAWTEXT(AA1,70,'鸡雀升天'),color00ff00;bb:=CROSS(28,庄筹线) and 散筹线>40 and aa=1 and LLV(l ,60 )>LLV(l ,250 ); DRAWTEXT(bb,30,'决战诱空'),colorwhite;IF(bb,30,60 ),colorffcccc;135均线法则EMA13:EMA(C,13),COLORBLUE,LINETHICK2;EMA17:EMA(C,17),COLORRED,LINETHICK2;EMA34:EMA(C,34),COLORGREEN;EMA55:EMA(C,55),COLORFF00FF;EMA120:EMA(C,120),COLORFFCC66;AR1:=EMA55>EMA34 AND EMA34>EMA13;AR2:=BARSLAST((C-EMA13)/EMA13*100<-6);AR3:=EMA13>=REF(EMA13,2);AR4:=COUNT(CROSS(C,EMA13),AR2)=1;AR5:=AR1 AND AR2 AND AR3 AND AR4;AR6:=AR5 AND FILTER(AR5,10);DRAWTEXT(AR6,L-0.09,'红杏出墙'),COLORYELLOW;{STICKLINE(AR6,H,L,0.5,1),COLORYELLOW;STICKLINE(AR6,O,C,6,1),LINETHICK2,COLORYELLOW;}BR1:=COUNT(BETWEEN((C-REF(C,1))/REF(C,1)*100,0,5) ,5)=5;BR2:=ABS((EMA13-EMA34)+(EMA34-EMA55))/C<0.2;BR3:=C>EMA55 AND (REF(C,1)<REF(EMA55,1) OR REF(C,2)<REF(EMA55,2) OR REF(C,3)<REF(EMA55,3) OR REF(C,4)<REF(EMA55,4) OR REF(C,5)<REF(EMA55,5));BR4:=BR1 AND BR2 AND BR3;DRAWTEXT(BR4 AND FILTER(BR4,10),L-0.09,'蚂蚁上树'),COLOR00C5FF; {STICKLINE(BR4 AND FILTER(BR4,10),H,L,0.5,1),COLOR00C5FF;STICKLINE(BR4 AND FILTER(BR4,10),O,C,6,1),LINETHICK2,COLOR00C5FF;}CR1:=(C-REF(C,1))/REF(C,1)*100>0.5;CR2:=V>MA(V,5)*0.6;CR3:=COUNT(CROSS(EMA13,EMA55),3)=1;CR4:=ABS(EMA34-EMA55)/EMA55<0.03;CR5:=EMA55<=EMA120 AND EMA55>=REF(EMA55,1);CR6:=FILTER(CR1 AND CR2 AND CR3 AND CR4 AND CR5,2);{STICKLINE(CR6,H,L,0.5,1),COLORF00FF0;STICKLINE(CR6,O,C,6,1),LINETHICK2,COLORF00FF0;}DRAWTEXT(CR6,L-0.09,'红衣侠女'),COLORF00FF0;DR1:=EMA13>EMA34 AND EMA34<EMA55;DR2:=BARSLAST(CROSS(C,EMA55) );DR3:=H=HHV(H,DR2);DR4:=BARSLAST(DR3);DR5:=COUNT(O>C AND C<REF(C,1) AND C>EMA55 AND BETWEEN((C-EMA55)/EMA55,0,0.02),DR4)=1;DR6:=C>REF(C,1) ;DR7:= DR1 AND DR5 AND DR6 ;DR8:=DR7 AND FILTER(DR7 ,10);DRAWTEXT(DR8,L-0.09,'黑客点击'),COLORD6BA63;{STICKLINE(DR8,H,L,0.5,1),COLORD6BA63;STICKLINE(DR8,O,C,6,1),LINETHICK2,COLORD6BA63;}ER:=BARSLAST(REF(CROSS(EMA55,EMA34),1)) AND CROSS(EMA34,EMA55); DRAWTEXT(ER,L-0.09,'均线互换'),COLOR0099FF;{STICKLINE(ER,H,L,0.5,1),COLOR0099FF;STICKLINE(ER,O,C,6,1),LINETHICK2,COLOR0099FF;}FR:=BARSLAST(REF(CROSS(EMA34,EMA13),1)) AND CROSS(EMA13,EMA34);DRAWTEXT(FR,L-0.09,'梅开二度'),COLORWHITE;{STICKLINE(FR,H,L,0.5,1),COLORWHITE;STICKLINE(FR,O,C,6,1),LINETHICK2,COLORWHITE;}GR1:=BARSLAST(BETWEEN("BIAS.BIAS2"(6,13,24),0,5) );GR2:=EMA13>EMA34 AND EMA34>EMA55 AND EMA13>REF(EMA13,1);GR3:=COUNT("BIAS.BIAS2"(6,13,24)>10 AND H=HHV(H,GR1),GR1);GR4:=H=HHV(H,GR1);GR5:="MACD.MACD"(12,26,9)<REF("MACD.MACD"(12,26,9),1);GR6:=GR2 AND GR3 AND GR4;GR7:=GR2 AND GR3 AND GR4 AND GR5;DRAWTEXT(GR6 AND GR7,H+0.13,'*!'),COLOR00FF00;STICKLINE(GR6 AND GR7,H,H+0.09,4,0),COLOR00FF00;HR2:=EMA13>=REF(EMA13,3) AND EMA34>=REF(EMA34,1) AND EMA55>=REF(EMA55,1) AND CROSS(C,EMA13) AND CROSS(C,EMA34) AND CROSS(C,EMA55);DRAWTEXT(HR2 AND FILTER(HR2,10),L-0.09,'三线推进'),COLORFFC8FF;STICKLINE(HR2 AND FILTER(HR2,10),H,L,0.5,1),COLORFFC8FF;STICKLINE(HR2 AND FILTER(HR2,10),O,C,6,1),LINETHICK2,COLORFFC8FF;。
大智慧指标《1》
公式名:庄家行踪。
是副图。
Var1:=EMA(EMA(CLOSE,13),13);控盘:= (Var1-REF(Var1,1))/REF(Var1,1)*1000,colorffcccc,pointdot; STICKLINE(控盘<0,控盘,0,4,0),colorwhite;无庄控盘:0,colorwhite;STICKLINE(控盘>REF(控盘,1) AND 控盘>0,控盘,0,4,1),colorred;有庄控盘: 0,colorred;Var2:=100*WINNER(CLOSE*0.95);STICKLINE(控盘<REF(控盘,1) AND 控盘>0,控盘,0,4,0),color00ff00; 主力出货: 0,color00ff00;STICKLINE(Var2>50 AND COST(85)<CLOSE AND 控盘>0,控盘,0,4,0),colorff00ff;高度控盘: 0,colorff00ff;a10:=CROSS(控盘,0);开始控盘:if(a10,3,0),coloryellow;使用说明:X轴线有向上锐角尖时,为短线介入信号。
公式名:分水岭主图A:=MA(CLOSE,17)+ABS(MA(CLOSE,17)-REF(MA(CLOSE,17),1));B:=MA(CLOSE,17)+MA(CLOSE,17)-REF(MA(CLOSE,17),1);分水岭:IF(MA(CLOSE,17)<B,B,MA(CLOSE,17)),COLORFF00FF,LINETHICK2;操作线:分水岭-(EMA(C,3)-分水岭),COLOR00FFFF,LINETHICK2;PM:Ma(C,5),COLORred,linethick2;IF (PM>分水岭,PM,pm),Color0000FF,linethick2;IF (PM>分水岭,分水岭,a),ColoR00ff00,POINTDOT,linethick4;IF (C<PM,PM,PM),ColorFF9900,linethick2;IF (PM<分水岭,分水岭,pm),Color0000FF,linethick2;DRAWICON(CROSS(分水岭,操作线),分水岭-0.02,1);{顶底背离}A1:=BARSLAST(ref(cross("macd.diff"(12,26,9),"macd.dea"(12,26,9)),1)); B1:=ref(c,A1+1)>c andref("macd.diff"(12,26,9),A1+1)<"macd.diff"(12,26,9) andcross("macd.diff"(12,26,9),"macd.dea"(12,26,9));DRAWTEXT(FILTER(B1>0,5),L-0.12,'M底'),COLORRED;A2:=BARSLAST(ref(cross("kdj.k"(9,9,3),"kdj.d"(9,9,3)),1));B2:=ref(c,A2+1)>c and ref("kdj.k"(9,9,3),A2+1)<"kdj.k"(9,9,3) and cross("kdj.k"(9,9,3),"kdj.d"(9,9,3));DRAWTEXT(FILTER(B2>0,5),L-0.08,'K底'),COLORFF00FF;A3:=BARSLAST(ref(cross("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24)),1));B3:=ref(c,A3+1)>c and ref("RSI.RSI1"(6,12,24),A3+1)<"RSI.RSI1"(6,12,24) and cross("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24));DRAWTEXT(FILTER(B3>0,5),L-0.02,'R底'),COLORffcc66;C1:=BARSLAST(ref(cross("macd.dea"(12,26,9),"macd.diff"(12,26,9)),1)); D1:=ref(c,C1+1)<c andref("macd.diff"(12,26,9),C1+1)>"macd.diff"(12,26,9) andcross("macd.dea"(12,26,9),"macd.diff"(12,26,9));DRAWTEXT(FILTER(D1>0,5),H+0.24,'M顶'),COLOR0066FF;C2:=BARSLAST(ref(cross("kdj.d"(9,9,3),"kdj.k"(9,9,3)),1));D2:=ref(c,C2+1)<c and ref("kdj.k"(9,9,3),C2+1)>"kdj.k"(9,9,3) and cross("kdj.d"(9,9,3),"kdj.k"(9,9,3));DRAWTEXT(FILTER(D2>0,5),H+0.16,'K顶'),COLOR00FF00;C3:=BARSLAST(ref(cross("RSI.RSI2"(6,12,24),"RSI.RSI1"(6,12,24)),1));D3:=ref(c,C3+1)<c and ref("RSI.RSI1"(6,12,24),C3+1)>"RSI.RSI1"(6,12,24) and cross("RSI.RSI2"(6,12,24),"RSI.RSI1"(6,12,24));DRAWTEXT(FILTER(D3>0,5),H+0.08,'R顶'),COLORffffCC;公式名:准确无误买卖点主图MA3:MA(CLOSE,4),ColorFFFfff,linethick1;MA8:MA(CLOSE,8),Color208fff,linethicK1;MA49:=MA(CLOSE,49),Color00ff00,linethick1;angel:=EMA(C,2),colorf00ff0;devil:EMA(SLOPE(C,21)*20+C,42),pointdot,colorf00ff0,linethick3; BUY:=cross(angel,devil);SEL:=cross(devil,angel);stickline(cross(angel,devil) or cross(devil,angel),open,close,5,0),colorf00ff0;drawtext(buy,LOW*0.99,'↑买'),coloryellow,linethick3;drawtext(sel,HIGH*1.03,'↓卖'),color00ff00,linethick3;z:zig(3,5),color00ffff,linethick2;var3:=PEAKBARS(3,5,1)<10;var5:=IF(var3=1,2,0);顶:= IF(var5=2,2,0);顶A:if(顶>ref(顶,1),50,0),color00ff00,linethick2;DRAWTEXT(顶A=50,45,'↓快走'),COLORccff66;公式名:多空电波副图Var2:=(3*CLOSE+LOW+OPEN+HIGH)/6;Var3:=(20*Var2+19*REF(Var2,1)+18*REF(Var2,2)+17*REF(Var2,3)+16*REF(Va r2,4)+15*REF(Var2,5)+14*REF(Var2,6)+13*REF(Var2,7)+12*REF(Var2,8)+11* REF(Var2,9)+10*REF(Var2,10)+9*REF(Var2,11)+8*REF(Var2,12)+7*REF(Var2, 13)+6*REF(Var2,14)+5*REF(Var2,15)+4*REF(Var2,16)+3*REF(Var2,17)+2*REF (Var2,18)+REF(Var2,20))/210;Var4:=MA(Var3,13);Var5:=EMA(MA(CLOSE,3),34);Var6:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;Var7:=MA(Var6,5);Var8:=MA(Var6,10);〖空头市场〗:STICKLINE(IF(Var3<Var5,Var3<=1.015*Var4,Var3<=1.005*Var4),Var3,Var4,1 0,1),COLOR006600;〖多头市场〗: STICKLINE(Var3>1.005*Var4,Var3,Var4,10,1),COLOR003366; 『脑电波上升』:DRAWTEXT(FILTER(MA(Var6,10)<Var7,1),Var8,'↑'),COLORRED;『脑电波下跌』:DRAWTEXT(FILTER(MA(Var6,10)>=Var6,1),Var8,'↓'),COLORGREEN;『多空安全线』: Var5,COLORWHITE;〖关注点〗: STICKLINE(COUNT(Var3>1.005*Var4 AND Var3<=REF(Var3,1),2)=2 OR COUNT(IF(Var3<Var5,Var3<=1.015*Var4,Var3<=1.005*Var4) ANDVar3>=REF(Var3,1),2)=2,Var3,Var4,10,0), COLORYELLOW;★买入点: DRAWTEXT(REF(CROSS(Var3,Var4),2) ANDVar3>1.005*Var4,Var4,'★买入点'),COLOR999966 ;『多空争夺点』: DRAWTEXT(CROSS(Var6,Var7) ANDVar7<Var8,Var3*0.99,'▲'),COLORBLUE;DRAWTEXT(CROSS(Var7,Var6) AND Var7>Var8,Var3*1.01,'▼'),COLORBLUE;Var9:=1/WINNER(CLOSE);VarA:=MA(CLOSE,13);VarB:=100-ABS((CLOSE-VarA)/VarA*100);VarC:=LLV(LOW,75);VarD:=HHV(HIGH,75);VarE:=(VarD-VarC)/100;VarF:=SMA((CLOSE-VarC)/VarE,20,1);Var10:=SMA((OPEN-VarC)/VarE,20,1);Var11:=3*VarF-2*SMA(VarF,15,1);Var12:=3*Var10-2*SMA(Var10,15,1);Var13:=100-Var12;Var14:=100-Var11;Var15:=MA(WINNER(CLOSE*0.95)*100,3);Var16:=100-IF(Var9>5,IF(Var9<100,Var9,VarB-10),0);Var17:=Var15>VarB;Var18:=REF(LOW,1)*0.9;Var19:=LOW*0.9;Var1A:=(Var19*VOL+Var18*(CAPITAL-VOL))/CAPITAL;Var1B:=EMA(Var1A,30);Var1C:=CLOSE-REF(CLOSE,1);Var1D:=MAX(Var1C,0);Var1E:=ABS(Var1C);Var1F:=SMA(Var1D,7,1)/SMA(Var1E,7,1)*100;Var20:=SMA(Var1D,13,1)/SMA(Var1E,13,1)*100;Var21:=BARSCOUNT(CLOSE);Var22:=SMA(MAX(Var1C,0),6,1)/SMA(ABS(Var1C),6,1)*100;Var23:=(-200)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+100; Var24:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;Var25:=SMA((SMA(Var24,4,1)-50)*2,3,1);Var26:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100; Var27:=SMA(Var26,4,1);Var28:=SMA(Var27,3,1);Var29:=(HHV(HIGH,30)-CLOSE)/CLOSE*100;Var2A:=Var22<=25 AND Var23<-95 AND Var29>20 AND Var25<-30 AND Var28<30 AND Var1B-CLOSE>=-0.25 AND Var1F<22 AND Var20<28 AND Var21>50; DRAWTEXT(CROSS(Var2A,0.5) AND COUNT(Var2A=1,10)=1,Var4,'发射资金♂(超短线操作)'),COLORRED;DRAWTEXT(CROSS(Var17,0.5) AND COUNT(Var17=1,10)=1,Var3,'激烈交锋'),COLORWHITE;大智慧指标公式5公式名:绝对趋势主图主线:=(ma(close,6)+ma(close,12)+ma(close,24)+ma(close,36))/4;股价重心:=dma(amount/vol/100,vol/capital);ma14:=ema(close,14);ma34:=ema(close,26);ma54:=ema(close,54);ma90:=ema(close,90);ma120:ema(close,120),pointdot,linethick2,colorwhite;年线:ema(c,250),coloryellow;{中短波}hz:=ema(close,13);短波:ema(hz,1),color00dd00,linethick1;中波:ema(hz,26),colorred,linethick1;均线:=ema(c,148);成本:=sum(amount,0)/sum(vol,0)/100 ;hz2:ema(hz,8),colorgreen,linethick2;hz4:ema(hz,39),colorff00ff,linethick2;a1:stickline(hz2<hz4,短波,hz4,1.5,0),colorblue ;a2:stickline(短波>hz2,短波,hz2,3,0),colorgreen;a3:stickline(中波>hz4,中波,hz4,2,0),colorff00ff;{慢速kdj}rsv:=(close-llv(low,60))/(hhv(high,60)-llv(low,60))*100;fastk:=sma(rsv,12,1);k:=sma(fastk,9,1);d:=sma(k,3,1);j:=3*k-2*d;{中波}var11:=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);var22:=100-var11;中势线:=(-1)*(ema(var22,1)-50)+42;tz:=(close-llv(low,331))/(hhv(high,331)-llv(low,331))*100;强势线:=sma(tz,5,1);大盘线:=70*(hhv(high,39)-close)/(hhv(high,39)-llv(low,39));{量选}aa:=vol/sum(vol,13);bb:=dma(c,aa);cc:=vol/sum(vol,34);dd:=dma(c,cc);{背离}var00:=winner(close);var1:=forcast(var00,10);var2:=ma(var1,3);var3:=ma(var2,12);var4:=ma(var3,16);var5:=ma(var4,31);var6:=ma(var5,55);var7:=var5;var8:=var4>var2*1.11 and var3>var2*1.095;a:=var4/var2;b:=var3/var2;var9:=var2>var1*0.95;td:=var2/var1;var1h:=indexc;var2h:=ma(var1h,6);var3h:=ma(var1h,24);var4h:=ma(var1h,32);var5h:=ma(var1h,62);var6h:=ma(var1h,105);var7h:=var5h;var8h:=var4h>var2h*1.11 and var3h>var2h*1.095;var9h:=var2h>var1h*0.95;pt:=(if(h=l and c=o and l=c and c>0 and ref(h,1)=ref(l,1) andref(c,1)=ref(o,1)and ref(h,1)=ref(c,1) and ref(c,1)>0,0,1))>0;g:=(var7h and var8h and var9h and close/cost(8)<=0.7985and (count(c=l,4)<3 or c>ref(c,1)))and pt orvar7 and var8 and var9 and close/cost(5)<=0.8 and((var1>open or var1>ref(open,1) orref(var1,1)));背离:=var2<ref(var2,1) and a>ref(a,1);买入:=var1>a and var2>b;信号:=b>a and 1>b and a<1 and h=hhv(h,21);drawicon(cross(短波,hz2),中波,1);drawtext(FILTER(cross(主线,ma90) and 大盘线<36 and j>k and 强势线>ref(强势线,1) and 中势线>ref(中势线,1) and 短波-ref(短波,1)>0.088 and hz4-ref(hz4,1)>0.028 orcross(主线,ma120) and 大盘线<36 and j>k and 强势线>ref(强势线,1) and 中势线>ref(中势线,1) and 短波-ref(短波,1)>0.088 and hz4-ref(hz4,1)>0.028 orcross(ma120,均线) and 大盘线<36 and j>k and 强势线>ref(强势线,1) and 中势线>ref(中势线,1) and 短波-ref(短波,1)>0.088 and hz4-ref(hz4,1)>0.028orcross(中势线,33) and 短波>hz2 and o>ref(o,1) and c>ref(c,1) and j>d and j<65 and 大盘线<36 and 强势线>36 and 主线>ref(主线,1)and 强势线>ref(强势线,1) and 中势线>ref(中势线,1) and 中势线<70 and c>o and ma34>ref(ma34,1) and 短波-ref(短波,1)>0.088 andhz4-ref(hz4,1)>0.028 orcross(短波,hz2) and 大盘线<36 and 短波>中波 and 中波>hz4 and 短波-ref(短波,1)>0.088 and hz4-ref(hz4,1)>0.028 orj>k and 大盘线<36 and 短波>hz2 and cross(强势线,36) or cross(短波,hz2) and cross(强势线,36) or cross(j,k) and cross(强势线,33)or cross(短波,hz2) and cross(强势线,54)or cross(j,k) and 大盘线<36 and j<65 and c>o and 短波-ref(短波,1)>0.088 orcross(j,k) and 短波>hz2 and j<68 and 短波>ref(短波,1) andhz2>ref(hz2,1) and 中势线>ref(中势线,1) and 短波-ref(短波,1)>0.088 or cross(j,k) and 大盘线<36 and j<68 and 短波-ref(短波,1)>0.088 orcross(j,k) and cross(短波,hz2) and 大盘线<36 orcross(短波,hz2) and 大盘线<36 and j>k and j<68 and 强势线>ref(强势线,1) and 中势线>ref(中势线,1) and 短波-ref(短波,1)>0.088 orcross(短波,hz2) and 中波>ma120 and 中波>均线 and hz2>ma120 and ma120>均线 and 短波-ref(短波,1)>0.088 orcross(j,k) and 强势线>54 and 强势线>ref(强势线,1) and j<68or count(背离,20)>1 and 短波>hz2 and o>ref(o,1) and c>ref(c,1) and j>d and j<65 and 信号=1 and 主线>ref(主线,1)and 中势线>ref(中势线,1) and 中势线<70 and c>o or cross(bb,dd) and j<74 and ma34>ref(ma34,1) and 短波-ref(短波,1)>0.088 or大盘线<36 and j>d and j<65 and c>o and 短波>ref(短波,1) and cross(hz2,中波) and 短波-ref(短波,1)>0.088 and o>ref(c,1) orc>o and 短波>ref(短波,1) and j>d and j<65 and 大盘线<36 and cross(中势线,33) and 中势线-ref(中势线,1)>0.23 and 短波-ref(短波,1)>0.088and o>ref(c,1) and 强势线>12 or短波>hz2 and 中波>hz4 and 大盘线<36 and cross(j,k) and j<65 and 短波-ref(短波,1)>0.088 or短波>hz2 and 大盘线<36 and cross(j,k) and j<65 and 短波-ref(短波,1)>0.088 or cross(j,k) and cross(短波,hz2) and 大盘线<36 and j<56 or 短波>hz2 and 中波>hz4 and 大盘线<36 and j>d and j<65 and cross(hz4,年线) and 短波-ref(短波,1)>0.088 or短波>hz2 and hz2>hz4 and 大盘线<36 and j>d and j<65 and j<65 and cross(强势线,46) and 短波-ref(短波,1)>0.088 or短波>hz2 and 大盘线<36 and j>d and j<65 and cross(中势线,36) and 短波-ref(短波,1)>0.088,8),hz2-0.18,'追'),colorwhite;drawtext(cross(短波,hz2) and c>o and j>k and j>d and 大盘线<36 and c>h z4,l*1.09,'●'),coloryellow;drawtext(cross(短波,hz2) and c>o and j>k and j>d and 大盘线<36 and c>hz4,l*1.12,'做趋势'), coloryellow;公式名:八线系统主图七天线:eMA(CLOSE,7);持股线:eMA(CLOSE,15),colorred,linethick2;生命线:eMA(CLOSE,25);初月线:eMA(CLOSE,34),colorYellow;双月线:eMA(CLOSE,56),Color0099FF;长牛线:eMA(CLOSE,235);牛熊线:eMA(CLOSE,453),colorwhite;副图七根均价线设置完成,如果主图无显示,回车后键入“MA”,确认即可。
最新大智慧指标公式
大智慧指标公式觅庄建仓REFLINE: 0, ,, , ;Var2:=1/WINNER(CLOSE);Var3:=100-ABS((CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100);STICKLINE(Var2>5,Var3<100,Var2,5,0),;Var4:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;Var5:=SMA(Var4,5,1);Var6:=SMA(Var5,9,1);STICKLINE(VOL AND Var6<18,0,Var2*0.5,5,0),coloryellow;〖觅庄建仓〗:0,coloryellow;5>1/WINNER(CLOSE) AND Var6<18;控盘强弱Vur1:=VOL/CAPITAL;Vur2:=1.1*(MAX(HIGH,REF(CLOSE,1))/MIN(LOW,REF(CLOSE,1))-1);Vur3:=2.5*MAX(Vur1,Vur2);Vur4:=DMA(CLOSE,Vur3);Vur5:=20*(Vur4/REF(Vur4,1)-1)*38;Vur6:=EMA(Vur5,2);Vur7:=EMA(Vur5,2);Vur8:=EMA(Vur7,3);VurS:=EMA(Vur7,8);Vur9:=1.1*(MAX(INDEXH,REF(INDEXC,1))/MIN(INDEXL,REF(INDEXC,1))-1); VurA:=2.5*MAX(Vur1,Vur9);VurB:=DMA(INDEXC,VurA);VurC:=EMA(20*(VurB/REF(VurB,1)-1),1)*38;VurD:=EMA(VurC,2);VurE:=EMA(VurC,2);D强:STICKLINE(VurD>0,0,VurD,6.5,1),colorB210E4;D弱:STICKLINE(VurD<0,0,VurD,6.5,1),colorFFA6A6;极强:STICKLINE(Vur5>0,0,Vur5,6.5,0),COLORYELLOW;强势:STICKLINE(Vur6>0,0,Vur6,6.5,0),COLORRED;极弱:STICKLINE(Vur5<0,0,Vur5,6.5,0),color10D010;弱势:STICKLINE(Vur6<0,0,Vur6,6.5,0),colorE4E410;DX:VurE,color1088FF,LINETHICK2;界:VurS,color6CBC10,LINETHICK2;控:Vur8,colorFF10FF;指:Vur7,color10E4E4;主力进场V1:=(C*2+H+L)/4*10;V2:=EMA(V1,13)-EMA(V1,34);V3:=EMA(V2,5);V4:=2*(V2-V3)*5.5;庄秘撤: IF(V4<=0,V4,0),COLOR00FF00,LINETHICK2;庄秘进: IF(V4>=0,V4,0),COLORFF00FF,LINETHICK2;V5:=(HHV(INDEXH,8)-INDEXC)/(HHV(INDEXH,8)-LLV(INDEXL,8))*8;V6:=EMA(3*V5-2*SMA(V5,18,1),5);V7:=(INDEXC-LLV(INDEXL,8))/(HHV(INDEXH,8)-LLV(INDEXL,8))*10;V8:=(INDEXC*2+INDEXH+INDEXL)/4;V9:=EMA(V8,13)-EMA(V8,34);VA:=EMA(V9,3);VB:=(V9-VA)/2;大筹金进场: IF(VB>=0,VB,0),COLORYELLOW,LINETHICK2;大筹金撤走: IF(VB<=0,VB,0),COLORBLUE,LINETHICK2;aa:=WINNER(CLOSE+CLOSE*15/100)*100;bb:=WINNER(CLOSE+CLOSE*0/100)*100;cc:=aa-bb;dd:=(WINNER(CLOSE-CLOSE*0.1/100)-WINNER(CLOSE-CLOSE*15/100))*100; ee:=cc<3 and dd<0.5 and OPEN<>LOW;a1:=DYNAINFO(6);a2:=IF(LOW>a1,0,IF(HIGH<a1,1,(a1-LOW+0.01)/(HIGH-LOW+0.01)));a3:=VOL/WINNER(LOW);a4:=REF(HHV(CLOSE,120),1);a5:=REF(LLV(CLOSE,120),1);a6:=100*(CLOSE-a5)/(a4-a5);a7:=a2>0 or a2=1;a8:=a7 and a3/REF(a3,3)>=3 and a6<80;a9:=REF(a8,1) or REF(a8,2) or REF(a8,3) or REF(a8,4);a10:=a8 and a9;a11:=IF(FILTER(a8,3),5,0);a12:=IF(FILTER(a10,3) or ee,10,0);筹码进场日:IF(a11,8,0),LINETHICK0;STICKLINE(a12,0,15,5,0),colorff00ff;筹码加仓日:IF(a12,88,0),LINETHICK0;STICKLINE(a12,0,15,5,0),colorff00ff;STICKLINE(a11,0,5,5,0),colorff7700;STICKLINE(a11,0,5,4.5,0),colorff8800;STICKLINE(a11,0,5,4,0),colorff9900;STICKLINE(a11,0,5,3.5,0),colorffaa00;STICKLINE(a11,0,5,3,0),colorffbb00;STICKLINE(a11,0,5,2.5,0),colorffcc00;STICKLINE(a11,0,5,2,0),colorffdd00;STICKLINE(a11,0,5,1,0),colorffee00;STICKLINE(a12,0,15,4.5,0),color102099;STICKLINE(a12,0,15,4,0),color1020aa;STICKLINE(a12,0,15,3.5,0),color1020bb;STICKLINE(a12,0,15,3,0),color1020cc;STICKLINE(a12,0,15,2.5,0),color1020dd;STICKLINE(a12,0,15,2,0),color1020ee;STICKLINE(a12,0,15,1,0),color1020ff;DRAWTEXT(a11,8,'筹码进场');DRAWTEXT(a12,17,'筹码加仓');Var1:=REF(LOW,1);Var2:=SMA(ABS(LOW-Var1),13,1)/SMA(MAX(LOW-Var1,0),13,1)*4; Var3:=EMA(Var2,13);Var4:=LLV(LOW,34);Var5:=EMA(IF(LOW<=Var4,Var3,0),3);主力进场:IF(Var5>REF(Var5,1),VAR5,0),COLORred,LINETHICK2; STICKLINE(Var5>REF(Var5,1),0,Var5,7,0 ),COLORRED;洗盘:IF(VAR5<REF(VAR5,1),VAR5,0),COLORGREEN,LINETHICK2; STICKLINE(VAR5<REF(VAR5,1),0,VAR5,2,1),COLORGREEN;Var6:=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);Var7:=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);Var8:=Var6<REF(Var7,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1); DRAWTEXT(Var8 AND COUNT(Var8,30)=1,40,'★有筹码进场');天使报佳音vor03:=EMA(c,3);vor07:=EMA(c,7);vor13:=EMA(c,13);vor21:=EMA(c,21);vor34:=EMA(c,34);vor55:=EMA(c,55);y03:EMA(vor03,3),linethick1,colorred;y07:EMA(vor07,7),linethick1,COLOR0099FF;y13:EMA(vor13,13),linethick1,coloryellow;y21:EMA(vor21,21),linethick1,colorblue;y34:EMA(vor34,34),linethick1,colorcf88ee;y55:EMA(vor55,55),linethick1,colorwhite;vor023:=hhv(y03,3)/hhv(h,3);vor027:=hhv(y07,7)/hhv(h,7);vor213:=hhv(y13,13)/hhv(h,13);vor221:=hhv(y21,21)/hhv(h,21);vor234:=hhv(y34,34)/hhv(h,34);vor255:=hhv(y55,55)/hhv(h,55);vor33:=c*vor023;vor37:=c*vor027;vor313:=c*vor213;vor321:=c*vor221;vor334:=c*vor234;vor355:=c*vor255;vor43:=longcross(vor023,y03+0.1,10);vor47:=longcross(vor027,y07+0.1,10);vor413:=longcross(vor313,y13+0.1,10);vor421:=longcross(vor321,y21+0.1,10);vor434:=longcross(vor334,y21+0.1,10);vor455:=longcross(vor355,y55+0.1,10);DRAWICON(vor413,HIGH*1.235,1);DRAWICON(vor421,HIGH*1.235,1);DRAWICON(vor434,HIGH*1.35,1);DRAWICON(vor455,HIGH*1.46,1);stickline(vor43,if(c>0,llv(y03,22),y03),if(c>0,hhv(y03,22),y03),6,0),colorred; stickline(vor47,if(c>0,llv(y07,33),y07),if(c>0,hhv(y07,33),y07),6,0),COLOR0099FF; stickline(vor413,if(c>0,llv(y13,44),y13),if(c>0,hhv(y13,44),y13),6,0),coloryellow; stickline(vor421,if(c>0,llv(y21,55),y21),if(c>0,hhv(y21,55),y21),6,0),colorblue; stickline(vor434,if(c>0,llv(y34,66),y34),if(c>0,hhv(y34,66),y21),6,0),colorcf88ee; stickline(vor455,if(c>0,llv(y55,88),y55),if(c>0,hhv(y55,88),y21),6,0),colorwhite;资金流量PJJ:=DMA((((HIGH + LOW) + (CLOSE * 2)) / 4),0.9);JJ:=REF(EMA(PJJ,3),1);QJJ:=(VOL / (((HIGH - LOW) * 2) - ABS((CLOSE - OPEN))));XVL:=(IF((CLOSE > OPEN),(QJJ * (HIGH - LOW)),IF((CLOSE < OPEN),(QJJ * ((HIGH - OPEN) + (CLOSE - LOW))),(VOL / 2))) + IF((CLOSE > OPEN),(0 - (QJJ * ((HIGH - CLOSE) + (OPEN - LOW)))),IF((CLOSE < OPEN),(0 - (QJJ * (HIGH - LOW))),(0 - (VOL / 2)))));ZLL:=(VOL / CAPITAL);HSL1:=IF((ZLL > 10),10,ZLL);HSL:=((XVL / 20) / 1.15);攻击流量:=(((HSL * 0.55) + (REF(HSL,1) * 0.33)) + (REF(HSL,2) * 0.22)); STICKLINE(((HSL * 0.4) >= 0),((HSL * 0.4) * 1.5),0,1,0),color808080; STICKLINE(((HSL * 0.4) < 0),((HSL * 0.4) * 1.5),0,1,0),color808080;GJJ:=EMA(攻击流量,8);LLJX:=EMA(攻击流量,3);资金流量:LLJX,LINETHICK0,color0000FF;STICKLINE((资金流量 > 0),资金流量,0,7,0),color0000FF;STICKLINE((资金流量 < 0),资金流量,0,7,0),colorFF0000;流量基线:GJJ,color00FFFF;ZJLL:=REF(LLJX,1);QZJJ:=(((LLJX - ZJLL) / ZJLL) * 100);流量增幅:IF(((LLJX > 0) AND (ZJLL < 0)),ABS(QZJJ),IF((((LLJX < 0) AND (ZJLL < 0)) AND (LLJX < ZJLL)),(0 - QZJJ),QZJJ)),LINETHICK0;力度:(HSL / 1000),LINETHICK0;周流量:SUM(LLJX,5),LINETHICK0;BB:=REF(周流量,1);ZQZJJ:=(((周流量 - BB) / BB) * 100);周增幅:IF(((周流量 > 0) AND (BB < 0)),ABS(ZQZJJ),IF((((周流量 < 0) AND (BB < 0)) AND (周流量 < BB)),(0 - ZQZJJ),ZQZJJ)),LINETHICK0;0,color808080;庄见愁获利线:EMA(WINNER(C)*100,3),colorwhite;庄筹线:EMA(WINNER(C)*70,5),colorred,linethick2;散筹线:EMA((WINNER(C*1.1)-WINNER(C*0.9))*70,5),coloryellow,linethick2; 收:=winner(C)*100;开:=winner(O)*100;博弈K线长:MAX(ABS(收-开),ABS(收-REF(收,1))),pointdot,colorwhite; STICKLINE(庄筹线>散筹线,庄筹线,散筹线,0,0),COLOrwhite;stickline(收>=REF(收,1),0,博弈K线长,4,0),colorred;stickline(收<=REF(收,1),0,博弈K线长,4,0),color00ff00;{庄筹线:EMA(WINNER(C)*70,5), colorred, linethick2;散筹线:EMA((WINNER(C*1.1)-WINNER(C*0.9))*80,5),colorgreen, linethick2;} 5,colorwhite,pointdot;20,coloryellow,pointdot;40,colorffcc66,pointdot;60,colorff00ff,pointdot;cc:FILTER((CROSS(5,庄筹线) and 散筹线<20 )*60,10 ),colorff00ff; DRAWTEXT(cc ,60 ,'海底捞活鱼(抄底)' ),colorff00ff;aa:= ref(庄筹线,30)>40 or ref(庄筹线,20)>40;aa1:=cross(庄筹线,散筹线);DRAWTEXT(AA1,70,'鸡雀升天'),color00ff00;bb:=CROSS(28,庄筹线) and 散筹线>40 and aa=1 and LLV(l ,60 )>LLV(l ,250 ); DRAWTEXT(bb,30,'决战诱空'),colorwhite;IF(bb,30,60 ),colorffcccc;135均线法则EMA13:EMA(C,13),COLORBLUE,LINETHICK2;EMA17:EMA(C,17),COLORRED,LINETHICK2;EMA34:EMA(C,34),COLORGREEN;EMA55:EMA(C,55),COLORFF00FF;EMA120:EMA(C,120),COLORFFCC66;AR1:=EMA55>EMA34 AND EMA34>EMA13;AR2:=BARSLAST((C-EMA13)/EMA13*100<-6);AR3:=EMA13>=REF(EMA13,2);AR4:=COUNT(CROSS(C,EMA13),AR2)=1;AR5:=AR1 AND AR2 AND AR3 AND AR4;AR6:=AR5 AND FILTER(AR5,10);DRAWTEXT(AR6,L-0.09,'红杏出墙'),COLORYELLOW;{STICKLINE(AR6,H,L,0.5,1),COLORYELLOW;STICKLINE(AR6,O,C,6,1),LINETHICK2,COLORYELLOW;}BR1:=COUNT(BETWEEN((C-REF(C,1))/REF(C,1)*100,0,5) ,5)=5;BR2:=ABS((EMA13-EMA34)+(EMA34-EMA55))/C<0.2;BR3:=C>EMA55 AND (REF(C,1)<REF(EMA55,1) OR REF(C,2)<REF(EMA55,2) OR REF(C,3)<REF(EMA55,3) OR REF(C,4)<REF(EMA55,4) ORREF(C,5)<REF(EMA55,5));BR4:=BR1 AND BR2 AND BR3;DRAWTEXT(BR4 AND FILTER(BR4,10),L-0.09,'蚂蚁上树'),COLOR00C5FF; {STICKLINE(BR4 AND FILTER(BR4,10),H,L,0.5,1),COLOR00C5FF; STICKLINE(BR4 AND FILTER(BR4,10),O,C,6,1),LINETHICK2,COLOR00C5FF;} CR1:=(C-REF(C,1))/REF(C,1)*100>0.5;CR2:=V>MA(V,5)*0.6;CR3:=COUNT(CROSS(EMA13,EMA55),3)=1;CR4:=ABS(EMA34-EMA55)/EMA55<0.03;CR5:=EMA55<=EMA120 AND EMA55>=REF(EMA55,1);CR6:=FILTER(CR1 AND CR2 AND CR3 AND CR4 AND CR5,2); {STICKLINE(CR6,H,L,0.5,1),COLORF00FF0;STICKLINE(CR6,O,C,6,1),LINETHICK2,COLORF00FF0;}DRAWTEXT(CR6,L-0.09,'红衣侠女'),COLORF00FF0;DR1:=EMA13>EMA34 AND EMA34<EMA55;DR2:=BARSLAST(CROSS(C,EMA55) );DR3:=H=HHV(H,DR2);DR4:=BARSLAST(DR3);DR5:=COUNT(O>C AND C<REF(C,1) AND C>EMA55 AND BETWEEN((C-EMA55)/EMA55,0,0.02),DR4)=1;DR6:=C>REF(C,1) ;DR7:= DR1 AND DR5 AND DR6 ;DR8:=DR7 AND FILTER(DR7 ,10);DRAWTEXT(DR8,L-0.09,'黑客点击'),COLORD6BA63;{STICKLINE(DR8,H,L,0.5,1),COLORD6BA63;STICKLINE(DR8,O,C,6,1),LINETHICK2,COLORD6BA63;}ER:=BARSLAST(REF(CROSS(EMA55,EMA34),1)) ANDCROSS(EMA34,EMA55);DRAWTEXT(ER,L-0.09,'均线互换'),COLOR0099FF;{STICKLINE(ER,H,L,0.5,1),COLOR0099FF;STICKLINE(ER,O,C,6,1),LINETHICK2,COLOR0099FF;}FR:=BARSLAST(REF(CROSS(EMA34,EMA13),1)) ANDCROSS(EMA13,EMA34);DRAWTEXT(FR,L-0.09,'梅开二度'),COLORWHITE;{STICKLINE(FR,H,L,0.5,1),COLORWHITE;STICKLINE(FR,O,C,6,1),LINETHICK2,COLORWHITE;}GR1:=BARSLAST(BETWEEN("BIAS.BIAS2"(6,13,24),0,5) );GR2:=EMA13>EMA34 AND EMA34>EMA55 AND EMA13>REF(EMA13,1); GR3:=COUNT("BIAS.BIAS2"(6,13,24)>10 AND H=HHV(H,GR1),GR1);GR4:=H=HHV(H,GR1);GR5:="MACD.MACD"(12,26,9)<REF("MACD.MACD"(12,26,9),1);GR6:=GR2 AND GR3 AND GR4;GR7:=GR2 AND GR3 AND GR4 AND GR5;DRAWTEXT(GR6 AND GR7,H+0.13,'*!'),COLOR00FF00;STICKLINE(GR6 AND GR7,H,H+0.09,4,0),COLOR00FF00;HR2:=EMA13>=REF(EMA13,3) AND EMA34>=REF(EMA34,1) ANDEMA55>=REF(EMA55,1) AND CROSS(C,EMA13) AND CROSS(C,EMA34) AND CROSS(C,EMA55);DRAWTEXT(HR2 AND FILTER(HR2,10),L-0.09,'三线推进'),COLORFFC8FF; STICKLINE(HR2 AND FILTER(HR2,10),H,L,0.5,1),COLORFFC8FF; STICKLINE(HR2 AND FILTER(HR2,10),O,C,6,1),LINETHICK2,COLORFFC8FF;。
大智慧逃顶指标公式(看盘必备)
大智慧逃顶指标公式(看盘必备)(2008-10-03 13:51:58)转载(一)大智慧逃顶指标公式(看盘必备)Var1:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;Var2:=2*ABS(Var1);Var3:=100-(100-3*SMA((CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100,20,1)+2*SMA(SMA((CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100,20,1),15,1));Var4:=100-(100-3*SMA((OPEN-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100,20,1)+2*SMA(SMA((OPEN-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100,20,1),15,1));Var5:=(HIGH+LOW+CLOSE)/3;Var6:=(Var5-MA(Var5,10))/(0.015*AVEDEV(Var5,10));Var7:=(Var5-MA(Var5,30))/(0.015*AVEDEV(Var5,30));Var8:=IF(Var6>=150 AND Var6<200 AND Var7>=150 AND Var7<200,10,0);Var9:=IF(Var6<=-150 AND Var6>-200 AND Var7<=-150 AND Var7>-200,-10,Var8);VarA:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;VarB:=100-ABS(VarA);VarC:=3*SMA((INDEXC-LLV(INDEXL,55))/(HHV(INDEXH,55)-LLV(INDEXL,55))*100,20,1)-2*SMA(SMA((INDEXC-LLV(INDEXL,55))/(HHV(INDEXH,55)-LLV(INDEXL,55))*100,20,1),15,1);VarD:=3*SMA((INDEXO-LLV(INDEXL,55))/(HHV(INDEXH,55)-LLV(INDEXL,55))*100,20,1)-2*SMA(SMA((INDEXO-LLV(INDEXL,55))/(HHV(INDEXH,55)-LLV(INDEXL,55))*100,20,1),15,1);VarE:=REF(LOW,1)*0.9;VarF:=LOW*0.9;Var10:=(VarF*VOL+VarE*(CAPITAL-VOL))/CAPITAL;Var11:=EMA(Var10,30);Var12:=Var11-CLOSE;Var13:=REF(CLOSE,1);Var14:=SMA(MAX(CLOSE-Var13,0),7,1)/SMA(ABS(CLOSE-Var13),7,1)*100;Var15:=SMA(MAX(CLOSE-Var13,0),13,1)/SMA(ABS(CLOSE-Var13),13,1)*100;Var16:=BARSCOUNT(CLOSE);Var17:=SMA(MAX(CLOSE-REF(CLOSE,1),0),6,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),6,1)*100;Var18:=((-100)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+50)*2;Var19:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;Var1A:=(SMA(Var19,4,1)-50)*2;Var1B:=SMA(Var1A,3,1);Var1C:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100;Var1D:=SMA(Var1C,4,1);Var1E:=SMA(Var1D,3,1);Var1F:=(HHV(HIGH,30)-CLOSE)/CLOSE*100;Var20:=IF(Var17<=25 AND Var18<-95 AND Var1F>20 AND Var1B<-30 AND Var1E<30AND Var12>=-0.25 AND Var14<22 AND Var15<28 AND Var16>50,80,0);大趋势: Var3,colorblue;顶线: IF(VarB<90,VarB,100);多方: IF(Var1>0,Var1,0), LINESTICK;空方: -IF(Var1<0,Var2,0), LINESTICK;抄底: Var20,colorred,linethick2;预警系统: (IF((Var7>=200 AND Var6>=150) OR CROSS(65,多方),15,IF(Var7<=-200AND Var6<=-150,-15,Var9))+65),COLORCcbbdd,LINETHICK2;STICKLINE(Var3<=REF(Var4,1),Var3,Var4,8,0),colorwhite;STICKLINE(Var3>REF(Var4,1),Var3,Var4,8,0),colorred;t1:=CLOSE>MA(CLOSE,20) AND MA(CLOSE,20)>=REF(MA(CLOSE,20),1);t2:=CLOSE<MA(CLOSE,20) AND MA(CLOSE,20)<REF(MA(CLOSE,20),1);t3:=多方>60 AND 预警系统>65 AND 顶线=100;t4:=多方>48 AND 预警系统>65 AND 顶线<100;t5:=空方<-38 AND 预警系统<65;t6:=抄底>50 AND 顶线<90;t7:=Var3>REF(Var4,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1);t8:=Var3<=REF(Var4,1) AND CLOSE<REF(CLOSE,1) AND 预警系统=65 AND 抄底=0AND 空方>=REF(空方,1) AND VarC<REF(VarD,1);DRAWTEXT(t1 and count(t1,30)=1,10,'上升通道!'),COLOR00FFFF;B2:=DRAWTEXT(t2 and count(t2,30)=1,55,'下降通道!'),COLOR00FFFF;B3:=DRAWTEXT(t3 and count(t3,30)=1,55,'上涨过急!'),COLOR00FFFF;B4:=DRAWTEXT(t4 and count(t4,30)=1,75,'庄家出货!'),COLOR00FFFF;B5:=DRAWTEXT(t5 and count(t5,30)=1,50,'有小反弹!'),COLOR00FFFF;B6:=DRAWTEXT(t6 and count(t6,30)=1,30,'抢反弹!'),COLOR00FFFF;B7:=DRAWTEXT(t7 and count(t7,30)=1,-10,'资金进场!'),COLOR00FFFF;DRAWTEXT(t8 and count(t8,30)=1,90,'见顶回落!'),COLOR00FFFF;(二)大智慧专用抄底逃顶指标参数n:40 100 60Var1:=HHV(HIGH,9)-LLV(LOW,9);Var2:=HHV(HIGH,9)-CLOSE;Var3:=CLOSE-LLV(LOW,9);Var4:=Var2/Var1*100-70;Var5:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;Var6:=(2*CLOSE+HIGH+LOW)/4;Var7:=SMA(Var3/Var1*100,3,1);Var8:=LLV(LOW,34);Var9:=SMA(Var7,3,1)-SMA(Var4,9,1);VarA:=IF(Var9>100,Var9-100,0);VarB:=HHV(HIGH,34);AA:= VarA*2;BB:= EMA((Var6-Var8)/(VarB-Var8)*100,13);VarC:=EMA(0.667*REF(BB,1)+0.333*BB,2);CC:= SMA(Var5,20,1);VarD:=SMA(AA,2,1)-AA;VarE:=EMA(0.667*REF(BB,1)+0.333*BB,2)-BB;VAR1a:=(HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9))*100-70;VAR2a:=SMA(VAR1a,9,1)+100;VAR3a:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;VAR4a:=SMA(VAR3a,3,1);VAR5a:=SMA(VAR4a,3,1)+100;VAR6a:=VAR5a-VAR2a;S: IF(VAR6a>n,VAR6a-n,0);STICKLINE(BB-VarC>0,BB,VarC,5,0),colorred;STICKLINE(BB-VarC<0,BB,VarC,5,0),colorffcccc;STICKLINE(CC-SMA(CC,5,1)>0,CC,SMA(CC,5,1),5,0),coloryellow;STICKLINE(CC-SMA(CC,5,1)<0,CC,SMA(CC,5,1),5,0),colorblue;STICKLINE(REF(S,1)<S,S,REF(S,1),5,0),colorff00ff;STICKLINE(REF(S,1)>S,S,REF(S,1),5,0),colorffcc66;逃顶指标使用注意事项:该指标有两条柱形趋势线,分别是短期和长期趋势线,加这两条趋势线的作用是,可随时比照主图K线方便观察趋势,是对顶部指标的补充.1.当粉色柱线连续出现且柱线时,要特别关注该股的运行趋势,结合大盘的走势和该股的成交量跟踪观察,一旦柱线逐渐缩短,即可判定顶部即将形成,如果当天股票下跌即将收阴且成交量萎缩就应该果断卖出. 做短线时,只要出现第一根粉色柱线,当天可介入,第二天看该股的走势是否维持强势,如果是持股,否则冲高时获利了结. 2.股票下跌连续出现青色柱线,在青色柱线没跌到底线消失之前不要急于抄底(个别情况例外),要经过几个交易日或者更长时间才能出现转机,这时再择机介入(用这个指标查看一下历史走势就能发现规律). 3.用该指标可波段操作,如果手中的股票严重被套,用上述方法操作在顶部卖出80%,底部补进,几个来回就有可能解套.。
大智慧指标公式函数大全
大智慧指标公式函数大全大智慧全部函数ABS 绝对值ACOS 反余弦值ADVANCE 上涨家数ALIGN 水平对齐方式ALL 一直满足条件ALLASKVOL 委托卖出总量ALLBIDVOL 委托买入总量AMOUNT 成交额AND 逻辑与运算ANY 至少一次满足条件ASIN 反正弦值ASKPRICE 委卖价ASKVOL 委卖量ATAN 反正切值AVEDEV 平均绝对偏差AVGASKPRICE 委托卖出均价AVGBIDPRICE 委托买入均价AVGENTERPRICE 平均买入成本BACKSET 向前赋值BARPOS K线位置BARSCOUNT 有效值周期数BARSLAST 上一次条件成立位置BARSSINCE 第一个条件成立位置BARSTATUS 数据位置状态BESTPERCENT 最大利润率BESTTRADE 最大盈利BETA 贝塔系数BETA2 相关放大系数BETADOWN 下跌贝塔系数BETAUP 上涨贝塔系数BETWEEN 介于BIDPRICE 委买价BIDVOL 委买量BIGORDER 委托单大单成交量比例BKNAME 板块名称BUY 买入BUYSHORT 空头买入BUYVOL 主动性买单C 收盘价CAPITAL 流通盘CASH 现金存量CATEGORY 证券类型CEILING 向上舍入CIRCLEDOT 小圆圈线CLOSE 收盘价COLOR 输出颜色COLOR3D阴阳颜色3D柱线输出线型控制符STICK,用逗号隔开放置在输出语句后,将该输出绘制成阴阳3D柱线,若数值正则用阳线颜色,否则用阴线颜色。
例如:VOL,COLOR3D;表示绘制成交量阴阳3D柱线COLORSTICK 阴阳颜色柱线COS 余弦值COST 成本分布COSTB 成本分布COUNT 统计总数COVAR 协方差CROSS 交叉函数CROSSDOT 斜叉线CURRENTDATE 当前日期CURRENTTIME 当前时间CYC 成本均线CYW Cyw主力控盘D1970TODATE 1970日转换为日期DASHLINE长虚线输出线型控制符STICK,用逗号隔开放置在输出语句后,将该输出绘制成长虚线。
经典大智慧指标公式密码趋势
Q2:=(CLOSE-LLV(LOW, 18))/(HHV(HIGH, 18)-LLV(LOW, 18))*100;
Q3:=SMA长趋势:=3*Q3-2*Q4;
趋势线:=EMA(Q3, 3);
五日涨幅:=((C-REF(C,5))/REF(C,5))*100;
DRAWTEXT(REF(CROSS(趋势线,长趋势),82) AND 趋势线>1.3*长趋势,趋势,'建仓'), COLOR00FFFF, LINETHICK1;
DRAWTEXT(REF(CROSS(长趋势,趋势线),1) AND 长趋势>1.3*趋势线,趋势,'低吸'),COLORBLUE,LINETHICK1;
DRAWTEXT(CROSS(趋势线, 长趋势) AND REF(长趋势,1)>80, 趋势, '减仓'),COLORRED,LINETHICK3;
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;
TYP:= (HIGH + LOW + CLOSE)/3;
CCI:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));
K底背:=IF(FILTER( J>90,1),1,0);
DRAWTEXT(CCI>200 AND K底背,趋势,'↓回调'),COLOR00FFFF;
本文来自: 股票指标网() 详细出处参考:/html/zhibiaosources/tdx/200907/25-2725.html
大智慧经典版 指标及选股公式
选股公式金叉MACDDIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIFF,9);MACD:=2*(DIFF-DEA);低位金叉:=CROSS(DIFF,DEA) AND DIFF<-0.1;JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));二次金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=2,21)=1; 低位金叉OR 二次金叉;红进绿出V AR2:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;V AR3:=SMA(SMA(VAR2,3,1),3,1)/28.57;V AR4:=EMA(V AR3,5);V AR5:=3*V AR3-2*VAR4;AA:CROSS(V AR5,V AR3) AND V AR3<2.1 AND C>O;仓位增减空:=EMA(C,5);均衡:=EMA(空,5);中轨:=HHV(MA(H,13),13);加仓:FILTER(均衡>REF(均衡,1)AND 中轨<REF(中轨,1)AND C>REF(C,1),11);夺宝奇兵买进价:=((c-ref(ma(c,6),1))/6+ma(c,6))*1.004;买进条件:=cross(c,买进价) and 买进价>ref(买进价,1);v1:=ema(close,5);v2:=ema(ema(close,29)*1.01,10);买进条件and cross(v1,v2);中华方圆▲★{红▲、红★同时出现选股}X:=EMA(((SLOPE(CLOSE,21) * 20) + CLOSE),68);Y:=EMA(CLOSE,10);红▲:=CROSS(Y,X);c1:=(CLOSE+LOW+HIGH)/3;c2:=EMA(c1,6);c3:=EMA(c2,5);红★:=CROSS(c2,c3);红▲and 红★;中华方圆□V AR1:=LLV(LOW,21);V AR2:=HHV(HIGH,21);AK1:=EMA((((CLOSE - V AR1) / (V AR2 - V AR1)) * 100),5); AK:=EMA((((CLOSE - VAR1) / (V AR2 - V AR1)) * 50),13); AB:=CROSS(AK1,AK);V AR3:=LLV(LOW,55);V AR4:=HHV(HIGH,34);V AR5:=EMA((((CLOSE - V AR3) / (V AR4 - V AR3)) * 100),3); V AR6:=((AK + V AR5) / 2);V AR8:=EMA(V AR6,5);BB:=EMA(((0.667 * REF(V AR8,1)) + (0.333 * V AR8)),2); BB1:=(CROSS(AK1,BB) AND (BB < 30));CD:=(BB1 * 0.6);白色□:AB =1;中华方圆▲{红▲选股}X:=EMA(((SLOPE(CLOSE,21) * 20) + CLOSE),68);Y:=EMA(CLOSE,10);红▲:CROSS(Y,X);中华方圆★{红★选股}c1:=(CLOSE+LOW+HIGH)/3;c2:=EMA(c1,6);c3:=EMA(c2,5);c4:=CROSS(c2,c3);红★:c4;黑马王N:=20;V AR2:=(CLOSE+HIGH+LOW)/(3);V AR3:=(EMA(V AR2,10));V AR4:=(REF(VAR3,1));V AR5:=((REF(HIGH,1)+REF(LOW,1))/(2));V AR6:=MA(CLOSE,N)+((2)*(STD(CLOSE,N)));xg:CROSS(V AR3,V AR4);红柱初现X4:=(L+H+C*4)/6;x6:=EMA(x4,19);x9:=(x6-REF(x6,1))/REF(x6,1)*100;红柱初现:=x9>=0 and ma(CLOSE,20)>REF(ma(CLOSE,20),1) and ma(CLOSE,60)>REF(ma(CLOSE,60),1) and ma(CLOSE,120)>REF(ma(CLOSE,120),1);第1个红柱:红柱初现and ref(红柱初现,1)<1;紫黄同现A1:=EMA(C,7)-EMA(C,21); A2:=MA(A1,4); 买入:cross(A1,A2) AND A1-A2>0.03 and A2<-0.1;布林宝塔线QJJ:=(VOL/(((HIGH-LOW)*2)-ABS((CLOSE-OPEN))));XVL:=(IF((CLOSE>OPEN),(QJJ*(HIGH-LOW)),IF((CLOSE<OPEN),(QJJ*((HIGH-OPEN)+(CLOSE-LOW))), (VOL/2)))+IF((CLOSE>OPEN),(0-(QJJ*((HIGH-CLOSE)+(OPEN-LOW)))),IF((CLOSE<OPEN),(0-(QJJ*(HIGH-LOW))),(0-(VOL/2)))));ZLL:=(VOL/CAPITAL);HSL:=((XVL/20)/1.15);攻击流量:=(((HSL*0.55)+(REF(HSL,1)*0.33))+(REF(HSL,2)*0.22));LLJX:=EMA(攻击流量,3);B1:=REF(C,1);B2:=REF(C,2);SS:=IF(C>REF(C,1) AND REF(C,1)>=REF(C,2),1,IF(C<REF(C,1) AND REF(C,1)<=REF(C,2),-1,IF(C>REF(C,2) AND REF(C,2)>REF(C,1),2,IF(C<REF(C,2) AND REF(C,2)<REF(C,1),-2,0))));SM:=IF(REF(SS,1)<>0,REF(SS,1),IF(REF(SS,2)<>0,REF(SS,2),IF(REF(SS,3)<>0,REF(SS,3),IF(REF(SS,5)<>0,REF(SS,5),IF(REF(SS,6)<>0,REF(SS,6),IF(REF(SS,7)<>0,REF(SS,7),0))))));DK:=IF(REF(SS,1)<>0,B2,IF(SM>0,MIN(B1,B2),MAX(B1,B2)));C>REF(C,1)*1.035 AND C>AMOUNT/100/V AND COUNT(CROSS(LLJX,0),2)=1 AND CROSS(C,DK)AND C>SAR(10,2,20) AND C>MA(C,14) AND C>MA(C,20)AND BETWEEN(V/CAPITAL,0.01,0.08) AND CAPITAL<=2000000;上穿就买上升趋势:=EMA(CLOSE,5);支撑压力:=EMA(CLOSE,21);XG:CROSS(上升趋势,支撑压力);三线交汇B:=MA(CLOSE,17)+MA(CLOSE,17)-REF(MA(CLOSE,17),1);分水岭:=IF(MA(CLOSE,17)<B,B,MA(CLOSE,17)),,;操作线:=分水岭-(EMA(C,3)-分水岭);CROSS(分水岭,操作线);立桩量AAA:=(3*C+H+L+O)/6;V AR1:=(8*AAA+7*REF(AAA,1)+6*REF(AAA,2)+5*REF(AAA,3)+4*REF(AAA,4)+3*REF(AAA,5)+2*REF(AAA,6)+REF(AAA,8))/36;TJ1:=VOL=HHV(VOL,10) AND VOL>2*REF(VOL,1) AND CLOSE>V AR1;立桩量:=FILTER(TJ1,5);TJ2:=IF(BARSLAST(立桩量)=1 AND CLOSE>REF(HIGH,1),1,IF(BARSLAST(立桩量)=2 AND CLOSE>REF(HIGH,2),1,IF(BARSLAST(立桩量)=3 AND CLOSE>REF(HIGH,3),1,0)));突破:=TJ2=1;TJ3:=IF(BARSLAST(立桩量)=1 AND CLOSE>REF(LOW,1),1,IF(BARSLAST(立桩量)=2 AND CLOSE>REF(LOW,2),1,IF(BARSLAST(立桩量)=3 AND CLOSE>REF(LOW,3),1,0)));三天法则:=TJ3=1;成立:=三天法则AND 突破;条件成立:FILTER(成立,3);低进高出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;X:=LLV(J,2)=LLV(J,8);CROSS(J,REF(J+0.01,1)) AND X AND J<19;财出水面V AR2:=(-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;V AR3:=SMA(SMA(VAR2,3,1),3,1)/28.57;V AR4:=EMA(V AR3,5);操盘:=3*VAR3-2*VAR4;xg:CROSS(操盘,V AR3) AND V AR3<2.1 and c>o;绝对牛股Var1:=(CLOSE*2+HIGH+LOW)/4;SK:= EMA(Var1,13)-EMA(Var1,73);SD:= EMA(SK,2);V1:(cross(sk,sd) and sk<-0.04 and (c-ref(c,1))/ref(c,1)>=0.03)or (cross(sk,sd) and sk<=-0.14 ) or (cross(sk,sd) and sk<=0.05and (v/ma(v,5)>2 or c/ref(c,1)>0.035));关注DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);DEA :=EMA(DIFF,9);MACD超跌:=(COUNT((DIFF < DEA),10) = 10);MACD:=(MACD超跌* "MACD.MACD"(26,12,9))*(-1);MACD金叉:=CROSS(DIFF,DEA);关注: (MACD金叉AND (REF(MACD,1) < 0)) ;关注买MA5:=MA(CLOSE,5);MA10:=MA(CLOSE,10);MA30:=MA(CLOSE,30);MA60:=MA(CLOSE,60);MA65:=MA(CLOSE,65);MA250:=MA(CLOSE,250);均线流:=(((((MA5 > MA65) AND (MA10 > MA65)) AND (MA30 > MA65)) AND (MA5 < MA30)) * 0.3); PL1:=(((CLOSE - MA60) / MA60) < 0.1);PL2:=(((CLOSE - MA250) / MA250) < 0.3);偏离率:=(((PL1 = 1) AND (PL2 = 1)) * 0.2);DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);DEA :=EMA(DIFF,9);MACD超跌:=(COUNT((DIFF < DEA),10) = 10);MACD:=(MACD超跌* "MACD.MACD"(26,12,9))*(-1);目标:=IF(均线流=0.3 AND MACD AND 偏离率=0.2 ,0.8,0);MBSJ:=BARSLAST((目标= 0.8));放量上涨:=(((VOL / REF(VOL,1)) >= 1.1) AND ((CLOSE / REF(CLOSE,1)) >= 1.01));SZSJ:=BARSLAST((放量上涨= 1));MACD金叉:=CROSS(DIFF,DEA);JCSJ:=BARSLAST((MACD金叉= 1));启动:((((MBSJ <= 20) AND (SZSJ <= 1)) AND (JCSJ <= 1)) * 1);老鸭头MA5 := MA(close,5);MA10 := MA(close,10);MA60 := MA(close,60);pday1 := barslast(cross(ma5,ma60));pday2 := barslast(cross(ma10,ma60));pday3 := barslast(high=hhv(high,pday2));pday4 := barslast(cross(ma10,ma5){ or (ref(ma10,1)<ref(ma5,1) and ma5=ma10)});pday5 := barslast(cross(ma5,ma10){ or (ref(ma5,1)=ref(ma10,1) and ma5>ma10)});a1:= pday1>pday2 and pday2>pday3 and pday3>pday4 and pday4>pday5 and pday5<5;a2:= count(cross(ma10,ma5),pday2)=1;a3:=ma5>ma60 and ma10>ma60;(A1 AND A2 and a3) and FILTER(A1 AND A2 and a3 ,5);主升行情顶:=85;V AR5:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;CC:=SMA(V AR5,20,1);CC1:=SMA(CC,5,1);出击:CROSS(CC,CC1) AND (CC1 < 顶) ;超越庄股K2:=EMA(C,5);K3:=EMA(C,10);K5:=EMA(C,30);K6:=2*(K2-K5);K7:=2*(K2-K3);K8:=2*(K7+K6);CROSS(K8,0);强势拉升Q2:=(CLOSE-LLV(LOW, 18))/(HHV(HIGH, 18)-LLV(LOW, 18))*100;Q3:=SMA(Q2, 9, 1);跨越:=EMA(Q3, 3);V AR12:=(HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36))*100;机构做空能量线:=SMA(V AR12,3,1);CROSS(跨越,机构做空能量线);吸庄血{底部笑脸的信号买入}V AR1:=4*SMA((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100,5,1)-3*SMA(SMA((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100,5,1),3.2,1); V AR2:=8;CROSS(V AR1,V AR2);智能操盘K2:=EMA(C,5);K3:=EMA(C,10);K5:=EMA(C,30);K6:=2*(K2-K5);K7:=2*(K2-K3);K8:=2*(K7+K6);买入:CROSS(K8,0);财富拐点ma3:=ema(c,3);ma5:=ema(c,5);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) AND CLOSE<=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 V ar14 OR Var15 OR Var16 OR Var17 OR Var18,1) AND V ar1 AND CROSS(MA3,MA5);金牌逃顶V AR1:=(HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9))*100-70;V AR2:=SMA(V AR1,9,1)+100;V AR3:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;V AR4:=SMA(V AR3,3,1);V AR5:=SMA(V AR4,3,1)+100;V AR6:=V AR5-V AR2;趋势:=IF(V AR6>45,V AR6-45,0);第一个粉色:ref(REF(趋势,1) >趋势,1) and REF(趋势,1)< 趋势;领头羊{绿线上穿白线}白色:=SMA(HIGH,21,2)*1.05;绿色:=SMA(CLOSE,2,1);领头羊:CROSS(绿色,白色);财神到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;J1:=REVERSE(J);AA:=REF(MA(C,1),10)>REF(MA(C,60),10);买点:CROSS(J,J1) AND AA;MACD提示DIFF:=(EMA(CLOSE,3) - EMA(CLOSE,13));DEA:=EMA(DIFF,9);绿变红:CROSS(DIFF,DEA)变色MACDDIF:=EMA(CLOSE,8)-EMA(CLOSE,13);DEA:=EMA(DIF,9),;买卖频谱买线:=EMA(C,3);卖线:=EMA(SLOPE(C,21)*20+C,55);N:CROSS(买线,卖线);底部爆发V AR01:=EMA((CLOSE-LLV(LOW,25))/(HHV(HIGH,25)-LLV(LOW,25))*100,5); V AR02:=(HHV(HIGH,25)-LLV(LOW,25))/EMA((CLOSE-LLV(LOW,25)),5);V AR03:=CROSS(V AR02,V AR01);V AR04:=REF(V AR02,2)<REF(V AR02,1) AND V AR02<REF(V AR02,1);V AR05:=COUNT(V AR03,7)>0 AND V AR04;V AR06:V AR05 AND COUNT(V AR05,5)=1;顶天立地V AR26:=((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27)))*(100);V AR27:=REVERSE(V AR26);V AR28:=SMA(VAR26,3,1);快线:=SMA(V AR28,3,1);慢线:=SMA(快线,3,1);金叉买:CROSS(快线,慢线) AND (快线<40);短线套利MA6:=MA(C,6);MA18:=MA(C,18);买进价:=((C-REF(MA6,1))/6+MA6)*1.004;买进条件:=CROSS(C,买进价) AND 买进价>REF(买进价,1);加码价:=((C-REF(MA18,1))/18+MA18)*1.004;加码条件:=CROSS(C,加码价) AND 加码价>REF(加码价,1);(ref(买进条件,1) and 加码条件) OR (ref(加码条件,1) and 买进条件) ;雷电交加V ARF:=TROUGHBARS(3,15,1)<4;FILTER(V ARF=1,3);买必涨diff:=EMA(CLOSE,12)-EMA(CLOSE,26);dea:=EMA(diff,9);买入:CROSS(diff,dea);金叉:CROSS(DIF,DEA) AND DIF<0.3;要涨停陡峭度:=IF((BARSCOUNT(CLOSE) > 7),(100)*((MA(CLOSE,7))/(LLV(MA(CLOSE,7),7)) - 1),1); N:=IF((陡峭度> 0.35),6,65);V AR1:=((-((100)*(HHV(HIGH,N) - CLOSE))/(HHV(HIGH,N) - LLV(LOW,N))))*((DATE < 20170110)); 要涨停:(30)*(CROSS(V AR1,(-2)));指标公式涨停{参数M1 2 1000 5M2 2 1000 10M3 2 1000 20M4 2 1000 30M5 2 1000 60M6 2 1000 120M7 2 1000 250}MA1:MA(CLOSE,M1);MA2:MA(CLOSE,M2);MA3:MA(CLOSE,M3);MA4:MA(CLOSE,M4);MA5:MA(CLOSE,M5);MA6:MA(CLOSE,M6);MA7:MA(CLOSE,M7);C3:=REF(C,1); 涨停:=IF((C-C3)*100/C3>=(10-0.01*100/C3),2,0);STICKLINE(涨停,OPEN,CLOSE,5,0),COLORRED;跌停:=IF((C3-C)*100/C3>=(10-0.01*100/C3),2,0);STICKLINE(跌停,OPEN,CLOSE,5,0),COLORGREEN;黑马王N:=20;N1:=7;N2:=69;M3:=EMA(CLOSE,3);M8:EMA(CLOSE,8),CoLor008000;M13:EMA(M8,13),CoLor0000FF;M62:EMA(M8,55),CoLorF0F000;V AR1:=EMA(M13,62);M81:EMA(M62,81),CoLor00FFFF;M144:EMA(V AR1,144),Linethick2,CoLor0000FF;M250:EMA(V AR1,250),POINTDOT,Linethick2,CoLorF00FF0;V AR2:=(CLOSE+HIGH+LOW)/(3);V AR3:=(EMA(V AR2,10));V AR4:=(REF(VAR3,1));STICKLINE((V AR3>V AR4),V AR3,V AR4,4,0),CoLor00FFFF;STICKLINE((V AR3<V AR4),V AR3,V AR4,4,0),CoLorFF0000;V AR5:=((REF(HIGH,1)+REF(LOW,1))/(2));V AR6:=MA(CLOSE,N)+((2)*(STD(CLOSE,N)));DRAWTEXT(CROSS(VAR3,V AR4),(V AR3)*(0.98),'★'),CoLor00FFFF;DRAWTEXT(CROSS(VAR5,V AR6),(HIGH)*(1.04),'↓卖'),CoLor008000;V AR7:=REF(CLOSE,1);V AR8:=((SMA(MAX(CLOSE-V AR7,0),N1,1))/(SMA(ABS(CLOSE-V AR7),N1,1)))*(100);V AR9:=CROSS(N2,V AR8);V ARA:=(FILTER(V AR9,4));DRAWTEXT(V ARA,(HIGH)*(1.04),'↓卖'),CoLorFFFFFF;V ARB:=((2)*(CLOSE)+HIGH+LOW)/(4);V ARC:=LLV(LOW,34);V ARD:=HHV(HIGH,34);V ARE:=(EMA(((V ARB-VAR1)/(V AR5-V AR1))*(100),7));V ARF:=(EMA((0.667)*(REF(V ARE,1))+(0.333)*(VARE),5));DRAWTEXT(IF(((COUNT((CLOSE<REF(CLOSE,1)),8))/(8)>0.6) AND (VOL>=(1.5)*(MA(VOL,5))) AND COUNT((V ARE>=V ARF),3) AND (REF(LOW,1)=LLV(LOW,120)),1,0),LOW,'●买进'),CoLorFF00FF; DRAWTEXT(IF(((COUNT((CLOSE<REF(CLOSE,1)),13))/(13)>0.6) AND COUNT((V ARE>V ARF),6) AND (REF(LOW,5)=LLV(LOW,120)) AND REF((CLOSE>=OPEN),4) AND REF((CLOSE>OPEN),3) AND REF((CLOSE>OPEN),2) AND REF((OPEN>CLOSE),1) AND (OPEN>REF(CLOSE,1)),1,0),LOW,'●买进'),CoLor00FFFF;V AR10:=(MA(CLOSE,80)-(MA(CLOSE,10))/(3));DRAWTEXT(IF((CLOSE<V AR10) AND ((VOL)/(240)>(MA(VOL,5))/(240)) AND (CLOSE>(REF(CLOSE,1))*(1.08)) AND (CLOSE<(MA(CLOSE,13))*(1.3)),1,0),LOW,'●抄底'),CoLor0000FF;金叉MACDDIFF:EMA(CLOSE,12)-EMA(CLOSE,26);DEA:EMA(DIFF,9);MACD:=2*(DIFF-DEA);STICKLINE(MACD>=0,MACD,0,4,1),COLORF00FF0;STICKLINE(MACD<0,MACD,0,4,1),COLORWHITE;STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,4,0 ),COLOR00AAFF;STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,3.3,0 ),COLOR00BBFF;STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,2.2,0 ),COLOR00CCFF;STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,1.65,0 ),COLOR00DDFF;STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,1.1,0 ),COLOR00EEFF;STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,0.55,0 ),COLOR00FFFF;STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,4 ,0 ),COLOR0000AA;STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,3.3 ,0 ),COLOR0011BB;STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,2.2,0 ),COLOR0022CC;STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,1.65 ,0 ),COLOR0033DD;STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,1.1 ,0 ),COLOR0044EE;STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,0.55 ,0 ),COLOR0055FF;STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,4,0 ),COLORAA00BB;STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,3.3 ,0 ),COLORBB11BB;STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,2.2,0 ),COLORCC22BB;STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,1.65,0 ),COLORDD33BB;STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,1.1,0 ),COLOREE44BB;STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,0.55 ,0 ),COLORFF55BB;STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,4,0 ),COLORFFAA00;STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,3.3 ,0 ),COLORFFBB11;STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,2.2,0 ),COLORFFCC22;STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,1.65 ,0 ),COLORFFDD33;STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,1.1 ,0 ),COLORFFEE44;STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,0.55 ,0 ),COLORFFFF55;IF(DIFF<0,DIFF,0),COLORRED,LINETHICK1;IF(DIFF<0,0,DIFF),COLORYELLOW,LINETHICK1;IF(DIFF<DEA,DIFF,DEA),COLOR00FF00,LINETHICK1;IF(DIFF>DEA,DEA,DEA),COLORWHITE,LINETHICK1;↑低位金叉:=CROSS(DIFF,DEA) AND DIFF<-0.1;STICKLINE(↑低位金叉,0,-0.5,2,0),COLORYELLOW;DRAWTEXT(↑低位金叉,-0.4,' ↑低位金叉'),COLORYELLOW;JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));↑二次金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=2,21)=1;STICKLINE(↑二次金叉,0,-0.2,5,0),COLORFF00FF;DRAWICON(↑二次金叉,DEA*1.2,11) ;DRAWTEXT(↑二次金叉,-0.2,' ↑二次金叉'),COLORFF00FF;A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));↑底背离:=REF(CLOSE,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1) AND CROSS(DIFF,DEA); STICKLINE(↑底背离,0,0.2,3,0),COLOR00FF00;DRAWLINE(A1=0,DEA,↑底背离,DEA,0),COLORRED,LINETHICK2;DRAWTEXT(↑底背离,0.2,' ↑底背离'),COLOR00FF00;A2:=BARSLAST(REF(CROSS(DEA,DIFF),1));↑顶背离:=REF(CLOSE,A2+1)<CLOSE AND REF(DIFF,A2+1)>DIFF AND CROSS(DEA,DIFF); DRAWLINE(A2=0,DEA,↑顶背离,DEA,0),COLORGREEN,LINETHICK2红进绿出V AR2:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;V AR3:=SMA(SMA(VAR2,3,1),3,1)/28.57;V AR4:=EMA(V AR3,5);V AR5:=3*V AR3-2*VAR4;AA:=CROSS(VAR5,V AR3) AND V AR3<2.1 AND C>O;V AR6:=(2*CLOSE+HIGH+LOW)/4;V AR7:=LLV(LOW,13);V AR8:=HHV(HIGH,13);V AR9:=EMA((V AR6-V AR7)/(V AR8-V AR7)*100,13);V ARA:=EMA(0.667*REF(V AR9,1)+0.333*V AR9,2);多:V AR9,COLORRED,POINTDOT;空:EMA(0.382*REF(VAR9,2)+0.618*V AR9,12),COLORGREEN;STICKLINE(V AR9>V ARA,V AR9,V ARA,6,0),COLORRED;STICKLINE(V AR9<=V ARA,V AR9,V ARA,6,0),COLORGREEN;DRAWTEXT(AA,10,'底'),COLORYELLOW;战无不胜危机线:85,colorred;中间线:50,colorwhite;安全线:15,colorgreen;v1:=(2*close+high+low)/4;v2:=llv(low,34);va:=hhv(high,34);防线b:=ema((v1-v2)/(va-v2)*100,13);防线bb:=ema((0.667*ref(防线b,1)+0.333*防线b),2);战术线:防线b,coloryellow,pointdot;战略线:ema(0.382*ref(防线b,2)+0.618*防线b,12),coloryellow;stickline(防线b>防线bb,防线b,防线bb,6,0),colorred;stickline(防线b<=防线bb,防线b,防线bb,6,0),;紫黄同现{紫黄同现股票将大涨}JJ :=(C*3+H+L+O)/6;SK := EMA(JJ,13) - EMA(JJ,21);SD := EMA(SK,3);SP := EMA(SK,10);A1:=EMA(C,7)-EMA(C,21);B1:=EMA((0.668*REF(A1,1)+0.333*A1),1);B1,COLORSTICK;X1:=V/SUM(V,13);X2:=DMA(C,X1);X3:=(C-X2)/X2*40;L2:=MA(AMOUNT/(100*V),13);CYS13:= (C-L2)/L2*100;做多:IF(A1>=B1,A1,B1),LINETHICK2,COLORFF00FF;做空:IF(B1-A1,B1,A1),COLORGREEN,LINETHICK2;强庄:STICKLINE(CYS13>5,0,-做空,2,0 ),COLORYELLOW;主力强度:STICKLINE(X3>0 AND 做多>0,做多+0.1,做多,1,0),COLORFF80FF;C>MA(C,30),COLORFF80FF,LINETHICK2;DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);DEA:=EMA(DIFF,9);RSV:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);J1:=DIFF;J2:=DEA;J3:=K;J4:=D;VL:=REF(LOW,1); VH:=REF(H,1);V AR1:=SMA(ABS(H-VH),13,1)/SMA(MAX(H-VH,0),13,1)*100;V AR2:=SMA(ABS(L-VL),13,1)/SMA(MAX(L-VL,0),13,1)*100;V AR3:=REF(CLOSE,1);V AR4:=MA(V AR2,13);V AR5:=LLV(L,34);V AR6:=SMA(MAX(CLOSE-VAR3,0),6,1)/SMA(ABS(CLOSE-VAR3),6,1)*100;V AR7:=CROSS(93,V AR6);V AR8:=EMA(IF(L<=VAR5,V AR4,0),3);V AR9:=H>LLV(L,0)*7;V AR10:=(SMA(SMA((((CLOSE - LLV(LOW,54)) / (HHV(HIGH,54) - LLV(LOW,54))) * 100),7,1),5,1));V AR11:=((SMA(((CLOSE - LLV(LOW,54)) / (HHV(HIGH,54) - LLV(LOW,54)) * 100),7,1)) * 16.18) - (V AR10 * 10.9);上攻:FILTER(CROSS(J1,J2) AND VOL>REF(SUM(VOL,5),1),3),COLOR0066FF,LINETHICK2;WR10:=-100*(HHV(HIGH,10)-CLOSE)/(HHV(HIGH,10)-LLV(LOW,10)),COLORWHITE,LINETHICK1;WR45:=-100*(HHV(HIGH,45)-CLOSE)/(HHV(HIGH,45)-LLV(LOW,45)),COLORFFB900,LINETHICK1;WR99:=-100*(HHV(HIGH,99)-CLOSE)/(HHV(HIGH,99)-LLV (LOW,99)),COLORRED,LINETHICK1;顶:= 0, LINETHICK2 ,COLOR446600;底1:=-95, LINETHICK2 ,COLOR446600;红柱初现工作线:MA(CLOSE,14),COLORRED,LINETHICK2;操盘线:MA(CLOSE,26),Color00A800,LINETHICK2;X1:=MA(C,1);X2:=SMA(SMA(SMA(x1,2,1),2,1),2,1);X3:=MA(x2,3);X4:=(L+H+C*4)/6;X5:=EMA(x4,12);x6:=EMA(x4,19);x7:=(x5-REF(x5,1))/REF(x5,1)*100;x9:=(x6-REF(x6,1))/REF(x6,1)*100;G:=BARSLAST(CROSS(x7,0));X8:=REF(x4,G);A2:=3*EMA((C-LLV(L,30))/(HHV(H,30)-LLV(L,30))*100,5)-2*EMA((C-LLV(L,30))/(HHV(H,30)-LLV(L,30)) *100,5);A4:=(HHV(H,34)-C)/(HHV(H,34)-LLV(L,34))*100;A5:=EMA(CLOSE,12)-EMA(CLOSE,26);A6:=EMA(A5,9);A7:=(A5-A6);STICKLINE(x9>=0 and ma(CLOSE,20)>REF(ma(CLOSE,20),1) and ma(CLOSE,60)>REF(ma(CLOSE,60),1) and ma(CLOSE,120)>REF(ma(CLOSE,120),1),HIGH,LOW,0.5,0),color0000CD;STICKLINE(x9>=0 and ma(CLOSE,20)>REF(ma(CLOSE,20),1) and ma(CLOSE,60)>REF(ma(CLOSE,60),1) and ma(CLOSE,120)>REF(ma(CLOSE,120),1),CLOSE,OPEN,8,0),color070084;STICKLINE(x9>=0 and ma(CLOSE,20)>REF(ma(CLOSE,20),1) and ma(CLOSE,60)>REF(ma(CLOSE,60),1) and ma(CLOSE,120)>REF(ma(CLOSE,120),1),CLOSE,OPEN,7,0),color0000A3;STICKLINE(x9>=0 and ma(CLOSE,20)>REF(ma(CLOSE,20),1) and ma(CLOSE,60)>REF(ma(CLOSE,60),1) and ma(CLOSE,120)>REF(ma(CLOSE,120),1),CLOSE,OPEN,6,0),color0000B7;STICKLINE(x9>=0 and ma(CLOSE,20)>REF(ma(CLOSE,20),1) and ma(CLOSE,60)>REF(ma(CLOSE,60),1) and ma(CLOSE,120)>REF(ma(CLOSE,120),1),CLOSE,OPEN,5,0),color0000CD;STICKLINE(x9>=0 and ma(CLOSE,20)>REF(ma(CLOSE,20),1) and ma(CLOSE,60)>REF(ma(CLOSE,60),1) and ma(CLOSE,120)>REF(ma(CLOSE,120),1),CLOSE,OPEN,4,0),color0000E9;STICKLINE(x9>=0 and ma(CLOSE,20)>REF(ma(CLOSE,20),1) and ma(CLOSE,60)>REF(ma(CLOSE,60),1) and ma(CLOSE,120)>REF(ma(CLOSE,120),1),CLOSE,OPEN,2,0),color0754E9;STICKLINE(x9>=0 and ma(CLOSE,20)>REF(ma(CLOSE,20),1) and ma(CLOSE,60)>REF(ma(CLOSE,60),1) and ma(CLOSE,120)>REF(ma(CLOSE,120),1),CLOSE,OPEN,0.6,0),Color68B8FF;Z1:MA(CLOSE,5),COLORYELLOW,;Z2:MA(CLOSE,55){,ColorFF8080},Color00FF00,LINETHICK2;玄黄吉星XF: EMA((EMA(CLOSE,4)+EMA(CLOSE,6)+EMA(CLOSE,12)+EMA(CLOSE,24))/4,2);V AR2:=MA(CLOSE,80)-MA(CLOSE,13)/3;神奇趋势线:=MA((CLOSE-V AR2)/V AR2,1);狙击:DRAWTEXT(CROSS(神奇趋势线,0) AND LOW/REF(HIGH,1)<1.012,LOW,'狙击'),COLORYELLOW;盈利临界: DRAWTEXT(COUNT(神奇趋势线>REF(神奇趋势线,1),3)=3 AND COUNT(神奇趋势线<0,10)=10 AND REF(神奇趋势线,3)=LLV(神奇趋势线,10),LOW,'盈利临界'),COLORYELLOW;参与: DRAWTEXT(REF(神奇趋势线,2)=LLV(神奇趋势线,20) AND REF(神奇趋势线,2)<0.071 AND REF(神奇趋势线,2)<REF(神奇趋势线,1) AND NOT(REF(LOW,1)>REF(HIGH,2) AND LOW>REF(HIGH,1)) AND CLOSE>REF(CLOSE,1),LOW,'参与'),COLORYELLOW;DRAWICON(CROSS(EMA(CLOSE,8),EMA(EMA(CLOSE,8),20)) AND EMA(CLOSE,8)<MA(CLOSE,120),LOW,1),COLORRED;DRAWTEXT((WINNER(CLOSE)-WINNER(OPEN))*100>=17 AND VOL/CAPITAL*100<=2,LOW,'无量长阳,谨慎'),COLORWHITE;V AR1:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;V AR21:=SMA(VAR1,20,1);V AR3:=SMA(V AR21,15,1);V AR4:=100-3*VAR21+2*V AR3;V AR5:=(3*VAR21+2*V AR3)/4;V AR6:=ABS(ABS(V AR5)-ABS(V AR4));V AR7:=ABS(ABS(V AR5)-ABS(V AR6));阴跌区域:=V AR4-V AR7;见顶区域:=阴跌区域<0;均衡:=V AR5-V AR7;DRAWTEXT(CROSS(阴跌区域,均衡),LOW,'阴跌延续'),COLORGREEN;DRAWTEXT(CROSS(阴跌区域,-0.1),LOW,'见顶回落'),COLORWHITE;STICKLINE(C>=O,C,H,0.1,0),COLORRED;TTZF:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100 {AND TTZF>=ZF};STICKLINE(TTZF>=2.50 ,O ,C ,8,0),COLOR00FFFF;中轨:HHV(MA(H,11),15),COLORRED;趋势:LLV(MA(H,11),1),COLORGREEN;三合成RSI6:SMA(MAX(C-REF(C,1),0),6,1)/SMA(ABS(C-REF(C,1)),6,1)*100,colorwhite;DIFF:=EMA(C,5)-EMA(C,20);DEA:=EMA(DIFF,10);MACD:800*(DIFF-DEA)/EMA(C,30),colorSTICK,linethick3;RSV:=(C-LLV(L,20))/(HHV(H,20)-LLV(L,20))*100;K20:SMA(RSV,5,1),COLORyellow;D20:SMA(K20,5,1),COLORFF00ff;20;50;80;DRAWICON(count(c>ref(c,1),5)=5,h*1.01,3);DRAWICON(count(c<ref(c,1),5)=5,l*0.995,1);机构能量做多能量线: SMA((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100,5,1)-8,COLORRED,LINETHICK3;做空能量线: SMA((HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36))*100,2,1),COLORGREEN,LINETHICK3; 20,pointdot,colorf00ff0;50,pointdot,colorgreen;80,pointdot,colorwhite;短线之星Var1:=100-90*(HHV(HIGH,20)-CLOSE)/(HHV(HIGH,20)-LLV(LOW,20));Var2:=100-90*(HHV(HIGH,20)-CLOSE)/(HHV(HIGH,20)-LLV(LOW,20));Var3:=100-MA(100*(HHV(HIGH,6)-CLOSE)/(HHV(HIGH,6)-LLV(LOW,6)),28);买入信号: IF(Var2<MA(Var3,6),MA(Var3,6),Var2),colorred ;卖出信号: IF(Var1>MA(Var3,6),MA(Var3,6),Var1),colorgreen ;强弱线: MA(Var3,6),coloryellow ,linethick2 ;极品逃顶V AR2:=LLV(LOW,10);V AR3:=HHV(HIGH,25);阶段卖出: 3.2,COLORC6C600;3.5,COLOR0088FF;清仓卖出: 3.5,COLORFF75FF;动力线:= EMA((CLOSE-V AR2)/(V AR3-V AR2)*4,4);STICKLINE(动力线>REF(动力线,1) ,动力线,REF(动力线,1),3 ,1),COLORRED; STICKLINE(动力线<=REF(动力线,1) ,动力线,REF(动力线,1),3 ,1),COLOR00FF00; 底部:0.2,COLOR70DB93;关注:0.5,COLORYELLOW;DRAWICON( FILTER(CROSS(动力线,关注),20),动力线+0.02 ,1);DRAWICON( FILTER(CROSS(清仓卖出,动力线),20),动力线+0.02,2); DRAWICON( FILTER(CROSS(动力线,底部),20),动力线+0.02 ,1);DRAWICON( FILTER(CROSS(阶段卖出,动力线),20),动力线+0.02,2);强弱分界线:1.75,POINTDOT,LINETHICK2,COLOR70DB93;数值:动力线,COLORA8A8A8;超级逃顶Var2:=llv(low,10);var3:=hhv(high,25);3.5,color0088ff;清仓卖出: 3.5;动力线:= ema((close-var2)/(var3-var2)*4,4);stickline(动力线>ref(动力线,1) ,动力线,ref(动力线,1),8 ,1),colorred;stickline(动力线<=ref(动力线,1) ,动力线,ref(动力线,1),8 ,1),colorgreen;底部介入:0.2,colorgreen;重点关注:0.5, coloryellow;drawicon( filter(cross(动力线,重点关注),20),动力线+0.02 ,1);drawicon( filter(cross(清仓卖出,动力线),20),动力线+0.02,2);drawicon( filter(cross(动力线,底部介入),20),动力线+0.02 ,1);drawicon( filter(cross(JDMC,动力线),20),动力线+0.02,2);强弱分界线:1.75,pointdot,linethick2,colordddddd;抄底逃顶趋势: 5*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-3*SMA(SMA((CLOSE-LLV(LOW ,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1)-SMA(SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,2 7)-LLV(LOW,27))*100,5,1),3,1),2,1),LINETHICK0,COLOR7F52AF;趋势1: EMA(MA(趋势,5),3),LINETHICK0,COLORA6B8C1;STICKLINE(趋势>=趋势1,趋势,趋势1,5,0),COLOR7F52AF;STICKLINE(趋势<趋势1,趋势,趋势1,5,0),COLORA6B8C1;STICKLINE(趋势>108 AND 趋势>=趋势1,趋势,108,5,0),COLORFF0000;STICKLINE(趋势1>108 AND 趋势<趋势1,趋势1,108,5,0),COLORFFFFFF;STICKLINE(趋势<0 AND 趋势<趋势1,趋势,0,5,0),COLORF00FF0;STICKLINE(趋势1<0 AND 趋势>趋势1,趋势1,0,5,0),COLORF0F000;V1:= MA(CLOSE,5)=HHV(MA(CLOSE,5),20);V2:= MA(CLOSE,5)>MA(CLOSE,20);V3:= COUNT(MA(CLOSE,1)>REF(CLOSE,1),3)=3;风险: IF(V1 AND V2 AND V3,30,0),LINETHICK0,STICK,COLOR00FF00;V11:= MA(CLOSE,5)=HHV(MA(CLOSE,5),120);V21:= MA(CLOSE,5)>MA(CLOSE,120);V31:= COUNT(MA(CLOSE,1)>REF(CLOSE,1),3)=3;风险1: IF(V11 AND V21 AND V31,60,0),LINETHICK0,STICK,COLORF0F000;底部: 5,LINETHICK0,COLOR00FFFF;抄底: IF(CROSS(趋势,底部),60,0),LINETHICK2,STICK,COLOR00FFFF;DRAWTEXT(抄底,50,'抄底'),COLOR0000FF;天线: 108,LINETHICK0,COLORFF9D00;逃顶: IF(CROSS(天线,趋势),1,0),LINETHICK0,STICK,COLORFF9D00;STICKLINE(CROSS(天线,趋势),90,108,3,0),COLORFF9D00;DRAWTEXT(CROSS(天线,趋势),85,'逃顶'),COLORFF9D00;金牌黑马A1:3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))黑马线:EMA(A1,5),LINETHICK2,COLOR6600FF;A2:=(黑马线-REF(黑马线,1))/REF(黑马线,1)*100;A3:=EMA(C,5);A4:=((C-LLV(L,21))/(HHV(H,21)-LLV(L,21)))*100;趋势线:(MA(3*SMA(A4,6,1)-2*SMA(SMA(A4,5,1),5,1),2)),LINETHICK2,COLORYELLOW;A5:=(HHV(H,60)-C)/(HHV(H,60)-LLV(L,60))*100;DRAWTEXT(FILTER(REF(黑马线,1)>90 AND A2<0,7),黑马线,'跑'),COLOR00FF00;DRAWTEXT(CROSS(A1,黑马线)AND 黑马线<A5,黑马线,'黑马');DRAWTEXT(CROSS(黑马线,A5)AND 趋势线<80,黑马线,'追涨');DRAWTEXT(CROSS(趋势线,0)AND 黑马线<40,5,'大黑马');底部:(A2<-10 AND A2>REF(A2,1))*25,COLORRED;DRAWICON(底部AND A3>REF(A3,1),25,4);机会来临:REF(IF((MA(C,5)-C)/C>0.04 AND (MA(C,10)-MA(C,5))/MA(C,5)>0.04,30,0),1),COLORF00FF0; 大势已去:IF(CROSS(黑马线,A1)AND 黑马线>70 AND 趋势线>80,90,100),COLORFF0000;中短长线90,COLOR9966FF,LINETHICK2;80,COLOR996699;20,COLORGREEN;10,COLORCC6633,LINETHICK2;长期线:MA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),19)+100,color9900FF;短期线:-100*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14))+100,color888888;中期线:EMA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),4)+100,coloryellow,linethick2;见顶:(ref(中期线,1)>85 and ref(短期线,1)>85 and ref(长期线,1)>65) and cross(长期线,短期线) ;顶部区域:(中期线<ref(中期线,1) and ref(中期线,1)>80) and (ref(短期线,1)>95 or ref(短期线,2)>95 ) and 长期线>60 and 短期线<83.5and 短期线<中期线and 短期线<长期线+4;顶部:=filter(顶部区域,4);底部区域:(长期线<12 and 中期线<8 and (短期线<7.2 or ref(短期线,1)<5) and (中期线>ref(中期线,1) or 短期线>ref(短期线,1)))or (长期线<8 and 中期线<7 and 短期线<15 and 短期线>ref(短期线,1)) or (长期线<10 and 中期线<7 and 短期线<1) ;stickline( 顶部,99,103,20,1 ),colorred,linethick2;stickline( 底部区域,-4,0,22,0 ),colorgreen;低位金叉:长期线<15 and ref(长期线,1)<15 and 中期线<18 and 短期线>ref(短期线,1) and cross(短期线,长期线) and 短期线>中期线and (ref(短期线,1)<5 or ref(短期线,2)<5 ) and (中期线>=长期线or ref( 短期线,1)<1 );stickline( 低位金叉,0,5,11,0 ),colorred;仓位增减(主图)。
大智慧指标公式函数大全分解
大智慧指标公式函数大全分解大智慧是一种金融数据分析软件,广泛应用于股票、期货、外汇等领域。
它提供了各种技术指标和公式函数,用于分析市场趋势和价格走势。
下面我将为您介绍一些常用的大智慧指标公式函数。
1. 移动平均线(Moving Average,简称MA):MA函数用于计算一段时间内的平均价格。
根据计算的周期不同,它可以分为简单移动平均线(SMA)和指数移动平均线(EMA)。
SMA的计算公式为:MA(CLOSE,N),其中CLOSE表示收盘价,N表示计算周期。
EMA的计算公式为:EMA(CLOSE,N,权重)。
2. 相对强弱指标(Relative Strength Index,简称RSI):RSI函数用于测量价格的速度和变化,是一种常用的超买超卖指标。
它的计算公式为:RSI(CLOSE,N)。
3. 随机指标(Stochastic Oscillator,简称KD):KD函数基于价格的高低范围,通过比较最近一段时间内的收盘价与最高价、最低价的关系,来判断市场的超买超卖状态。
它的计算公式为:KD(N)。
4. 平均真实波幅(Average True Range,简称ATR):ATR函数用于度量市场波动性,可以帮助判断价格的波动幅度和风险。
它的计算公式为:ATR(N)。
5. 布林带指标(Bollinger Bands,简称BOLL):BOLL函数通过计算价格的标准差,构造一个中轨线和上下轨线,可以帮助判断价格的超买超卖区域和趋势转折点。
它的计算公式为:BOLL(CLOSE,M,N)。
6. 强弱指标(Force Index,简称FI):FI函数用于度量市场力量和资金流入流出的情况,可以帮助判断价格走势的力度和趋势。
它的计算公式为:FI(N)。
7. 成交量指标(Volume,简称VOL):VOL函数用于度量成交量的变化和资金流动性,并结合价格走势来分析市场趋势。
它的计算公式为:VOL(N)。
除了上述指标,大智慧还提供了很多其他指标和函数,如动能指标、波动率指标、趋势指标等。
大智慧指标公式集
大智慧指标公式集一、预测明天{预测明天-大智慧公式}E:=(H+L+O+2*C)/5;次日突破价:E+(H-L);次日阻力价:2*E-L;次日支撑价:2*E-H;次日下跌反转价:E-(H-L);次日心理价:(E+次日突破价+次日阻力价+次日支撑价+次日下跌反转价)/5;DIFF1:=EMA(C,3)-EMA(C,13);DEA1:=EMA(DIFF1,9);MACD1:=2*(DIFF1-DEA1)*10;DIFF2:=EMA(C,5)-EMA(C,21);DEA2:=MA(DIFF2,9);MACD2:=2*(DIFF2-DEA2)*10;DIFF3:=EMA(C,5)-EMA(C,89);DEA3:=EMA(DIFF3,21);MACD3:=2*(DIFF3-DEA3)*10;STICKLINE(C>0,0,22,6,0),Color8BA400;STICKLINE(C>0,0,10,6,0),Color8BA411;STICKLINE(C>0,0,9.5,6,0),Color8BA422;STICKLINE(C>0,0,9,6,0),Color8BA433;STICKLINE(C>0,0,8.5,6,0),Color8BA444;STICKLINE(C>0,0,8,6,0),Color8BA455;STICKLINE(C>0,0,7.5,6,0),Color8BA466;STICKLINE(C>0,0,7,10,0),Color8BA477;STICKLINE(C>0,0,6.5,6,0),Color8BA488;STICKLINE(C>0,0,6,6,0),Color8BA499;STICKLINE(C>0,0,5.5,6,0),Color8BA4aa;STICKLINE(C>0,0,5,6,0),Color8BA4cc;STICKLINE(C>0,0,4,6,0),Color8BA4ee;STICKLINE(C>0,0,3,6,0),Color8BA4ff;STICKLINE(C>0,0,-15,6,0),Color8BA433;STICKLINE(C>0,0,-10,6,0),Color8BA444;STICKLINE(C>0,0,-5,6,0),Color8BA455;STICKLINE(C>0,0,-1,6,0),Color8BA466;STICKLINE(macd3>=0,0,macd3,8,0),color009e3a;STICKLINE(macd3<0,0,-macd3,8,0),color646464;STICKLINE(macd2>=0,0,macd2,8,0),color007d19;STICKLINE(macd2<0,0,-macd2,8,0),color555555;STICKLINE(macd1>=0,0,macd1,8,0),color006400;STICKLINE(macd1<0,0,-macd1,8,0),color414141;STICKLINE(macd3,0,-abs(macd3)*0.6,8,0),color232323;STICKLINE(macd1,0,-abs(macd1)*0.6,8,0),color0f0f0f;x1:=MA(LLV(C,8)*1.1,13);x2:=MA(HHV(C,21)*0.9,13);x3:=MA(LLV(INDEXC,8)*1.1,13);x4:=MA(HHV(INDEXC,21)*0.9,13);资金进出:=3*(MA(C,1)-(x1+x2)/2-(x1+x2)/2*((x3+x4)/2-EMA(INDEXC,3))/((x3+x4) /2));STICKLINE(资金进出<0,资金进出,0,0.5,0),COLORFFFF00;STICKLINE(资金进出>=0,资金进出,0,0.5,0),ColorFF8BFF;RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;FASTK:=SMA(RSV,3,1);K:=SMA(FASTK,3,1);D:=SMA(K,5,1);DRAWTEXT(K<23,-10,'ャ'),ColorDBDBDB;DRAWTEXT(K<23,-10,'︼'),Color688EC1;DRAWTEXT(K<23 AND CROSS(K,D),8,'$'),COLORRED,LINETHICK7; DRAWTEXT(CROSS(MACD3,MACD2) andMACD3>ref(MACD3,1),MACD3+2,'$'),COLORRED,LINETHICK7;MA20:=MA(C,20);MA40:=MA(C,40);MA60:=MA(C,60);aa:=BARSLAST(ma60>ma40 and (ma40=ma20 or ma40>ma20));bb:=ref(count(c<ma60,aa)=aa,1);cc:=cross(c,ma60) and vol>ma(vol,5) and (c-ref(c,1))/ref(c,1)*100>3; 芙蓉出水:=bb and cc,color00ff00;drawtext(芙蓉出水,8,'$'),COLORRED;k2:=EMA(c,5),colorffff00;k3:=EMA(c,10),colorffff00;k5:=EMA(c,30),colorffff00;kk5:=EMA(indexc,30),colorffff00;k6:=2*(k2-k5);k7:=2*(k2-k3);k8:=2*(k7+k6),COLORRED;STICKLINE(CROSS(k8,0),0,50,8,0) ,COLORRED;k1:=IF(k8>ref(k8,5) and k3<ref(k3,5) ,1,0 ),COLORYELLOW;k21:=IF(k8>ref(k8,7) and k3<ref(k3,7) ,1,0 ),COLORYELLOW;k31:=IF(k8>ref(k8,9) and k3<ref(k3,9) ,1,0 ),COLORYELLOW;k4:=IF(k8>ref(k8,11) and k3<ref(k3,11) ,1,0 ),COLORYELLOW;nday := 3;down := close/llv(low,60)<=1.2;pma1 := ma(close,2);pma2 := ma(close,5);diff :=ema(close,12) - ema(close,26),colorwhite;dea :=ema(diff,9),colorgreen;vma1:=ma (vol,2)/100000,colorred;vma2:=ma(vol,5)/100000,coloryellow;ppday := barslast(cross(pma1,pma2));vvday := barslast(cross(vma1,vma2));macdday := barslast(cross(diff,dea));A1:=BARSLAST(ref(cross("macd.diff"(5,12,9),"macd.dea"(5,12,9)),1)); 背离、W底、金叉:=ref(c,A1+1)>c andref("macd.diff"(5,12,9),A1+1)<"macd.diff"(5,12,9) andcross("macd.diff"(5,12,9),"macd.dea"(5,12,9)),,colorred;sjcjd:= if((ppday<=nday and vvday<=nday and macdday<=nday ) and (diff<0),1,0);STICKLINE(sjcjd,50,60,6,0),colorwhite,linethick2;MACD:= 2*(diff-dea), COLORSTICK;短趋势:=((3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2 *SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1) -50)*1.032+50),COLORRED;Vara2:=(2*CLOSE+HIGH+LOW+OPEN)/5;Vara3:=LLV(LOW,34);Vara4:=HHV(HIGH,34);长趋势:=EMA((Vara2-Vara3)/(Vara4-Vara3)*100,13),color00ff00;判断底:=SQRT(SQRT(FLOOR(SQRT(MA(1/WINNER(CLOSE)*100,4)/10000))))*5; Vara5:=CROSS(短趋势,长趋势)AND 长趋势<25;Vara6:=CROSS(短趋势,长趋势)AND 长趋势<50;STICKLINE(Vara5,60,70,8,0) ,colorgreen;XX:=((((CLOSE - MA(CLOSE,34)) / MA(CLOSE,34)) * 100)* 5);B001:=(((((CLOSE - MA(CLOSE,42)) / MA(CLOSE,42)) ) * 100) * 5);B002:=(((((CLOSE - MA(CLOSE,67)) / MA(CLOSE,67)) ) * 100) * 5);B003:=(((XX + B001) / 2) - (B002 ));B004:=(((0 - 100) * (HHV(HIGH,34) - CLOSE)) / (HHV(HIGH,34) -LLV(LOW,34)));B005:=(((0 - 100) * (HHV(HIGH,42) - CLOSE)) / (HHV(HIGH,42) -LLV(LOW,42)));B006:=(((0 - 100) * (HHV(HIGH,72) - CLOSE)) / (HHV(HIGH,72) -LLV(LOW,72)));B007:=EMA((((B004 + B005) / 2) - B006),6);B008:=REF(CLOSE,1);B009:=((((SMA(MAX((CLOSE - B008),0),19,1) / SMA(ABS((CLOSE - B008)),19,1)) * 100) - 50) * 1.25);B010:=((((SMA(MAX((CLOSE - B008),0),34,1) / SMA(ABS((CLOSE - B008)),34,1)) * 100) - 50) * 1.25);B011:=((((SMA(MAX((CLOSE - B008),0),72,1) / SMA(ABS((CLOSE - B008)),72,1)) * 100) - 50) * 1.25);B012:=EMA(((((B009 + B010) / 2) - B011) * 5),6);B013:=((((0 - 1) * ((B007 + B003) + B012)) / 3) * 1.5);B014:=B012;B015:=B013;B016:=EMA(B012,4);B017:=B012;KKM1:=B013;DPM1:=EMA(B013,4);多头:=B017,color0000FF;空头:=KKM1,color00FF00;多均:=B016;空均:=DPM1;B018:=IF(CROSS(B017,KKM1),28,0);xd:=5 ;VARX:=B017;C023:=KKM1;C024:=B016;C025:=DPM1;C026:=WINNER(CLOSE);W:=(DMA(C026,((VOL / CAPITAL) * 1)) * 100);HWXWINNER:=W;XD1:=EMA(W,6);XWXMH:=XD1;XD2:=MA(W,14);庄家控盘:=((HWXWINNER - XWXMH) * 10),COLORff00ff,LINETHICK2; STICKLINE(cross(多头,空均),80,70,8,0) ,COLORYELLOW;Varb1:=(2*CLOSE+HIGH+LOW)/4;Varb2:=LLV(LOW,34);Varb3:=HHV(HIGH,34);Varb4:=ma(HIGH,8);xx1:=EMA((Varb1-Varb2)/(Varb3-Varb2)*100,13);yy:=EMA(0.667*REF(xx1,1)+0.333*xx1,2) , ;STICKLINE(CROSS(xx1,20) AND yy<xx1 andVarb4>ref(Varb4,1),80,90,6,0),COLORFF0000;逃顶:=IF(FILTER(CROSS(YY,XX) AND xx>80 ,3),60,90),COLOR53ff53; {Re:预测明天-用法简介用法简介:一:小船出现是在股价相对的底部,$是参考买点,青山出现表示股价逐渐走强.当黑色大山出现时表示股价逐渐走弱.二:1 红柱线是中线指示2 其余四色柱线是短线指示3连续发出三个以上短线指示,可以短线买入.4连续发出三个以上短线指示后,发出中线指示,可以重仓买入.一年中线重仓买入,一般不会超过4次.三:1、次日上升突破价位:如明日此价位最高价超过此价位,则有上升行情产生,可当日买入,或观察近几日可逢低吸纳。
《大智慧指标公式》word版
REFLINE: 0, ,, , ;Var2:=1/WINNER(CLOSE);Var3:=100-ABS((CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100);STICKLINE(Var2>5,Var3<100,Var2,5,0),;Var4:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;Var5:=SMA(Var4,5,1);Var6:=SMA(Var5,9,1);STICKLINE(VOL AND Var6<18,0,Var2*0.5,5,0),coloryellow;〖觅庄建仓〗:0,coloryellow;5>1/WINNER(CLOSE) AND Var6<18;控盘强弱Vur1:=VOL/CAPITAL;Vur2:=1.1*(MAX(HIGH,REF(CLOSE,1))/MIN(LOW,REF(CLOSE,1))-1);Vur3:=2.5*MAX(Vur1,Vur2);Vur4:=DMA(CLOSE,Vur3);Vur5:=20*(Vur4/REF(Vur4,1)-1)*38;Vur6:=EMA(Vur5,2);Vur7:=EMA(Vur5,2);Vur8:=EMA(Vur7,3);VurS:=EMA(Vur7,8);Vur9:=1.1*(MAX(INDEXH,REF(INDEXC,1))/MIN(INDEXL,REF(INDEXC,1))-1); VurA:=2.5*MAX(Vur1,Vur9);VurB:=DMA(INDEXC,VurA);VurC:=EMA(20*(VurB/REF(VurB,1)-1),1)*38;VurD:=EMA(VurC,2);VurE:=EMA(VurC,2);D强:STICKLINE(VurD>0,0,VurD,6.5,1),colorB210E4;D弱:STICKLINE(VurD<0,0,VurD,6.5,1),colorFFA6A6;极强:STICKLINE(Vur5>0,0,Vur5,6.5,0),COLORYELLOW;强势:STICKLINE(Vur6>0,0,Vur6,6.5,0),COLORRED;极弱:STICKLINE(Vur5<0,0,Vur5,6.5,0),color10D010;弱势:STICKLINE(Vur6<0,0,Vur6,6.5,0),colorE4E410;DX:VurE,color1088FF,LINETHICK2;界:VurS,color6CBC10,LINETHICK2;控:Vur8,colorFF10FF;指:Vur7,color10E4E4;V1:=(C*2+H+L)/4*10;V2:=EMA(V1,13)-EMA(V1,34);V3:=EMA(V2,5);V4:=2*(V2-V3)*5.5;庄秘撤: IF(V4<=0,V4,0),COLOR00FF00,LINETHICK2;庄秘进: IF(V4>=0,V4,0),COLORFF00FF,LINETHICK2;V5:=(HHV(INDEXH,8)-INDEXC)/(HHV(INDEXH,8)-LLV(INDEXL,8))*8;V6:=EMA(3*V5-2*SMA(V5,18,1),5);V7:=(INDEXC-LLV(INDEXL,8))/(HHV(INDEXH,8)-LLV(INDEXL,8))*10;V8:=(INDEXC*2+INDEXH+INDEXL)/4;V9:=EMA(V8,13)-EMA(V8,34);VA:=EMA(V9,3);VB:=(V9-VA)/2;大筹金进场: IF(VB>=0,VB,0),COLORYELLOW,LINETHICK2;大筹金撤走: IF(VB<=0,VB,0),COLORBLUE,LINETHICK2;aa:=WINNER(CLOSE+CLOSE*15/100)*100;bb:=WINNER(CLOSE+CLOSE*0/100)*100;cc:=aa-bb;dd:=(WINNER(CLOSE-CLOSE*0.1/100)-WINNER(CLOSE-CLOSE*15/100))*100; ee:=cc<3 and dd<0.5 and OPEN<>LOW;a1:=DYNAINFO(6);a2:=IF(LOW>a1,0,IF(HIGH<a1,1,(a1-LOW+0.01)/(HIGH-LOW+0.01)));a3:=VOL/WINNER(LOW);a4:=REF(HHV(CLOSE,120),1);a5:=REF(LLV(CLOSE,120),1);a6:=100*(CLOSE-a5)/(a4-a5);a7:=a2>0 or a2=1;a8:=a7 and a3/REF(a3,3)>=3 and a6<80;a9:=REF(a8,1) or REF(a8,2) or REF(a8,3) or REF(a8,4);a10:=a8 and a9;a11:=IF(FILTER(a8,3),5,0);a12:=IF(FILTER(a10,3) or ee,10,0);筹码进场日:IF(a11,8,0),LINETHICK0;STICKLINE(a12,0,15,5,0),colorff00ff;筹码加仓日:IF(a12,88,0),LINETHICK0;STICKLINE(a12,0,15,5,0),colorff00ff;STICKLINE(a11,0,5,5,0),colorff7700;STICKLINE(a11,0,5,4.5,0),colorff8800;STICKLINE(a11,0,5,4,0),colorff9900;STICKLINE(a11,0,5,3.5,0),colorffaa00;STICKLINE(a11,0,5,3,0),colorffbb00;STICKLINE(a11,0,5,2.5,0),colorffcc00;STICKLINE(a11,0,5,2,0),colorffdd00;STICKLINE(a11,0,5,1,0),colorffee00;STICKLINE(a12,0,15,4.5,0),color102099;STICKLINE(a12,0,15,4,0),color1020aa;STICKLINE(a12,0,15,3.5,0),color1020bb;STICKLINE(a12,0,15,3,0),color1020cc;STICKLINE(a12,0,15,2.5,0),color1020dd;STICKLINE(a12,0,15,2,0),color1020ee;STICKLINE(a12,0,15,1,0),color1020ff;DRAWTEXT(a11,8,'筹码进场');DRAWTEXT(a12,17,'筹码加仓');Var1:=REF(LOW,1);Var2:=SMA(ABS(LOW-Var1),13,1)/SMA(MAX(LOW-Var1,0),13,1)*4;Var3:=EMA(Var2,13);Var4:=LLV(LOW,34);Var5:=EMA(IF(LOW<=Var4,Var3,0),3);主力进场:IF(Var5>REF(Var5,1),VAR5,0),COLORred,LINETHICK2;STICKLINE(Var5>REF(Var5,1),0,Var5,7,0 ),COLORRED;洗盘:IF(VAR5<REF(VAR5,1),VAR5,0),COLORGREEN,LINETHICK2;STICKLINE(VAR5<REF(VAR5,1),0,VAR5,2,1),COLORGREEN;Var6:=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);Var7:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(S MA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);Var8:=Var6<REF(Var7,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1);DRAWTEXT(Var8 AND COUNT(Var8,30)=1,40,'★有筹码进场');天使报佳音vor03:=EMA(c,3);vor07:=EMA(c,7);vor13:=EMA(c,13);vor21:=EMA(c,21);vor34:=EMA(c,34);vor55:=EMA(c,55);y03:EMA(vor03,3),linethick1,colorred;y07:EMA(vor07,7),linethick1,COLOR0099FF;y13:EMA(vor13,13),linethick1,coloryellow;y21:EMA(vor21,21),linethick1,colorblue;y34:EMA(vor34,34),linethick1,colorcf88ee;y55:EMA(vor55,55),linethick1,colorwhite;vor023:=hhv(y03,3)/hhv(h,3);vor027:=hhv(y07,7)/hhv(h,7);vor213:=hhv(y13,13)/hhv(h,13);vor221:=hhv(y21,21)/hhv(h,21);vor234:=hhv(y34,34)/hhv(h,34);vor255:=hhv(y55,55)/hhv(h,55);vor33:=c*vor023;vor37:=c*vor027;vor313:=c*vor213;vor321:=c*vor221;vor334:=c*vor234;vor355:=c*vor255;vor43:=longcross(vor023,y03+0.1,10);vor47:=longcross(vor027,y07+0.1,10);vor413:=longcross(vor313,y13+0.1,10);vor421:=longcross(vor321,y21+0.1,10);vor434:=longcross(vor334,y21+0.1,10);vor455:=longcross(vor355,y55+0.1,10);DRAWICON(vor413,HIGH*1.235,1);DRAWICON(vor421,HIGH*1.235,1);DRAWICON(vor434,HIGH*1.35,1);DRAWICON(vor455,HIGH*1.46,1);stickline(vor43,if(c>0,llv(y03,22),y03),if(c>0,hhv(y03,22),y03),6,0),colorred; stickline(vor47,if(c>0,llv(y07,33),y07),if(c>0,hhv(y07,33),y07),6,0),COLOR0099F F;stickline(vor413,if(c>0,llv(y13,44),y13),if(c>0,hhv(y13,44),y13),6,0),coloryell ow;stickline(vor421,if(c>0,llv(y21,55),y21),if(c>0,hhv(y21,55),y21),6,0),colorblue ;stickline(vor434,if(c>0,llv(y34,66),y34),if(c>0,hhv(y34,66),y21),6,0),colorcf88 ee;stickline(vor455,if(c>0,llv(y55,88),y55),if(c>0,hhv(y55,88),y21),6,0),colorwhit e;资金流量PJJ:=DMA((((HIGH + LOW) + (CLOSE * 2)) / 4),0.9);JJ:=REF(EMA(PJJ,3),1);QJJ:=(VOL / (((HIGH - LOW) * 2) - ABS((CLOSE - OPEN))));XVL:=(IF((CLOSE > OPEN),(QJJ * (HIGH - LOW)),IF((CLOSE < OPEN),(QJJ * ((HIGH - OPEN) + (CLOSE - LOW))),(VOL / 2))) + IF((CLOSE > OPEN),(0 - (QJJ * ((HIGH - CLOSE) + (OPEN - LOW)))),IF((CLOSE < OPEN),(0 - (QJJ * (HIGH - LOW))),(0 - (VOL / 2)))));ZLL:=(VOL / CAPITAL);HSL1:=IF((ZLL > 10),10,ZLL);HSL:=((XVL / 20) / 1.15);攻击流量:=(((HSL * 0.55) + (REF(HSL,1) * 0.33)) + (REF(HSL,2) * 0.22)); STICKLINE(((HSL * 0.4) >= 0),((HSL * 0.4) * 1.5),0,1,0),color808080;STICKLINE(((HSL * 0.4) < 0),((HSL * 0.4) * 1.5),0,1,0),color808080;GJJ:=EMA(攻击流量,8);LLJX:=EMA(攻击流量,3);资金流量:LLJX,LINETHICK0,color0000FF;STICKLINE((资金流量 > 0),资金流量,0,7,0),color0000FF;STICKLINE((资金流量 < 0),资金流量,0,7,0),colorFF0000;流量基线:GJJ,color00FFFF;ZJLL:=REF(LLJX,1);QZJJ:=(((LLJX - ZJLL) / ZJLL) * 100);流量增幅:IF(((LLJX > 0) AND (ZJLL < 0)),ABS(QZJJ),IF((((LLJX < 0) AND (ZJLL < 0)) AND (LLJX < ZJLL)),(0 - QZJJ),QZJJ)),LINETHICK0;力度:(HSL / 1000),LINETHICK0;周流量:SUM(LLJX,5),LINETHICK0;BB:=REF(周流量,1);ZQZJJ:=(((周流量 - BB) / BB) * 100);周增幅:IF(((周流量 > 0) AND (BB < 0)),ABS(ZQZJJ),IF((((周流量 < 0) AND (BB < 0)) AND (周流量 < BB)),(0 - ZQZJJ),ZQZJJ)),LINETHICK0;0,color808080;庄见愁获利线:EMA(WINNER(C)*100,3),colorwhite;庄筹线:EMA(WINNER(C)*70,5),colorred,linethick2;散筹线:EMA((WINNER(C*1.1)-WINNER(C*0.9))*70,5),coloryellow,linethick2;收:=winner(C)*100;开:=winner(O)*100;博弈K线长:MAX(ABS(收-开),ABS(收-REF(收,1))),pointdot,colorwhite;STICKLINE(庄筹线>散筹线,庄筹线,散筹线,0,0),COLOrwhite;stickline(收>=REF(收,1),0,博弈K线长,4,0),colorred;stickline(收<=REF(收,1),0,博弈K线长,4,0),color00ff00;{庄筹线:EMA(WINNER(C)*70,5), colorred, linethick2;散筹线:EMA((WINNER(C*1.1)-WINNER(C*0.9))*80,5),colorgreen, linethick2;}5,colorwhite,pointdot;20,coloryellow,pointdot;40,colorffcc66,pointdot;60,colorff00ff,pointdot;cc:FILTER((CROSS(5,庄筹线) and 散筹线<20 )*60,10 ),colorff00ff;DRAWTEXT(cc ,60 ,'海底捞活鱼(抄底)' ),colorff00ff;aa:= ref(庄筹线,30)>40 or ref(庄筹线,20)>40;aa1:=cross(庄筹线,散筹线);DRAWTEXT(AA1,70,'鸡雀升天'),color00ff00;bb:=CROSS(28,庄筹线) and 散筹线>40 and aa=1 and LLV(l ,60 )>LLV(l ,250 );DRAWTEXT(bb,30,'决战诱空'),colorwhite;IF(bb,30,60 ),colorffcccc;135均线法则EMA13:EMA(C,13),COLORBLUE,LINETHICK2;EMA17:EMA(C,17),COLORRED,LINETHICK2;EMA34:EMA(C,34),COLORGREEN;EMA55:EMA(C,55),COLORFF00FF;EMA120:EMA(C,120),COLORFFCC66;AR1:=EMA55>EMA34 AND EMA34>EMA13;AR2:=BARSLAST((C-EMA13)/EMA13*100<-6);AR3:=EMA13>=REF(EMA13,2);AR4:=COUNT(CROSS(C,EMA13),AR2)=1;AR5:=AR1 AND AR2 AND AR3 AND AR4;AR6:=AR5 AND FILTER(AR5,10);DRAWTEXT(AR6,L-0.09,'红杏出墙'),COLORYELLOW;{STICKLINE(AR6,H,L,0.5,1),COLORYELLOW;STICKLINE(AR6,O,C,6,1),LINETHICK2,COLORYELLOW;}BR1:=COUNT(BETWEEN((C-REF(C,1))/REF(C,1)*100,0,5) ,5)=5;BR2:=ABS((EMA13-EMA34)+(EMA34-EMA55))/C<0.2;BR3:=C>EMA55 AND (REF(C,1)<REF(EMA55,1) OR REF(C,2)<REF(EMA55,2) OR REF(C,3)<REF(EMA55,3) OR REF(C,4)<REF(EMA55,4) OR REF(C,5)<REF(EMA55,5));BR4:=BR1 AND BR2 AND BR3;DRAWTEXT(BR4 AND FILTER(BR4,10),L-0.09,'蚂蚁上树'),COLOR00C5FF;{STICKLINE(BR4 AND FILTER(BR4,10),H,L,0.5,1),COLOR00C5FF;STICKLINE(BR4 AND FILTER(BR4,10),O,C,6,1),LINETHICK2,COLOR00C5FF;}CR1:=(C-REF(C,1))/REF(C,1)*100>0.5;CR2:=V>MA(V,5)*0.6;CR3:=COUNT(CROSS(EMA13,EMA55),3)=1;CR4:=ABS(EMA34-EMA55)/EMA55<0.03;CR5:=EMA55<=EMA120 AND EMA55>=REF(EMA55,1);CR6:=FILTER(CR1 AND CR2 AND CR3 AND CR4 AND CR5,2);{STICKLINE(CR6,H,L,0.5,1),COLORF00FF0;STICKLINE(CR6,O,C,6,1),LINETHICK2,COLORF00FF0;}DRAWTEXT(CR6,L-0.09,'红衣侠女'),COLORF00FF0;DR1:=EMA13>EMA34 AND EMA34<EMA55;DR2:=BARSLAST(CROSS(C,EMA55) );DR3:=H=HHV(H,DR2);DR4:=BARSLAST(DR3);DR5:=COUNT(O>C AND C<REF(C,1) AND C>EMA55 AND BETWEEN((C-EMA55)/EMA55,0,0.02),DR4)=1;DR6:=C>REF(C,1) ;DR7:= DR1 AND DR5 AND DR6 ;DR8:=DR7 AND FILTER(DR7 ,10);DRAWTEXT(DR8,L-0.09,'黑客点击'),COLORD6BA63;{STICKLINE(DR8,H,L,0.5,1),COLORD6BA63;STICKLINE(DR8,O,C,6,1),LINETHICK2,COLORD6BA63;}ER:=BARSLAST(REF(CROSS(EMA55,EMA34),1)) AND CROSS(EMA34,EMA55);DRAWTEXT(ER,L-0.09,'均线互换'),COLOR0099FF;{STICKLINE(ER,H,L,0.5,1),COLOR0099FF;STICKLINE(ER,O,C,6,1),LINETHICK2,COLOR0099FF;}FR:=BARSLAST(REF(CROSS(EMA34,EMA13),1)) AND CROSS(EMA13,EMA34);DRAWTEXT(FR,L-0.09,'梅开二度'),COLORWHITE;{STICKLINE(FR,H,L,0.5,1),COLORWHITE;STICKLINE(FR,O,C,6,1),LINETHICK2,COLORWHITE;}GR1:=BARSLAST(BETWEEN("BIAS.BIAS2"(6,13,24),0,5) );GR2:=EMA13>EMA34 AND EMA34>EMA55 AND EMA13>REF(EMA13,1);GR3:=COUNT("BIAS.BIAS2"(6,13,24)>10 AND H=HHV(H,GR1),GR1);GR4:=H=HHV(H,GR1);GR5:="MACD.MACD"(12,26,9)<REF("MACD.MACD"(12,26,9),1);GR6:=GR2 AND GR3 AND GR4;GR7:=GR2 AND GR3 AND GR4 AND GR5;DRAWTEXT(GR6 AND GR7,H+0.13,'*!'),COLOR00FF00;STICKLINE(GR6 AND GR7,H,H+0.09,4,0),COLOR00FF00;HR2:=EMA13>=REF(EMA13,3) AND EMA34>=REF(EMA34,1) AND EMA55>=REF(EMA55,1) AND CROSS(C,EMA13) AND CROSS(C,EMA34) AND CROSS(C,EMA55);DRAWTEXT(HR2 AND FILTER(HR2,10),L-0.09,'三线推进'),COLORFFC8FF;STICKLINE(HR2 AND FILTER(HR2,10),H,L,0.5,1),COLORFFC8FF;STICKLINE(HR2 AND FILTER(HR2,10),O,C,6,1),LINETHICK2,COLORFFC8FF;(本资料素材和资料部分来自网络,仅供参考。
大智慧绝对厉害的主图指标公式
大智慧绝对厉害的主图指标公式R1:=MA(CLOSE,1);R2:=MA(CLOSE,3);R3:=(MA(R2,1)*1);R4:=(MA(R2,3)*1);X1:=(C+L+H)/3;DD:=FINANCE2(35);SS:=FINANCE2(37);GG:=FINANCE2(3);TH:=DYNAINFO(39);A51:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1);LC:=REF(CLOSE,1);RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100);FF:=EMA(CLOSE,3);MA15:=EMA(CLOSE,21);a1:=IF((CLOSE < 800),((AMOUNT / VOL) / 100),((((CLOSE * 2) + HIGH) + LOW) / 4));a2:=((HHV(HIGH,15)) + (LLV(LOW,30))) / 2;a3:=EMA((MA(a1,5)),10);a4:=EMA((MA(a1,15)),10);a5:=EMA((MA(a1,13)),21);a6:=((a3 + a4) + a5) / 3;决策线:EMA((MA(CLOSE,5)),3),linethick2,colorFF0000;PARTLINE(决策线,决策线> (REF(决策线,3)),RGB(255,0,0)),linethick2,Color3300FF;DRAWTEXT(((CLOSE > 0) AND (DISPSTATUS = 2)),(决策线* 0.95),'决策价:'+决策线),MOVE10,ALIGN2,linethick2,colorRed;{支撑}VAR1111:=BACKSET(REF(HIGH,2)=HHV(HIGH,5),3);VAR2222:=CROSS(VAR1111,0.9);VAR3333:=BACKSET(REF(LOW,2)=LLV(LOW,5),3);VAR4444:=CROSS(VAR3333,0.9);压力: REF(HIGH,BARSLAST(Var2222)), POINTDOT,ColorEA91B5;STICKLINE(CLOSE,REF(HIGH,BARSLAST(Var2222)),REF(HIGH, BARSLAST(Var2222)),5,0),LINETHICK3,ColorEA91B5;支撑: REF(LOW,BARSLAST(Var4444)), POINTDOT,Color00b4ff,linethick3;STICKLINE(CLOSE,REF(LOW,BARSLAST(Var4444)),REF(LOW,B ARSLAST(Var4444)),5,0),LINETHICK3,Color00b4ff;弱势双线持币:HHV(MA(HIGH,(3)),2),LINETHICK2,COLOR00FF00;强势单线持股:LLV(MA(HIGH,(3)),1),LINETHICK2,ColorFF00FF;{老鼠仓}AA1:=AMOUNT/V;BB1:=L<AA1*0.9;CC1:=(C-REF(C,1))/REF(C,1)*100>1.2;DD1:=L<MA(C,5)*0.921;EE1:=V<MA(V,5)*1.5;老鼠仓:BB1 AND CC1 AND DD1 AND EE1,linethick0;DRAWTEXT(老鼠仓, (LOW* 0.99),'老鼠仓'),LINETHICK3,Color40CCFF;A74:=MA(CLOSE,20);A75:=(CLOSE > MA(CLOSE,5));A76:=(MA(CLOSE,5) > MA(CLOSE,10));A77:=(CLOSE > MA(CLOSE,10));A78:=(MA(CLOSE,5) > MA(CLOSE,20));A79:=(CLOSE > MA(CLOSE,20));A710:=REF(A74,1);A711:=(A74 > A710);AVX:=(((((IF(A75,10,(0 - 10)) + IF(A76,10,(0 - 10))) + IF(A77,10,(0 - 10))) + IF(A78,10,(0 - 10))) + IF(A79,10,(0 - 10))) + IF(A711,10,(0 - 10)));DSLX:=(CLOSE / INDEXC);DSLX1:=MA(DSLX,5);DSLX2:=MA(DSLX,10);V1:=MA(VOL,5);V2:=MA(VOL,10);T := BARSLAST(DISPSTATUS=1)+1;T := BARSLAST(DISPSTATUS=1)+1;HHg := HHV(H, T);ddg := LLV(L, T);{Hk := LL-HH; G12 := LL-HK*1.55; }IF BARSTATUS=2 and c<200 and ((CROSS(AVX,1) AND (V1 >= V2)) AND (DSLX >= DSLX1)) THENDRAWTEXTABS(32,100,'该股的量能理想,有明显走强迹象,可以考虑中线进场参与,仓位在2/3左右。
大智慧全面诊断书指标公式源码编程思路破译及风险提示
大智慧全面诊断书指标公式源码编程思路破译及风险提示编程思路破译C1赋值:收盘价/30日前的收盘价的30日指数移动平均C2赋值:大盘的收盘价/30日前的大盘的收盘价的30日指数移动平均L1赋值:C1/C2*10-10C3赋值:收盘价/收盘价的60日简单移动平均C4赋值:大盘的收盘价/大盘的收盘价的60日简单移动平均L2赋值:C3/C4*10-10C5赋值:收盘价/收盘价的120日简单移动平均C6赋值:大盘的收盘价/大盘的收盘价的120日简单移动平均L3赋值:C5/C6*10-10L4赋值:L1+L2+L3的5日简单移动平均诊断3赋值:'【走势强弱诊断】 '+IFS(1日前的L4>0 AND 1日前的L4>2日前的L4,'该股中长期走势强于大盘,且近期继续走强。
','')+IFS(1日前的L4>0 AND 1日前的L4<=2日前的L4,'该股中长期走势强于大盘,但近期有所走弱。
','')+IFS(1日前的L4<=0 AND 1日前的L4>2日前的L4,'该股中长期走势弱于大盘,但近期有所转强。
','')+IFS(1日前的L4<=0 AND 1日前的L4<=2日前的L4,'该股中长期走势弱于大盘,且近期继续走弱。
','')诊断4赋值:'【基本面诊断】'+'该股为'+IFS( FINANCE2(33)>=50/100,'绩优、','')+IFS(FINANCE2(33)<50/100 AND FINANCE2(33)>=10/100,'中等业绩、','')+IFS(FINANCE2(33)<10/100 AND FINANCE2(33)>=0,'绩差、','')+IFS(FINANCE2(33)<0,'亏损、','')+IFS(市盈(动)<=20 AND 市盈(动)>0,'低市盈率、','')+IFS(市盈(动)>20 AND 市盈(动)<=50,'中等市盈率、','')+IFS(市盈(动)>50,'高市盈率、','')+IFS(FINANCE2(37)>=30000,'大盘股。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
大智慧的指南针指标公式(一共21个公式)原码1,CYW主力控盘VAR1:=CLOSE-LOW;VAR2:=HIGH-LOW;VAR3:=CLOSE-HIGH;VAR4:=IF(CLOSE>=0,(VAR1/VAR2+VAR3/VAR2)*VOL,(VAR3/VAR2+VAR1/VAR2)*VOL); SUM(VAR4,10)/10000, COLORSTICK;2,CYW-YJJ主力控盘VAR1:=1;VAR2:=CLOSE-REF(CLOSE,1);VAR3:=IF(CLOSE-REF(CLOSE,1)>=0,VAR2,0);VAR4:=REF(CLOSE,1)-CLOSE;VAR5:=IF(CLOSE-REF(CLOSE,1)<=0,VAR4,0);VAR6:=SUM(VAR3,P1)/SUM(VAR5,P1);VAR7:=100-100/(1+VAR6);VAR8:=EMA(VAR7,P1);VAR9:=EMA(VAR8,P2);VARA:=EMA(VAR8,P3);MO: (VAR8-VARA)*VAR1;ML: (VAR9-VARA)*VAR1;MODE: MO*VAR1, COLORSTICK;p1:=0,100,6p2:=0,100,8p3:=0,100,453,CYS盈亏指标Var1:=AMOUNT/(100*VOL);Var2:=MA(Var1,N1);Var3:=MA(Var1,N2);Var4:=MA(Var1,N3);Var5:=DMA(CLOSE,VOL/CAPITAL);CYS5: 100*(CLOSE-Var2)/Var2;CYS13: 100*(CLOSE-Var3)/Var3;CYS34: 100*(CLOSE-Var4)/Var4;CYS无穷: 100*(CLOSE-Var5)/Var5;n1:=0,100,5n2:=0,100,13n3:=0,100,344,CYE市场趋势MAL:=MA(CLOSE,5);MAS:=MA(MA(CLOSE,20),5);CYEL:MAL-REF(MAL,1)/REF(MAL,1)*100;CYES:MAS-REF(MAS,1)/REF(MAS,1)*100;5,CYR市场强弱DIVE:=0.01*EMA(AMOUNT,N)/EMA(VOL,N);CYR:=DIVE/REF(DIVE,1)-1*100;MACYR:MA(CYR,M);n:=0,100,13m:=0,100,56,CYQKL博弈K线100*(WINNER(CLOSE)-WINNER(OPEN)), COLORSTICK;7,CYOBV优化累积能量NOBV1:SUM(IF(CLOSE>REF(CLOSE,1),VOL,IF(CLOSE<REF(CLOSE,1),0-VOL,0)),N)/CAPITAL; n:=0,100,348,CYF市场能量HSL:=VOL/CAPITAL*100;CYF:100-100/(1+EMA(HSL,N)*100);n:=0,100,219,CYDD动态承接Var1:=WINNER(CLOSE);Var2:=DMA(Var1,VOL/CAPITAL);Var3:=DMA(VOL,VOL/CAPITAL)/CAPITAL;CYDD: Var1/Var3;CYDD1: Var2/Var3;1, POINTDOT;10,CYD2承接因子A:=WINNER(CLOSE )*CAPITAL;承接因子:A/VOL;11,CYD承接因子CYDS:WINNER(CLOSE)/(VOL/CAPITAL);CYDN:WINNER(CLOSE)/MA(VOL/CAPITAL,N);n:=0,100,2112,CYC2成本均线CYC1:0.01*EMA(AMOUNT,n1)/EMA(VOL,n1);CYC2:0.01*EMA(AMOUNT,n2)/EMA(VOL,n2);CYC3:0.01*EMA(AMOUNT,n3)/EMA(VOL,n3);CYC∞:DMA(AMOUNT/(100*VOL),VOL/(100*FINANCE(7)));n1:=0,100,5n2:=0,100,13n3:=0,100,3413,CYC1成本均线Var1:=AMOUNT/(100*VOL);短线成本均线: MA(Var1,N1);中线成本均线: MA(Var1,N2);长线成本均线: MA(Var1,N3);无穷成本均线: DMA(CLOSE,VOL/CAPITAL);STICKLINE(open>=close ,close ,open,9,0 ),COLORaaaaaa; STICKLINE(open>=close ,close ,open,6,0 ),COLORbbbbbb; STICKLINE(open>=close ,close ,open,2.4,0 ),COLORcccccc; STICKLINE(open>=close ,close ,open,1.1,0 ),COLORdddddd;STICKLINE(close>open,close,open,9,0 ),COLOr6666cc; STICKLINE(close>open,close,open,6 ,0 ),COLOR7777dd; STICKLINE(close>open,close,open,2.4 ,0 ),COLOR8888ee; STICKLINE(close>open,close,open,1.1 ,0 ),COLOR9999ff;STICKLINE(close>open,open,low,0.5,0 ),COLOR1199ff; STICKLINE(close>open,close,HIGH,0.5 ,0 ),COLOR1199ff; STICKLINE(open>=close,close,low,0.5 ,0 ),COLORcccccc; STICKLINE(open>=close,open,HIGH,0.5 ,0 ),COLORcccccc;n1:=0,100,5n2:=0,100,13n3:=0,100,3414,CYB优化布林线MB: MA(CLOSE,N);上轨: MB+STD(CLOSE,N);下轨: MB-STD(CLOSE,N);上极限: MB+2*STD(CLOSE,N);下极限: MB-2*STD(CLOSE,N);STICKLINE(open>=close ,close ,open,9,0 ),COLORaaaaaa; STICKLINE(open>=close ,close ,open,6,0 ),COLORbbbbbb; STICKLINE(open>=close ,close ,open,2.4,0 ),COLORcccccc; STICKLINE(open>=close ,close ,open,1.1,0 ),COLORdddddd;STICKLINE(close>open,close,open,9,0 ),COLOr6666cc; STICKLINE(close>open,close,open,6 ,0 ),COLOR7777dd; STICKLINE(close>open,close,open,2.4 ,0 ),COLOR8888ee; STICKLINE(close>open,close,open,1.1 ,0 ),COLOR9999ff;STICKLINE(close>open,open,low,0.5,0 ),COLOR1199ff; STICKLINE(close>open,close,HIGH,0.5 ,0 ),COLOR1199ff; STICKLINE(open>=close,close,low,0.5 ,0 ),COLORcccccc; STICKLINE(open>=close,open,HIGH,0.5 ,0 ),COLORcccccc; n:=0,100,1315,CMACD指标Var1:=AMOUNT/(100*VOL);Var2:=MA(Var1,N1);Var3:=MA(Var1,N2);CMACD: 100*(Var2-Var3)/Var3, COLORSTICK;n1:=0,100,5n2:=0,100,1316,CBXQD成本均线Var1:=AMOUNT/(100*VOL);Var2:=MA(Var1,N1);Var3:=MA(Var1,N2);Var4:=MA(Var1,N3);Var5:=DMA(CLOSE,VOL/CAPITAL);CYR5: 100*(Var2-REF(Var2,N))/REF(Var2,N);CYR13: 100*(Var3-REF(Var3,N))/REF(Var3,N);CYR34: 100*(Var4-REF(Var4,N))/REF(Var4,N);CYR无穷: 100*(Var5-REF(Var5,N))/REF(Var5,1);n:=0,100,4n1:=0,100,5n2:=0,100,13n3:=0,100,3417,CBW成本带宽CBW: 100*(COST(N1)-COST(N2))/COST(N1);n1:=0,100,98n2:=0,100,218,CBAND布林线宽Var1:=MA(CLOSE,N);Var2:=Var1+2*STD(CLOSE,N);变盘: 5, POINTDOT;布林宽度: (Var2-Var1)/Var1*100;警戒: 30, POINTDOT;n;=5,100,3020,指南针CYE顶部: 4,COLORBLUE;强势: 1,COLORRED;弱势: -1,colorf00ff0;底部: -4,COLORWHITE;短期趋势:(MA(CLOSE,5)-REF(MA(CLOSE,5),1))/REF(MA(CLOSE,5),1)*100,COLORWHITE,LINETHICK2; 中期趋势:(MA(MA(CLOSE,13),5)-REF(MA(MA(CLOSE,13),5),1))/REF(MA(MA(CLOSE,13),5),1)*100,co lorf00ff0,LINETHICK2;长期趋势:(MA(MA(CLOSE,34),5)-REF(MA(MA(CLOSE,34),5),1))/REF(MA(MA(CLOSE,34),5),1)*100,CO LORRED,LINETHICK2;21,0amaVar1:=SMA("AMOUNT",10,1)/10000000;Var2:=REF(Var1,1);AA: STICKLINE(Var1>Var2,Var1,Var2,8,1),COLORRED; AD: STICKLINE(Var1<Var2,Var1,Var2,8,0),COLORGREEN; C5: DMA(SMA(Var1,3,1),VOL/0.02/CAPITAL);C13: DMA(SMA(Var1,5,1),VOL/0.1/CAPITAL);C34: DMA(SMA(Var1,8,1),VOL/0.18/CAPITAL);∞: DMA(Var1,VOL/1.1/CAPITAL);。