b2c信息网

您现在的位置是:首页 > 昨日新闻 > 正文

昨日新闻

独霸一方指标公式源码(霸主指标公式)

hacker2022-10-17 21:40:17昨日新闻140
本文目录一览:1、请老师帮忙编写下图主图指标公式,用在通达信版2、

本文目录一览:

请老师帮忙编写下图主图指标公式,用在通达信版

通达信专用机构通道主图指标公式

M1:=EMA(C,5);M2:=EMA(C,13);M3:=EMA(C,34);

MC1:=EMA(C,55);MC2:=EMA(C,89);MA4:=EMA(C,144);

判势线:=NEWSAR(1,100),COLORYELLOW,LINETHICK2;

牛熊线:IF(MC1MAX(MC2,MA4),MC1,IF(MC1MIN(MC2,MA4),MC2,MA4)),COLORFF00CC,LINETHICK2;

AA:=1;

中轨:EMA(CLOSE,17)*AA,LINETHICK1,COLORFFFFFF;

卖出线:中轨+2*STD(CLOSE,17),LINETHICK1,COLOR0000FF;

买入线:中轨-2*STD(CLOSE,17),LINETHICK1,COLOR00CC00;

清仓线:中轨+3*STD(CLOSE,17),LINETHICK1,COLORFF00FF;

满仓线:中轨-3*STD(CLOSE,17),LINETHICK1,COLOR00AA00;

LOCK:=IF(TIME1160101,1,0);

VARA:=MA(CLOSE,20);

趋势线:IF(VARAREF(VARA,2),VARA,IF(VARAREF(VARA,2),VARA,VARA)),COLOR00FF00;

IF(VARAREF(VARA,2),VARA,DRAWNULL),LINETHICK2,COLORFF00FF;

IF(VARA=REF(VARA,2),VARA,DRAWNULL),LINETHICK2,COLORFF0000;

IF(VARAREF(VARA,2),VARA,DRAWNULL),LINETHICK2,COLOR00FF00;

买入:IF(VARAREF(VARA,2) AND REF(VARA=REF(VARA,2),1),1,0),NODRAW,COLORAAAAAA;

DRAWICON(CROSS(LOW,满仓线),满仓线*0.96,11);

DRAWICON(CROSS(HIGH,清仓线),HIGH,12);

TY:=CLOSE;

A1:=REF(TY,10)=HHV(TY,2*10+1); B1:=FILTER(A1,10); C1:=BACKSET(B1,10+1); HD:=FILTER(C1,10);

A2:=REF(TY,10)=LLV(TY,2*10+1); B2:=FILTER(A2,10); C2:=BACKSET(B2,10+1); LD:=FILTER(C2,10);

A:=REF(CLOSE,BARSLAST(HD)); B:=REF(CLOSE,BARSLAST(LD));

T1:=BARSLAST(HD)BARSLAST(LD) AND NOT(HD) ;

T2:=BARSLAST(HD)BARSLAST(LD) AND NOT(LD);

波峰:IF(T1,A,A),COLORFF00FF,POINTDOT;

STICKLINE(T1,A,A,1.5,0),COLORFF00FF;

波谷:IF(T2,B,B),COLOR80FF00,POINTDOT;

STICKLINE(T2,B,B,1.5,0),COLOR80FF00;

MA1:=MA(C,3);

XG1:=MA1REF(MA1,1) AND REF(MA1,1)REF(MA1,2) AND CMA(C,7);

DRAWTEXT(FILTER(XG1,9),LOW*0.97,'B'),COLORRED,LINETHICK2;

DRAWICON(FILTER(XG1,9),LOW*0.98,1);

VAR2:=SUM(IF(CLOSEOPEN,VOL,0),30)/SUM(VOL,30)*100;

VAR3:=100-SUM(IF(CLOSEOPEN,VOL,0),30)/SUM(VOL,30)*100;

多头力量:= VAR2;

空头力量:= VAR3;

RSV:=(CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100;

K:=SMA(RSV,3,1);

D:=SMA(K,3,1);

XG2:=多头力量 空头力量 AND 多头力量 - 空头力量30 AND CROSS(D,K) OR

MA1REF(MA1,1) AND REF(MA1,1)REF(MA1,2) AND REF(MA1,2)REF(MA1,3) AND K50;

DRAWTEXT(FILTER(XG2,9),H*1.06,'S'),COLORGREEN,LINETHICK2;

DRAWICON(FILTER(XG2,9),H*1.02,2);

{跳空缺口}

LL1:=REF(L,1);

HH1:=REF(H,1);

SQK:=LHH1;

XQK:=HLL1;

上跳:IF(SQK=1,L-HH1,DRAWNULL),COLORFF00FF,CROSSDOT,LINETHICK3,NODRAW;

下跳:IF(XQK=1,H-LL1,DRAWNULL),COLORGREEN,CROSSDOT,LINETHICK3,NODRAW;

STICKLINE(SQK,L,HH1,4*1,1),COLORYELLOW;{上跳}

STICKLINE(XQK,H,LL1,4*1,2),COLOR00FF00;{下跳}

DRAWTEXT(SQK,H,'上跳'),COLORYELLOW;

DRAWTEXT(XQK,L,'下跳'),COLOR00FF00;

{补缺口}

K1:=BARSLAST(LREF(H,1));

K2:=LREF(H,K1+1) AND COUNT(LREF(H,K1+1),K1)=1;

STICKLINE(K2,L,O,1,0),COLORFF00FF;{缺口回补};

DRAWTEXT(K2=1,L,'回补'),COLORFF00FF;

求一个通达信指标公式

MACD是个很经黄的指标。同时也有很多用法。我搜集了相关的源码,供大家参考 ,喜欢就点个关注。今后为你提供更多的分享。

公式源码,默认是使用在通达信中,但是其他的软件一般也能兼容的。选出股票后能否买入依然还要综合参考大趋势和其它指标。金叉并非万能,有时刚刚进入金叉或准金叉状态,也可能是上一波反弹的结束,下一波下跌的开始。只有当金叉周期的前后周期均为上涨趋势,金叉的威力才最大。

业绩的持续增长才是技术指标的前提和保证。

1、0轴上方第一次金叉选股公式:

DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);

DEA := EMA(DIFF,9);

MACD := 2*(DIFF-DEA);

xg:cross(diff,dea) and dea-1.0 and dea0.5 and CLOSEref(CLOSE,1) and CLOSE=ma(c,60);

或:

DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);

DEA:=EMA(DIF,9);

XG:DIF0 AND DEA0 AND CROSS(DIF,DEA);

2、0轴上方二次金叉的选股公式:

JC:IF(SUM(IF(MACD0 AND CROSS(MACD.DIF,MACD.DEA),1,0),0)-HHV(IF(IF(CROSS(MACD.DEA,0),1,0),

SUM(IF(MACD0 AND CROSS(MACD.DIF,MACD.DEA),1,0),0),0),0)=2 AND SUM(IF(MACD0 AND CROSS(MACD.DIF,MACD.DEA),1,0),

0)REF(SUM(IF(MACD0 AND CROSS(MACD.DIF,MACD.DEA),1,0),0),1),10,0);

{选股设JC=10即可}

3.0轴下方一次金叉的选股公式:

DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);

DEA:=EMA(DIFF,9);

MACD:=(DIFF-DEA)*2;

低位金叉:CROSS(DIFF,DEA) AND DIFF-0.1;

4、0轴下方二次金叉且第二次金叉高于第一次金叉:

DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);

DEA:=EMA(DIF,9);

AA:=BARSLAST(REF(CROSS(DIF,DEA),1));

二次金叉:CROSS(DIF,DEA) AND DIFREF(DIF,AA+1) AND AA20 AND DIF0;

5、0轴下方二次金叉选股公式:

DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26); {选股设JC=10即可}

DEA:=EMA(DIFF,9);

MACD:=2*(DIFF-DEA);

A:=IF(CROSS(0,DEA),1,0);

A1:=IF(DIFF0 AND CROSS(DIFF,DEA),1,0);

SS:=IF(A,SUM(A1,0),0);

SSB:=HHV(SS,0);

SSS:=SUM(A1,0);

JC:IF(SSS-SSB=2 AND SSSREF(SSS,1),10,0);

6、缩量横盘突破选股:

WH01:=(HHV(C,10)-LLV(C,10))/LLV(C,10)*100=10;

WH02:=SUM(VOL,10)/CAPITAL*10045;

WH03:=REF(WH01,1);

WH04:=HHVBARS(HIGH,55)20 OR C=HHV(H,55);

WH05:=WH02 AND WH03 AND WH04 AND CREF(HHV(H,10),1);

WH05 AND REF(NOT(WH05),1);

7、均线、KDJ、MACD金叉的预警选股公式

完全符合以下条件:

1、5日线上穿10日线

2、MACD金叉

3、KDJ金叉(KDJ数值由9、3、3调整为8、2、2)

4、成交量指标金叉

通达信预警选股公式

A1:=CROSS(MA(C,5),MA(C,10));

A2:=CROSS(MACD.DIF,MACD.DEA);

A3:=CROSS(KDJ.K(8,2,2),KDJ.D(8,2,2));

A4:=CROSS(MA(V,5),MA(V,10));

XG:A1 AND A2 AND A3 AND 4;

三金叉选股完整源码,绝无未来函数

均线、成交量、MACD同时金叉

MA1:=MA(CLOSE,5);

MA2:=MA(CLOSE,10);

AA:=CROSS(MA1,MA2);

AAA:=COUNT(AA,3)=1;

T1:=MA(VOL,5);

T2:=MA(VOL,10);

BB:=CROSS(T1,T2);

BBB:=COUNT(BB,3)=1;

DIF:=EMA(CLOSE,12) - EMA(CLOSE,26);

DEA:=EMA(DIF,9);

MACD:=(DIF-DEA)*2;

CC:=CROSS(DIF,DEA);

CCC:=COUNT(CC,3)=1;

三金:=AAA AND BBB AND CCC;

三金叉:FILTER(三金,3),COLORFF00FF;

使用说明:该选股公式适合超级短线,快进快出具有一定的风险因素,此时的股价往往处于拉高拔升阶段。

要求使用者特别关注股价所处的位置,如果过于高位防止庄家诱多。低位可大胆搏杀,短期回档被套也有回旋余地。

8、四线粘合

N1:=5;N2:=10;N3:=20;M:=1;

MA1:=MA(C,N1);MA2:=MA(C,N2);MA3:=MA(C,N3);

A3:=VREF(V,1)*1.5 AND VMA(V,5);

MAX(MA1,MAX(MA2,MA3))/MIN(MA1,MIN(MA2,MA3))1+0.01*M

AND CO AND V REF(V,1) AND FINANCE(7)=300000000

AND A3 AND CAPITAL=300000000;

9、均线粘合

M:=1;

M5:=MA(CLOSE,5);

M10:=MA(CLOSE,10);

M20:=MA(CLOSE,20);

K1:=MAX(MAX(M5,M10),MAX(M10,M20));

K2:=MIN(MIN(M5,M10),MIN(M10,M20));

A:=MAX(M5,MAX(M10,M20))/MIN(M5,MIN(M10,M20))1+0.01*M;

A1:=(K1/K2-1)0.005;

A2:=(K1/K2-1)0.005;

A3:=VREF(V,1)*1.5 AND VMA(V,5);

XG:A AND A1 AND A2 AND A3 ;

10、多线粘合

V0:=EMA(C,5);

V1:=EMA(C,10);

V2:=EMA(C,15);

V3:=EMA(C,30);

V4:=EMA(C,60);

M1:=1000*V1/V4=1015 AND 1000*V1/V4=975;

M2:=1000*V2/V4=1020 AND 1000*V2/V4=980;

M3:=1000*V3/V4=1015 AND 1000*V3/V4=985;

M4:=M1 AND M2 AND M3 AND CROSS(V0,V1);

M5:=M1 AND M2 AND M3 AND CROSS(V0,V3);

M4 OR M5;

11、MACD天天挣钱选股指标公式

DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);

DEA:=EMA(DIFF,9);

XG:CROSS(REF(DEA,1),REF(DIFF,1)) AND CROSS(DIFF,DEA);

12、短线之王

VAR1:=(-100)*(HHV(HIGH,3)-CLOSE)/(HHV(HIGH,3)-LLV(LOW,3));

CROSS(VAR1,-87) AND OPENMA(CLOSE,5) AND CLOSE=1.099*REF(CLOSE,1) AND INDEXC0.98*REF(INDEXC,1) AND CLOSE=1.47*LLV

(CLOSE,58);

13、自用短线MACD 副图

DIF:EMA(CLOSE,3)-EMA(CLOSE,7);

DEA:EMA(DIF,3);

MACD:(DIF),COLORSTICK;

DIF,COLORGREEN,LINETHICK2;

DEA,COLORGREEN,LINETHICK2;

线上金叉买:0,COLORGREEN,LINETHICK2;

IF(DIFDEA,DIF,DRAWNULL),COLORRED,LINETHICK2;

IF(DEAREF(DEA,1),DEA,DRAWNULL),COLORMAGENTA,LINETHICK2;

DRAWICON(CROSS(DIF,DEA),DEA,25);

DRAWICON(CROSS(DEA,DIF),DEA,24);

14 、MACD低位反转点

DIF:EMA(CLOSE,12)-EMA(CLOSE,135);

DEA:=EMA(DIF,9);

MACD:=(DIF-DEA)*2;

反转:MACD0 AND MACDREF(MACD ,1) AND REF(MACD ,1)REF(MACD ,2)

AND REF(MACD ,2)REF(MACD ,3)

AND REF(MACD ,3)REF(MACD ,4);

15.冠军MACD资金流向

DIFF:=EMA(CLOSE,3)-EMA(CLOSE,7);

DEA:=EMA(DIFF,3);

MACD2:=2*(DIFF-DEA);

(CLOSE0 AND CROSS(DIFF,0),H*1.3),COLOR000080,NODRAW;

(CLOSE0 AND CROSS(MACD2,0),H*1.3),COLOR000080,NODRAW;

(CLOSE0 AND CROSS(0,DIFF),H*1.3),COLOR808080,NODRAW;

(CLOSE0 AND CROSS(0,MACD2),H*1.3),COLOR808080,NODRAW;

DU0:=CROSS(DIFF,0);

UD0:=CROSS(0,DIFF);

TDU0:=BARSLAST(DU0);

TUD0:=BARSLAST(UD0);

DU3:=REF(DU0,1);

UD3:=REF(UD0,1);

TDU3:=BARSLAST(DU3);

TUD3:=BARSLAST(UD3);

UDGLINE:=IF(TDU3TUD3,REF(HHV(HIGH,2),TDU3),REF(LLV(LOW,2),TUD3));

JDU0:=REF(CLOSE,1)=REF(UDGLINE,1) AND CLOSEUDGLINE AND TDU0TUD0;

JUD0:=REF(CLOSE,1)=REF(UDGLINE,1) AND CLOSEUDGLINE AND TUD0TDU0;

JDU1:=JDU0 AND COUNT(JDU0,TDU0)=1;

JUD1:=JUD0 AND COUNT(JUD0,TUD0)=1;

JDU2:=JDU1 AND REF(BARSLAST(JUD1),1)REF(BARSLAST(JDU1),1);

JUD2:=JUD1 AND REF(BARSLAST(JUD1),1)REF(BARSLAST(JDU1),1);

JDU3:=JDU1 AND REF(BARSLAST(JUD1),1)REF(BARSLAST(JDU1),1);

JUD3:=JUD1 AND REF(BARSLAST(JUD1),1)REF(BARSLAST(JDU1),1);

BSLINE:=IF(BARSLAST(JDU2)BARSLAST(JUD2),IF(REF(CROSS(0,MACD2),1),LLV(LOW,2),REF(LLV(LOW,2),BARSLAST(REF(CROSS

(0,MACD2),1)))),IF(REF(CROSS(MACD2,0),1),HHV(HIGH,2),REF(HHV(HIGH,2),BARSLAST(REF(CROSS(MACD2,0),1)))));

STICKLINE(MACD2=0,0,MACD2,2,1),COLOR0000FF;

STICKLINE(MACD2=0 AND MACD2REF(MACD2,1),0,MACD2,2,0),COLOR0000FF;

STICKLINE(MACD20,0,MACD2,2,0),COLORFFFF00;

STICKLINE(MACD20 AND MACD2REF(MACD2,1),0,MACD2,2,1),COLORFFFF00;

DIFIFF,LINETHICK2,COLOR0000FF;

MACDEA,COLORFF0000;

DEF:MACD2,LINETHICK0,COLORFFFF00;

STICKLINE(CLOSE0,0,0,2,0),COLOR808080;

DEFUT:=BARSLAST(CROSS(MACD2,0));

DEFDT:=BARSLAST(CROSS(0,MACD2));

DEFUL:=IF(MACD2=0,HHV(MACD2,DEFUT+1),REF(HHV(MACD2,DEFUT+1),DEFDT+1));

DEFDL:=IF(MACD20,LLV(MACD2,DEFDT+1),REF(LLV(MACD2,DEFDT+1),DEFUT+1));

DEFU2L:=REF(DEFUL,DEFUT+1);

DEFD2L:=REF(DEFDL,DEFDT+1);

DRAWICON(LLV(MACD2,4)0 AND MACD2REF(MACD2,1) AND REF(MACD2,1)REF(MACD2,2) AND REF(MACD2,2)REF(MACD2,3),MACD2,2);

DRAWICON(HHV(MACD2,4)0 AND MACD2REF(MACD2,1) AND REF(MACD2,1)REF(MACD2,2) AND REF(MACD2,2)REF(MACD2,3),MACD2,1);

DRAWICON((JUD1 OR BARSLAST(JDU1)BARSLAST(JUD1)) AND MACD2=0 AND REF(MACD2,1)REF(DEFU2L,1) AND MACD2DEFU2L,MACD2,5);

DRAWICON((JDU1 OR BARSLAST(JDU1)BARSLAST(JUD1)) AND MACD20 AND REF(MACD2,1)REF(DEFD2L,1) AND MACD2DEFD2L,MACD2,3);

VAR111:=JDU1 OR BARSLAST(JDU1)BARSLAST(JUD1);

VAR112:=HHV(MACD2,4)0 AND MACD2REF(MACD2,1) AND REF(MACD2,1)REF(MACD2,2) AND REF(MACD2,2)REF(MACD2,3);

16、变色MACD

DIFIF1:=EMA(CLOSE,12) - EMA(CLOSE,26);

DEAEA1:=EMA(DIFIF1,9);

MACD1:=2*(DIFIF1-DEAEA1),STICK;

MACD2:=EMA(MACD1,3);

STICKLINE(MACD1MACD2 AND MACD10,0,MACD1,1,0),COLORRED;

STICKLINE(MACD1MACD2 AND MACD10,0,MACD1,1,0),COLORGREEN;

STICKLINE(MACD1MACD2,0,MACD1,1,0),COLORCBCBC0;

STICKLINE(MACD1=0 OR MACD1=0,0,0,50,1),COLORWHITE;

DIFIF1,COLOR33FF33,LINETHICK2;

DEAEA1,COLORYELLOW,LINETHICK2;

MACD:MACD1,NODRAW,COLORMAGENTA;

强:IF(DIFIF1=DEAEA1,DIFIF1,DRAWNULL),COLORRED,LINETHICK2;

弱:IF(DEAEA1=DIFIF1,DEAEA1,DRAWNULL),COLORFF9900,LINETHICK2;

DRAWICON(CROSS(DIFIF1,DEAEA1),DIFIF1+0.1,1);

DRAWICON(CROSS(DEAEA1,DIFIF1),-0.5,2);

DRAWTEXT(CROSS(DIFIF1,DEAEA1),DIFIF1,'○'),LINETHICK2, COLORYELLOW;

17、至尊MACD{注意用到了未来函数DCLOSE}{本指标只作趋势参考}

DIFF:EMA(DCLOSE,12)-EMA(DCLOSE,26);

DEA:EMA(DIFF,9),COLORFFFF00;

MACD:(DIFF-DEA)*2;

STICKLINE(MACD=0 AND MACD=REF(MACD,1),0,MACD,1,0),COLORRED;

STICKLINE(MACD=0 AND MACD=REF(MACD,1),0,MACD,1,0),COLORGREEN;

STICKLINE(MACD=0 AND MACD=REF(MACD,1),0,MACD,1,0),COLORFF00FF;

STICKLINE(MACD=0 AND MACD=REF(MACD,1),0,MACD,1,0),COLOR00FFFF;

多转空:=((((LLV(MACD,4)0) AND (MACDREF(MACD,1))) AND (REF(MACD,1)REF(MACD,2))) AND (REF(MACD,2)REF(MACD,3)));

空转多:=((((HHV(MACD,4)0) AND (MACDREF(MACD,1))) AND (REF(MACD,1)REF(MACD,2))) AND (REF(MACD,2)REF(MACD,3)));

DRAWICON(多转空,MACD,2);

DRAWICON(空转多,MACD,1);

低位金叉:=CROSS(DIFF,DEA) AND DIFF-0.1;

DRAWTEXT(低位金叉,DEA,' 低位金叉'),COLORFF00FF;

JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA=0));

二次金叉:=CROSS(DIFF,DEA) AND DEA0 AND COUNT(JCCOUNT=2,21)=1;

STICKLINE(二次金叉,0,0.2,2,0),COLORFF00FF;

DRAWTEXT(二次金叉,DEA*1.06,'二次金叉'),COLORRED;

A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));

底背离:=REF(CLOSE,A1+1)CLOSE AND DIFFREF(DIFF,A1+1) AND CROSS(DIFF,DEA);

DRAWTEXT(底背离,-0.2-MACD,'底背离'),COLORWHITE;

A2:=BARSLAST(REF(CROSS(DEA,DIFF),1));

顶背离:=REF(CLOSE,A2+1)CLOSE AND REF(DIFF,A2+1)DIFF AND CROSS(DEA,DIFF);

DRAWTEXT(顶背离,0.2+MACD,'顶背离'),COLORWHITE;

18、条件选股公式:(双佛手向上) 缺省周期:日线

======================================================================

DIFF := EMA(CLOSE,12) - EMA(CLOSE,26);

DEA := EMA(DIFF,27);

MACD := 2*(DIFF-DEA);

CLOSEOPEN AND MA(CLOSE,5)MA(CLOSE,10) and MA(CLOSE,10)MA(CLOSE,30)

and DIFFDEA AND MACDREF(MACD,1) and DIFF0 AND DEA0 and MA(VOL,5)MA(VOL,34)

and MA(CLOSE,30)=REF(MA(CLOSE,30),1)

=======================================================================================

根据《南征北战之二》中的双佛手向上思路编写,指标用法:

1.DIFF线回调DEA线附近时不死叉,又调头向上。

2.30日均线走平或向上,同时5日线和10日线在30日线上方金叉,且当日收阳线。

3.5日均量线回调到34日均量线附近时不死叉,又调头向上。

以上三个条件要同时成立时将有一波上升浪,应果断买入。

将MACD指标的m参数调为27

19、条件选股公式:(漫步青云) 缺省周期:日线

======================================================================

DIFF := EMA(CLOSE,12) - EMA(CLOSE,26);

DEA := EMA(DIFF,27);

dje:=DIFF=0 and DEA=0 and CROSS(DIFF,DEA);

a5:=MA(CLOSE,5)MA(CLOSE,10);

v5:=VOLMA(VOL,5) and MA(VOL,5)MA(VOL,10);

dje and a5 AND V5 AND MA(CLOSE,30)=REF(MA(CLOSE,30),1)

======================================================

将macd指标的参数调为12,26,27

主要用法:当30日均线走平或上扬,5日均量大于10日均量,当日成交量大于5日均量,

5日均线金叉或已金叉10日均线,macd指标中diff线在0轴上死叉dea线,DIFF线下穿0轴后,又再次上穿并在0轴或0轴上金叉dea线,应果断介入。

但若此时K线离30日,30周,30小时均线较远,不能介入

20、======================================================================

条件选股公式:(空中缆绳) 缺省周期:日线

======================================================================

DIFF := EMA(CLOSE,12) - EMA(CLOSE,26);

DEA := EMA(DIFF,27);

MACD := 2*(DIFF-DEA);

b:=MIN(DIFF,DEA)/MAX(diff,dea)0.95;

MA(CLOSE,30)REF(MA(CLOSE,30),1) and diff0 and dea0 AND MACDREF(MACD,1) and b

DRAWTEXT_FIX(1,0.88,5,0,'~☆神奇指标 出品☆~'),colorred;

将MACD指标的参数调为sh:12;long:26;M:27

用法:30日均线上扬或走平,主力开始洗盘。

这时macd指标中的DIFF线随股价的回调而与DEA线在0轴上粘合数值几乎相等,只要5日均线在30日均线上方金叉或已金叉10日均线,macd指标红柱加长,DIFF线脱离DEA线上扬,就是买点。

求股票公式高手帮忙整合股票指标公式

强烈要求+分!!!

重新修改了一下,把蛮准的红色信号修改成了用白色方块覆盖K线的形式显示出来了,还是直接复制下面的内容:

{第一个}

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;

{第二个}

LC:=REF(CLOSE,1);

RSI:=SMA(MAX(CLOSE-LC,0),4.1,1)/SMA(ABS(CLOSE-LC),4.1,1)*100;

蛮准:=CROSS(RSI,11)*80;

STICKLINE(蛮准,OPEN,CLOSE,5,0),colorwhite;

{第三个}

M5:MA(CLOSE,5);

M10:MA(CLOSE,10);

M20:MA(CLOSE,20);

M60:MA(CLOSE,60);

BB:=REF(INDEXC,1)REF(INDEXC,2) AND REF(C,2)*0.95=REF(C,1) AND REF(O,1)/REF(C,1)=1.05

AND REF(C,1)REF(O,1) AND CO AND C/O=1.05 AND CREF(O,1)

AND REF(VOL,1)REF(VOL,2);

STICKLINE(BB,O,C,4,0),COLORRED;

STICKLINE(BB,O,H,0,0),COLORRED;

STICKLINE(BB,L,C,0,0),COLORRED;

DRAWTEXT(BB,L*0.98,'追!'),COLORYELLOW;

VAR1:=4*SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,5,1)-

3*SMA(SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,5,1),3.2,1);

VAR2:=8;

CC:=CROSS(VAR1,VAR2);

DRAWTEXT(CC,L*0.98,'买!'),COLOR0099FF;

TYP:=(H+L+C)/3;

TYP1:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14))=20 AND REF(MA(C,21),1)MA(C,21);

TJ1:=OMAX(REF(C,1),REF(O,1));

TJ2:=REF(C,1)=MA(C,21) AND L/MA(C,21)=1.015 AND MA(C,144)MA(C,250) AND VMA(V,10) AND MIN(REF(V,2),REF(V,1))V;

TJ3:=REF(MA(C,250),90)REF(MA(C,144),90) AND MA(C,144)MA(C,250) AND OMA(C,250);

TJ4:=MAX(REF(H,10)AND REF(H,9)AND REF(H,8)AND REF(H,7), REF(H,6));

TOUJI:=TYP1 AND TJ1 AND TJ2 AND REF(C,2)/REF(O,2)1.06 AND C/O=1.05 AND HHV(H,5)/LLV(L,30)=1.65 AND REF(H,5)/REF(L,1)=1.15 AND REF(C,1)/REF(O,1)=0.995 AND (LREF(L,2) OR (REF(H,2)-REF(L,2))/(H-L)=2) AND O/REF(L,1)=1.04

OR TYP1 AND TJ1 AND O/REF(L,1)1.05 AND REF(L,1)/REF(O,4)=0.85 AND REF(C,1)/REF(O,1)=1.03 AND OREF(C,1) AND HHV(H,5)/LLV(L,35)1.35 AND VMA(V,10);

TOUJI2:=TYP1 AND TJ1 AND TJ2 AND O/REF(L,1)1.05 AND O/LLV(L,3)1.1 AND REF(C,1)/REF(0,1)=1.05 AND HHV(H,4)/LLV(L,16)=1.35 AND REF(O,4)/REF(C,2)=1.08 AND REF(C,2)/REF(O,2)=0.995 AND (REF(L,2)REF(L,3) OR (REF(H,3)-REF(L,3))/(REF(H,1)-REF(L,1))=2) AND LMIN(REF(C,1),REF(O,1))

OR TYP1 AND TJ1 AND HHV(H,10)/LLV(L,25)=1.3 AND REF(C,5)REF(H,5) AND REF(C,4)REF(C,5) AND REF(C,3)REF(C,4) AND REF(C,2)REF(C,3) AND REF(C,1)REF(C,2) AND LREF(L,1) AND M5/O1.1;DATOUJI:=TYP1 AND TJ3 AND OREF(C,5) AND O=REF(C,1) AND REF(H,10)/O=1.17 AND HHV(H,10)/LLV(L,30)1.4 AND (MA(V,10)/HHV(V,10)0.5 AND V/HHV(V,10)0.2 AND V/HHV(V,10)0.4 OR REF(V,3)REF(V,2) AND REF(V,2)REF(V,1)) AND REF(C,1)/REF(C,2)=1.02;

DATOUJI1:=TYP1 AND TJ3 AND OREF(L,6) AND OMIN(REF(C,5)AND REF(O,5),5) ;

DRAWTEXT(CROSS(MA(VOL,10),MA(VOL,20)) AND MA(VOL,5)MA(VOL,10) AND LMA(C,20) AND C=MA(C,20),L*0.98,'量托'),COLORWHITE;

卖出:=CROSS(90,SMA(MAX(CLOSE-REF(CLOSE,1),0),6,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),6,1)*100);

DRAWTEXT(卖出,H*1.05,'短卖'),COLORGREEN;

W1:=C=HHV(C,20);

W2:=BARSLAST(W1);

W3:=IF(W20,REF(C,W2),REF(C,W2));

W4:=CROSS(C,REF(W3,1));

突破盘整:=W4 AND COUNT(W4,5)=1;

DRAWICON(突破盘整,L-0.10,1);

{到此结束}

---------------------------------------------------------------------------------

三个指标,主要是第一个和第三指标的源码里有几条都是重复的,所以我删了一部分,但绝对不影响修改之前的效果,这点可以放心。

飞鹰猎庄这个指标,里面有一句本身就不能在软件里显示:

DRAWTEXT(TOUJI OR TOUJI2 OR DATOUJI OR DATOUJI1,L*0.98,'△'),COLORYELLOW;

我发现这句在L2软件里也不会显示,所以干脆删除。

呼,这个还是比较复杂的........反正弄好了,你看看能不能用???

发表评论

评论列表

  • 假欢戏侃(2022-10-18 00:29:26)回复取消回复

    LOSEOPEN,VOL,0),30)/SUM(VOL,30)*100;多头力量:= VAR2;空头力量:= VAR3;RSV:=(CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW

  • 孤鱼渊鱼(2022-10-18 06:00:01)回复取消回复

    C1:=BACKSET(B1,10+1); HD:=FILTER(C1,10); A2:=REF(TY,10)=LLV(TY,2*10+1); B2:=FILTER(A2,10); C2:=BACKSET(B2,10+1); LD:=FILTER(C2,10);

  • 走野1(2022-10-18 00:05:06)回复取消回复

    ),LINETHICK2,COLORFF0000; IF(VARAREF(VARA,2),VARA,DRAWNULL),LINETHICK2,COLOR00FF00; 买入:IF(VARAREF(VARA,2) AN

  • 只影扶弦(2022-10-18 08:21:31)回复取消回复

    通达信指标公式MACD是个很经黄的指标。同时也有很多用法。我搜集了相关的源码,供大家参考 ,喜欢就点个关注。今后为你提供更多的分享。公式源码,默认是使用在通达信中,但是其他的软件一般