admin 管理员组

文章数量: 887021


2023年12月24日发(作者:jquery教程哪个好)

通达信指标公式画线颜色色码大全

1 白色 ColorFFFFFF 或 ColorWhite

2 红色 ColorFF0000 或 COLORRED

3 绿色 Color00FF00 或 ColorGreen

4 蓝色 Color0000FF 或 ColorBlue

5 牡丹红 ColorFF00FF

6 青色 Color00FFFF

7 黄色 ColorFFFF00 或 ColorYellow

8 黑色 Color000000 或 ColorBlack

9 海蓝 Color70DB93

10 巧克力色 Color5C3317

11 蓝紫色 Color9F5F9F

12 黄铜色 ColorB5A642

13 亮金色 ColorD9D919

14 棕色 ColorA67D3D

15 青铜色 Color8C7853

16 2号青铜色 ColorA67D3D

17 士官服蓝色 Color5F9F9F

18 冷铜色 ColorD98719

19 铜色 ColorB87333

20 珊瑚红 ColorFF7F00

21 紫蓝色 Color42426F

22 深棕 Color5C4033

23 深绿 Color2F4F2F

24 深铜绿色 Color4A766E

25 深橄榄绿 Color4F4F2F

26 深兰花色 Color9932CD

27 深紫色 Color871F78

28 深石板蓝 Color6B238E

29 深铅灰色 Color2F4F4F

30 深棕褐色 Color97694F

32 深绿松石色 Color7093DB

33 暗木色 Color855E42

34 淡灰色 Color545454

35 土灰玫瑰红色 Color545454

36 长石色 ColorD19275

37 火砖色 Color8E2323

38 森林绿 Color238E23

39 金色 ColorCD7F32

40 鲜黄色 ColorDBDB70

41 灰色 ColorC0C0C0

42 铜绿色 Color527F76

43 青黄色 Color93DB70

44 猎人绿 Color215E21

45 印度红 Color4E2F2F

46 土黄色 Color9F9F5F

47 浅蓝色 ColorC0D9D9

48 浅灰色 ColorA8A8A8

49 浅钢蓝色 Color8F8FBD

59 浅木色 ColorE9C2A6

60 石灰绿色 Color32CD32

61 桔黄色 ColorE47833

62 褐红色 Color8E236B

63 中海蓝色 Color32CD99

64 中蓝色 Color3232CD

65 中森林绿 Color6B8E23

66 中鲜黄色 ColorEAEAAE

67 中兰花色 Color9370DB

68 中海绿色 Color426F42

69 中石板蓝色 Color7F00FF

70 中春绿色 Color7FFF00

71 中绿松石色 Color70DBDB

72 中紫红色 ColorDB7093

73 中木色 ColorA68064

74 深藏青色 Color2F2F4F

75 海军蓝 Color23238E

76 霓虹篮 Color4D4DFF

77 霓虹粉红 ColorFF6EC7

78 新深藏青色 Color00009C

79 新棕褐色 ColorEBC79E

80 暗金黄色 ColorCFB53B

81 橙色 ColorFF7F00

82 橙红色 ColorFF2400

83 淡紫色 ColorDB70DB

84 浅绿色 Color8FBC8F

85 粉红色 ColorBC8F8F

86 李子色 ColorEAADEA

87 石英色 ColorD9D9F3

88 艳蓝色 Color5959AB

89 鲑鱼色 Color6F4242

90 猩红色 ColorBC1717

91 海绿色 Color238E68

92 半甜巧克力色 Color6B422693 赭色 Color8E6B23

94 银色 ColorE6E8FA

95 天蓝 Color3299CC

96 石板蓝 Color007FFF

97 艳粉红色 ColorFF1CAE

98 春绿色 Color00FF7F

99 钢蓝色 Color236B8E

100 亮天蓝色 Color38B0DE

101 棕褐色 ColorDB9370

102 紫红色 ColorD8BFD8

103 石板蓝色 ColorADEAEA

104 浓深棕色 Color5C4033

105 淡浅灰色 ColorCDCDCD

106 紫罗兰色 Color4F2F4F

107 紫罗兰红色 ColorCC3299

108 麦黄色 ColorD8D8BF

109 黄绿色 Color99CC32

● 通达信指标的线条颜色属性

COLORBLACK黑色,COLORBLUE蓝色,COLORGREEN绿色,COLORCYAN青色,COLORRED红色,COLORMAGENTA洋红色,COLORBROWN棕色,COLORLIGRAY淡灰色,COLORGRAY深灰色,COLORLIBLUE淡蓝色,COLORLIGREEN淡绿色,COLORLICYAN 淡青色,COLORLIRED淡红色,COLORLIMAGENTA淡洋红,COLORYELLOW黄色,COLORWHITE白色。

COLOR 自定义色用RGB值表示:格式为 COLORXXYYZZ。例如:

橙色 COLOR0033FF。每种颜色的数值用16进数表示,通达信指标范围为00~FF。颜色次序与网页相反,即BBGGRR。例如:红色 0000FF,蓝色 FF0000,绿色 00FF00,黑色 000000,白色 FFFFFF,深灰 808080,湖水蓝 808000,紫色 CC3366,黄色 00FFFF

● 线条形式属性 LINETHICK(n) 线型粗细。

n=1~9,n=0不显示(默认),通达信指标不用此描述符时默认n=1

CROSSDOT 小叉线 CIRCLEDOT 小圆圈线 POINTDOT 小圆点线 STICK 柱状线 COLORSTICK

彩色柱状线 VOLSTICK 彩色量柱形线 LINESTICK 幼柱线及其顶点连线

(1)、画图标

DRAWICON

绘制图标在图形上绘制小图标。

用法:DRAWICON(COND,PRICE,TYPE),当COND条件满足时,在PRICE位置画TYPE号图标。

例如:DRAWICON(CLOSE>OPEN,LOW,1)

表示当收阳时在最低价位置画1号图标。

图标一共有九个,图形如附图。

传统图标有九个,现在新增到27个,图标各有其序号。

(2)、显示文字

DRAWTEXT

显示文字在图形上显示文字。

用法:DRAWTEXT(COND,PRICE,TEXT),当COND条件满足时,在PRICE位置书写文字TEXT。

例如:DRAWTEXT(CLOSE/OPEN>1.08,LOW,'大阳线')表示当日涨幅大于8%时在最低价位置显示'大阳线'字样。

(3)、画柱线

STICKLINE

在图形上绘制柱线.

用法:STICKLINE(COND,PRICE1,PRICE2,WIDTH,EMPTY),当COND条件满足时,在PRICE1和PRICE2位置之间画柱状线,宽度为WIDTH(10为标准间距),EMPTH不为0则画空心柱。

例如:STICKLINE(CLOSE>OPEN,CLOSE,OPEN,0.8,1)表示画K线中阳线的空心柱体部分。

(4)、画K线

DRAWKLINE 绘制K线

用法:DRAWKLINE(HIGH,OPEN,LOW,CLOSE).

以HIGH为最高价,OPEN为开盘价,LOW为最低,CLOSE收盘画K线。

(5)、画直线段

DRAWLINE

在图形上绘制直线段.

用法:DRAWLINE(COND1,PRICE1,COND2,PRICE2,EXPAND)当COND1条件满足时,在PRICE1位置画直线起点,当COND2条件满足时,在PRICE2位置画直线终点,EXPAND为延长类型。

例如:DRAWLINE(HIGH>=HHV(HIGH,20),HIGH,LOW<=LLV(LOW,20),LOW,1)

表示在创20天新高与创20天新低之间画直线并且向右延长。

(6)、画折线段

PLOYLINE

在图形上绘制折线段。

用法:PLOYLINE(COND,PRICE),当COND条件满足时,以PRICE位置为顶点画折线连接。

例如: PLOYLINE(HIGH>=HHV(HIGH,20),HIGH)表示在创20天新高点之间画折线。

新增绘图函数

画带状线

DRAWBAND

画出带状线.

DRAWBAND(VAL1,COLOR1,VAL2,COLOR2),当VAL1>VAL2时,在VAL1和VAL2之间填充COLOR1;当VAL1

例如:DRAWBAND(OPEN,RGB(0,224,224),CLOSE,RGB(255,96,96));

自定色

RGB 将自定颜色作为数值输出.

RGB(Red,Green,Blue),输出为0XBBGGRR,参数使用十进制数,范围为0至255,以最近一个周期数值为准。

例如:RGB(0,0,255)输出结果为16进制的0XFF0000。

画数字

DRAWNUMBER

画出数字.

DRAWNUMBER(COND,PRICE,NUMBER),当COND条件满足时,在PRICE位置书写数字NUMBER。

例如:DRAWNUMBER(CLOSE/OPEN>1.08,LOW,C)表示当日涨幅大于8%时在最低价位置显示收盘价。

画定点数字

DRAWNUMBER_FIX

固定位置显示数字.

DRAWNUMBER_FIX(COND,X,Y,TYPE,NUMBER),当COND条件满足时,在当前指标窗口内(X,Y)位置书写数字NUMBER,X,Y为书写点在窗口中相对于左上角的百分比,TYPE:0为左对齐,1为右对齐。

例如:DRAWNUMBER_FIX(CURRBARSCOUNT=1 AND CLOSE/OPEN>1.08,0.5,0.5,0,C)表示最后一个交易日涨幅大于8%时在窗口中间位置显示收盘价。

定点文字

DRAWTEXT_FIX

固定位置显示文字.

DRAWTEXT_FIX(COND,X,Y,TYPE,TEXT),当COND条件满足时,在当前指标窗口内(X,Y)位置书写文字TEXT,X,Y为书写点在窗口中相对于左上角的百分比,TYPE:0为左对齐,1为右对齐。

例如:DRAWTEXT_FIX(CURRBARSCOUNT=1 AND CLOSE/OPEN>1.08,0.5,0.5,0,'大阳线')表示最后一个交易日涨幅大于8%时在窗口中间位置显示'大阳线'字样。

例如:DRAWTEXT_FIX(ISLASTBAR,0,0,0,STRCAT(Z3,GNBLOCK)),COLOR00C0C0;

DRAWTEXT(ISLASTBAR,LOW ,DYBLOCK);在最后一个交易日的最高价位置打印所属地域板块

所属地域 NAMELIKE INBLOCK DYBLOCK 返回股票所属行业.

DRAWTEXT(ISLASTBAR,HIGH,HYBLOCK);在最后一个交易日的最高价位置打印所属行业板块所属行业

ISLASTBAR 判断是否为最后一个周期

DYBLOCK 地域板块

GNBLOCK 概念板块

HYBLOCK 行业板块

字符串相加

STRCAT(A,B):将两个字符串A,B相加成一个字符串C.

例如:STRCAT('多头','开仓'):将两个字符串'多头','开仓'相加成一个字符串'多头开仓'

通达信的绘图参数:

空线条 NODRAW 不画该线

无效数 DRAWNULL 不画线

虚线 DOTLINE 画虚线

小圆点线 POINTDOT 画小圆点线

小圆圈线 CIRCLEDOT 画小圆圈线

小叉线 CROSSDOT 画小叉线

柱状线 STICK 画柱状线

成交量柱状线 VOLSTICK ,画成交量柱状线当股价上涨时显示红色空心柱,则显示绿色实心柱

彩色柱状线 COLORSTICK 画彩色柱状线

指标柱状线 LINESTICK 同时画出柱状线和指标线

线型粗细 LINETHICK

格式“LINETHICK+(1-9)”;

参数的取值范围在1—9之间,“LINETHICK1”表示最细的线,而“LINETHICK9”表示最粗的线;

老鼠仓

MA5:MA(C,5);

MA6:=MA(C,6);

MA10:MA(C,10);

MA20:MA(C,20);A2:=REF(MA20,1);J1:=(MA20-A2)/A2*100;MJ1:=MA(J1,3);

MA30:MA(C,30);

MA60:MA(C,60);

MA120:MA(C,120);

乖离2:=(MA20-MA30)/MA30*100;

VAR1:=IF(BETWEEN(乖离2,-2,5),2,0);

MAX1:=MAX(MA20,MA30);

MAX2:=MAX(MAX1,MA60);

MIN1:=MIN(MA20,MA30);

MIN2:=MIN(MIN1,MA60);

K1:=(MAX2/MIN2-1)*100;{粘合度符合条件}

VAR2:=IF(K1<=8,1,0);

上火车轨:=MA20>MA30 AND MA20>REF(MA20,1) AND MA30>REF(MA30,1) AND

MA20-MA30>REF((MA20-MA30),1) ;

STICKLINE(上火车轨,MA20,MA30,0,0),COLORRED;

神枪手:=DRAWTEXT(FILTER(上火车轨 AND ""<0.15 AND

"">REF("",1) AND MA(V,60)>REF(MA(V,60),1) AND MA(V,5)>MA(V,10) AND

J1>REF(J1,1) AND

( L<=MA20 AND C>MA20 OR (CROSS(MA5,MA20)) ),5),L*0.98,'←神枪手');

神枪手选股:=FILTER(上火车轨 AND ""<0.15 AND "">REF("",1)

AND MA(V,60)>REF(MA(V,60),1) AND MA(V,5)>MA(V,10) AND J1>REF(J1,1) AND

( L<=MA20 AND C>MA20 OR (CROSS(MA5,MA20)) ),5);{44.40240}

短线暴涨:DRAWTEXT(FILTER( (VAR1 OR VAR2) AND MA10>REF(MA10,1) AND

COUNT(MA30>REF(MA30,1),3)=3 AND MA30>MA60 AND COUNT(CROSS(MA5,MA30),3) AND

J1>MJ1 AND MA(V,5)>MA(V,60)

AND MA(V,60)>REF(MA(V,60),1),5),MA60*0.99,'短线暴涨'),COLORRED;

DRAWTEXT(CROSS("KDJ.K"(5,2,3),"KDJ.D"(5,2,3)) AND "KDJ.D"(5,2,3)<30 AND J1>MJ1 AND

MA60>REF(MA60,1) AND COUNT(J1<1,3)>=1 ,L*0.995,'←买入'),COLORYELLOW;

DRAWTEXT(CROSS("KDJ.D"(5,2,3),"KDJ.K"(5,2,3)) AND "KDJ.D"(5,2,3)>65 AND J1

COUNT(J1>1,3)>=1,H*1.005,'←卖出'),COLORGREEN;

DRAWTEXT(CROSS("KDJ.D"(18,9,6),"KDJ.K"(18,9,6)) AND "KDJ.D"(18,9,6)>60 AND

"KDJ.J"(45,15,15)>90,H*1.03,'←顶'),COLORRED;

DRAWTEXT(CROSS(MA5,MA6) AND "KDJ.K"(5,3,3)>=50 AND "KDJ.J"(5,3,3)<31 ,L*0.92,'←再买'),COLORMAGENTA;

XL1:=((LLV(LOW,3) = LLV(LOW,60)) AND ((CLOSE / REF(CLOSE,1)) >= 1.04));

XL2:=(((CLOSE - EMA(CLOSE,21)) / EMA(CLOSE,21)) * 100);

XL3:=CROSS(XL2,(0 - 20));

DRAWTEXT(FILTER(((XL1 > 0) AND LOW),5),(LOW - 0.4),'●买点');

DRAWTEXT((XL3 > 0),(LOW - 0.2),'●绝对底部');

X6:=REF(CLOSE,1);

X7:=((SMA(MAX((CLOSE - X6),0),7,1) / SMA(ABS((CLOSE - X6)),7,1)) * 100);

X8:=CROSS(79,X7);

X9:=FILTER(X8,4);

DRAWTEXT(X9,(HIGH * 1.02),'●出货'),COLOR9000F5;

STICKLINE(C>1.098*REF(C,1),C,O,0,0),COLORYELLOW;

AAA:=CONST(HHV(H,90));

R1:=MA(CLOSE,1);

R2:=MA(CLOSE,3);

R3:=(MA(R2,1)*1);

R4:=(MA(R2,3)*1);

DRAWTEXT(CROSS(R3,R4),(LOW-0.1),'进'),COLORYELLOW;

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);

DRAWTEXT(CROSS(88,RSI),(HIGH * 1.02),'出'),COLORGREEN;

VARE:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;

VAR12:=(HIGH+LOW+CLOSE)/3;

VAR13:=(VAR12-MA(VAR12,14))/(0.015*AVEDEV(VAR12,14));

VAR14:=(VAR12-MA(VAR12,70))/(0.015*AVEDEV(VAR12,70));

VAR15:=IF(VAR13>=150 AND VAR13<200 AND VAR14>=150 AND VAR14<200,10,0);

VAR16:=IF(VAR13<=-150 AND VAR13>-200 AND VAR14<=-150 AND VAR14>-200,-10,VAR15);

VAR17:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;

VAR18:=100-ABS(VAR17);

VAR19:=IF(VAR18<90,VAR18,100);

VAR1A:=IF(VARE>0,VARE,0);

VAR1B:=IF(VAR14>=200 AND VAR13>=150,15,IF(VAR14<=-200

VAR13<=-150,-15,VAR16))+60;

VAR1C:=VAR1A>48 AND VAR1B>60 AND VAR19<100;

DRAWTEXT(VAR1C AND COUNT(VAR1C,30)=1,HIGH*1.02,'大笔出'),LINETHICK1,COLORFFCC66;

AA1:=AMOUNT/V;

BB1:=L

CC1:=(C-REF(C,1))/REF(C,1)*100>1.2;

DD1:=L

EE1:=V

老鼠仓:=BB1 AND CC1 AND DD1 AND EE1,LINETHICK0;

DRAWTEXT(老鼠仓,(LOW* 0.99),'老鼠仓'),COLOR40CCFF;

AND

斐波那契数列指标公式源码:

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

DEA:EMA(DIF,9);

MACD:(DIF-DEA)*2 COLORSTICK;

TJ:=MACD>0;T:=MACD<0;

A:=LLV(MACD,50)=MACD;

DRAWICON(A AND FILTERX(A,20), MACD,1);

DRAWTEXT(BARSLAST(TJ)=1,MACD,'1'),COLORYELLOW;

DRAWTEXT(BARSLAST(TJ)=2,MACD,'2'),COLORYELLOW;

DRAWTEXT(BARSLAST(TJ)=3,MACD,'3'),COLORYELLOW;

DRAWTEXT(BARSLAST(TJ)=5,MACD,'5'),COLORYELLOW;

DRAWTEXT(BARSLAST(TJ)=8,MACD,'8'),COLORYELLOW;

DRAWTEXT(BARSLAST(TJ)=13,MACD,'13'),COLORYELLOW;

DRAWTEXT(BARSLAST(TJ)=21,MACD,'21'),COLORYELLOW;

DRAWTEXT(BARSLAST(TJ)=34,MACD,'34'),COLORYELLOW;

DRAWTEXT(BARSLAST(TJ)=55,MACD,'55'),COLORYELLOW;

DRAWTEXT(BARSLAST(T)=1,MACD,'1'),COLORGREEN;

DRAWTEXT(BARSLAST(T)=2,MACD,'2'),COLORGREEN;

DRAWTEXT(BARSLAST(T)=3,MACD,'3'),COLORGREEN;

DRAWTEXT(BARSLAST(T)=5,MACD,'5'),COLORGREEN;

DRAWTEXT(BARSLAST(T)=8,MACD,'8'),COLORGREEN;

DRAWTEXT(BARSLAST(T)=13,MACD,'13'),COLORGREEN;

DRAWTEXT(BARSLAST(T)=21,MACD,'21'),COLORGREEN;

DRAWTEXT(BARSLAST(T)=34,MACD,'34'),COLORGREEN;

DRAWTEXT(BARSLAST(T)=55,MACD,'55'),COLORGREEN;

斐波那契数列主图公式源码

ZT:=C/REF(C,1)>1.097;

XH:=FILTER(ZT,13);

BH:=BARSLAST(ZT);

CZ:=REF(H,BH)-REF(L,BH);

STICKLINE(C,(REF(L,BH)+CZ*0.5),(REF(L,BH)+CZ*0.5),7,0),COLORRED;

STICKLINE(C,REF(L,BH),REF(L,BH),7,0),COLORBLUE;

STICKLINE(ZT,REF(O,BH),REF(C,BH),7,0),COLORYELLOW;

DRAWTEXT(ZT,L*0.98,'涨停'),COLORF00FF0;

VARZT:=BARSLAST(C/REF(C,1)>1.097);

STICKLINE(VARZT=2,L*0.97,L*0.98,8,0),COLOR0000FF;

DRAWTEXT(VARZT=2,L*0.95,'3天'),COLORYELLOW;

STICKLINE(VARZT=4,H*1.03,H*1.02,8,0),COLOR9966FF;

DRAWTEXT(VARZT=4,H*1.06,'5天'),COLORYELLOW;

STICKLINE(VARZT=7,L*0.97,L*0.98,8,0),COLOR00FFFF;

DRAWTEXT(VARZT=7,L*0.95,'8天'),COLORYELLOW;

STICKLINE(VARZT=12,H*1.03,H*1.02,8,0),COLORFF33FF;

DRAWTEXT(VARZT=12,H*1.06,'13天'),COLORYELLOW;

STICKLINE(VARZT=20,L*0.97,L*0.98,8,0),COLOR0066FF;

DRAWTEXT(VARZT=20,L*0.95,'21天'),COLORYELLOW;

STICKLINE(VARZT=33,H*1.03,H*1.02,8,0),COLOR9932CD;

DRAWTEXT(VARZT=33,H*1.06,'34天'),COLORYELLOW;

STICKLINE(VARZT=54,L*0.97,L*0.98,8,0),COLOR006600;

DRAWTEXT(VARZT=54,L*0.95,'55天'),COLORYELLOW;

STICKLINE(VARZT=88,H*1.03,H*1.02,8,0),COLOR00FF00;

DRAWTEXT(VARZT=88,H*1.06,'89天'),COLORYELLOW;

STICKLINE(VARZT=143,L*0.97,L*0.98,8,0),COLORCCFFFF;

DRAWTEXT(VARZT=143,L*0.95,'144天'),COLORYELLOW;

STICKLINE(VARZT=232 ,H*1.03,H*1.02,8,0),COLORFF0033;

DRAWTEXT(VARZT=232,H*1.06,'233天'),COLORYELLOW;

STICKLINE(VARZT=376,L*0.97,L*0.98,8,0),COLORFF9966;

DRAWTEXT(VARZT=376,L*0.95,'377天'),COLORYELLOW;

斐波那契均线源码:

M5:EMA(CLOSE,5),COLORWHITE;{白色}

M8:EMA(CLOSE,8),COLORGRAY;{深灰色}

M13:EMA(CLOSE,13),COLORYELLOW,LINETHICK2;{黄色}

M21:EMA(CLOSE,21),COLORMAGENTA;{洋红色}

M34:EMA(CLOSE,34),COLORGREEN ;{绿色}

M55:EMA(CLOSE,55),COLORRED,POINTDOT,LINETHICK4;{生命线,红色}

M89:EMA(CLOSE,89),COLORCYAN;{青色}

M144:EMA(CLOSE,144),COLORBROWN;{棕色}

M233:EMA(CLOSE, 233),COLORBLUE,LINETHICK3;{蓝色}

顶部:M34+2*STD(CLOSE,55),COLORYELLOW,POINTDOT,LINETHICK2;

底部:M34-2*STD(CLOSE,55),COLORYELLOW,POINTDOT,LINETHICK2;

DRAWICON(CROSS(ZIG(3,10),REF(ZIG(3,10),1)),LOW*0.98,1);

DRAWICON(CROSS(REF(ZIG(3,10),1),ZIG(3,10)),HIGH*1.02,2);

DRAWTEXT(REF(C,2)/REF(O,2)<0.95 AND (REF(C,2)

AND

REF(C,1)>REF(C,2) AND REF(C,1)>(REF(C,2)+REF(O,2))/2 AND (C>REF(C,1)) AND

(LLV(LOW,13)=REF(LOW,1)),LOW*0.98,'↖曙光'), COLORYELLOW;

DRAWTEXT(REF(CLOSE,2)/REF(OPEN,2)<0.95 AND (REF(OPEN,1)

(ABS(REF(OPEN,1)-REF(CLOSE,1))/REF(CLOSE,1)<0.03) AND

(CLOSE/OPEN>1.05) AND (CLOSE>REF(CLOSE,2)),LOW*0.98,'↖早晨'),COLORYELLOW;

DRAWICON(REF(CLOSE,2)/REF(OPEN,2)<0.95 AND (REF(OPEN,1) < REF(CLOSE,2)) AND

(ABS(REF(OPEN,1)-REF(CLOSE,1))/REF(CLOSE,1)<0.03) AND (CLOSE/OPEN>1.05) AND

(CLOSE>REF(CLOSE,2)),C*1.02,9);

斐波那契数列公式

var31:=HHVBARS(zig(3, 19)>ref(zig(3,19),1)

and ref(zig(3,19), 1)

STICKLINE(var31=2,LOW*0.95,LOW*0.98,2,1),color0000ff;

DRAWTEXT(var31=2,LOW*0.95,'3天'),COLORWHITE;

STICKLINE(var31=4,HIGH*1.05,HIGH*1.02,2,1),color9966ff;

DRAWTEXT(var31=4,HIGH*1.06,'5天'),COLORWHITE;

STICKLINE(var31=7,LOW*0.95,LOW*0.98,2,1),color00ffff;

DRAWTEXT(var31=7,LOW*0.95,'8天'),COLORWHITE;

STICKLINE(var31=12,HIGH*1.05,HIGH*1.02,2,1),colorff33ff;

DRAWTEXT(var31=12,HIGH*1.06,'13天'),COLORWHITE;

STICKLINE(var31=20,LOW*0.95,LOW*0.98,2,1),color0066ff;

DRAWTEXT(var31=20,LOW*0.95,'21天'),COLORWHITE;

STICKLINE(var31=33,HIGH*1.05,HIGH*1.02,2,1),colorffff00;

DRAWTEXT(var31=33,HIGH*1.06,'34天'),COLORWHITE;

STICKLINE(var31=54,LOW*0.95,LOW*0.98,2,1),COLORWHITE;

DRAWTEXT(var31=54,LOW*0.95,'55天'),COLORWHITE;

STICKLINE(var31=88,HIGH*1.05,HIGH*1.02,2,1),color00ff00;

DRAWTEXT(var31=88,HIGH*1.06,'89天'),COLORWHITE;

STICKLINE(var31=143,LOW*0.95,LOW*0.98,2,1),colorccffff;

DRAWTEXT(var31=143,LOW*0.95,'144天'),COLORWHITE;

STICKLINE(var31=232 ,HIGH*1.05,HIGH*1.02,2,1),colorff0033;

DRAWTEXT(var31=232,HIGH*1.06,'233天'),COLORWHITE;

STICKLINE(var31=376,LOW*0.95,LOW*0.98,2,1),colorff9966;

DRAWTEXT(var31=376,LOW*0.95,'377天'),COLORWHITE;

斐波那契周期组合公式源码

{DRAWGBK(C>0,RGB(220,220,220 ),RGB(220,220,220),10,'12',0);}

{HDAY 2 9999 20

LDAY 2 9999 20

上角度 1 9999 70

下角度 1 9999 70

调点 1 4 3 }

CURR:=CURRBARSCOUNT;

TCH:=CONST(FINDHIGH(H,0,HDAY*10,1));

GTT:=CONST(BARSLAST(TCH=H))+1;

SX跌H:=CONST(IF(GTT=1,H,REF(H,GTT-1)));

BCL:=CONST(FINDLOW(L,0,LDAY*10,1));

DTT:=CONST(BARSLAST(BCL=L))+1;

SX涨L:=CONST(IF(DTT=1,L,REF(L,DTT-1)));

涨点:=BARSSINCE(BACKSET(ISLASTBAR,BARSLAST(L=SX涨L)+1));

跌点:=BARSSINCE(BACKSET(ISLASTBAR,BARSLAST(H=SX跌H)+1));

最低:=IF(调点=1,跌点,IF(调点=2,涨点,IF(调点=3,涨点,跌点)));

L斜率:=下角度/IF(C<300,1000,10);

最高:=IF(调点=1,跌点,IF(调点=2,涨点,IF(调点=3,跌点,涨点)));

H斜率:=上角度/IF(C<300,1000,10);

IM68:=((SX跌H-SX涨L)/8-(SX跌H-SX涨L)/8);

GH跌X:=SX跌H+(SX跌H-SX涨L)/8;

DL涨X:=SX涨L-(SX跌H-SX涨L)/8;

GTHT:=IF(DTT>GTT,DTT,GTT);

R:=ABS(GTT-DTT);

DHH:DRAWBAND(IF(CURR<=GTHT,SX跌H,DRAWNULL),RGB(0,120,120),SX跌H,RGB(8,168,168));

DLL:DRAWBAND(IF(CURR<=GTHT,SX涨L,DRAWNULL),RGB(0,120,120),SX涨L,RGB(0,160,160));

STICKLINE(CURRBARSCOUNT=GTT,SX跌H,SX涨L,0,0),COLOR556600;

STICKLINE(CURRBARSCOUNT=DTT,SX跌H,SX涨L,0,0),COLOR666666;

STICKLINE(CURRBARSCOUNT=1,SX跌H,SX涨L,0,0),COLOR556600;

天线:=SX跌H;

地线:=SX涨L;

K:=(天线-地线)/(IF(跌点>=涨点,跌点,涨点)-IF(跌点>=涨点,涨点,跌点));

上斜线:=IF(地线+CONST(L斜率*4.00)*最低>=地线,地线+CONST(L斜率*4.00)*最低,DRAWNULL);

上斜线0:=IF(地线+CONST(L斜率*2.00)*最低>=地线,地线+CONST(L斜率*2.00)*最低,DRAWNULL);

上斜线1:=IF(地线+CONST(L斜率*1.5)*最低>=地线,地线+CONST(L斜率*1.5)*最低,DRAWNULL);

上斜线2:=IF(地线+CONST(L斜率*1.00)*最低>=地线,地线+CONST(L斜率*1.000)*最低,DRAWNULL);

上斜线3:=IF(地线+CONST(L斜率*0.70)*最低>=地线,地线+CONST(L斜率*0.70)*最低,DRAWNULL);

上斜线4:=IF(地线+CONST(L斜率*0.50)*最低>=地线,地线+CONST(L斜率*0.50)*最低,DRAWNULL);

上斜线5:=IF(地线+CONST(L斜率*0.365)*最低>=地线,地线+CONST(L斜率*0.365)*最低,DRAWNULL);

上斜线6:=IF(地线+CONST(L斜率*0.250)*最低>=地线,地线+CONST(L斜率*0.250)*最低,DRAWNULL);

上斜线7:=IF(地线+CONST(L斜率*0.165)*最低>=地线,地线+CONST(L斜率*0.165)*最低,DRAWNULL);

上斜线8:=IF(地线+CONST(L斜率*0.123)*最低>=地线,地线+CONST(L斜率*0.123)*最低,DRAWNULL);

上斜线9:=IF(地线+CONST(L斜率*0.06)*最低>=地线,地线+CONST(L斜率*0.06)*最低,DRAWNULL);

上9:IF(上斜线9<=天线*1.05,上斜线9,DRAWNULL),COLORAA00AA,DOTLINE;

上8:IF(上斜线8<=天线*1.05,上斜线8,DRAWNULL),COLORAA00AA,DOTLINE;

上7:IF(上斜线7<=天线*1.05,上斜线7,DRAWNULL),COLORAA00AA,DOTLINE;

上6:IF(上斜线6<=天线*1.05,上斜线6,DRAWNULL),COLORAA00AA,DOTLINE;

上5:IF(上斜线5<=天线*1.05,上斜线5,DRAWNULL),COLORAA00AA,DOTLINE;

上4:IF(上斜线4<=天线*1.05,上斜线4,DRAWNULL),COLOR0000FF,DOTLINE;

上3:IF(上斜线3<=天线*1.05,上斜线3,DRAWNULL),COLORAA00AA,DOTLINE;

上2:IF(上斜线2<=天线*1.05,上斜线2,DRAWNULL),COLORAA00AA,DOTLINE;

上1:IF(上斜线1<=天线*1.05,上斜线1,DRAWNULL),COLORAA00AA,DOTLINE;

上0:IF(上斜线0<=天线*1.05,上斜线0,DRAWNULL),COLORAA00AA,DOTLINE;

上:IF(上斜线<=天线*1.05,上斜线,DRAWNULL),COLORAA00AA,DOTLINE;

下斜线:=IF(天线-CONST(H斜率*4.00)*最高<=天线,天线-CONST(H斜率*4.00)*最高,DRAWNULL);

下斜线0:=IF(天线-CONST(H斜率*2.00)*最高<=天线,天线-CONST(H斜率*2.00)*最高,DRAWNULL);

下斜线1:=IF(天线-CONST(H斜率*1.500)*最高<=天线,天线-CONST(H斜率*1.500)*最高,DRAWNULL);

下斜线2:=IF(天线-CONST(H斜率*1.000)*最高<=天线,天线-CONST(H斜率*1.000)*最高,DRAWNULL);

下斜线3:=IF(天线-CONST(H斜率*0.70)*最高<=天线,天线-CONST(H斜率*0.70)*最高,DRAWNULL);

下斜线4:=IF(天线-CONST(H斜率*0.50)*最高<=天线,天线-CONST(H斜率*0.50)*最高,DRAWNULL);

下斜线5:=IF(天线-CONST(H斜率*0.365)*最高<=天线,天线-CONST(H斜率*0.365)*最高,DRAWNULL);

下斜线6:=IF(天线-CONST(H斜率*0.250)*最高<=天线,天线-CONST(H斜率*0.250)*最高,DRAWNULL);

下斜线7:=IF(天线-CONST(H斜率*0.165)*最高<=天线,天线-CONST(H斜率*0.165)*最高,DRAWNULL);

下斜线8:=IF(天线-CONST(H斜率*0.123)*最高<=天线,天线-CONST(H斜率*0.123)*最高,DRAWNULL);

下斜线9:=IF(天线-CONST(H斜率*0.06)*最高<=天线,天线-CONST(H斜率*0.06)*最高,DRAWNULL);

下9:IF(下斜线9>=地线*0.95,下斜线9,DRAWNULL),COLORAAAAAA,DOTLINE;

下8:IF(下斜线8>=地线*0.95,下斜线8,DRAWNULL),COLORAAAAAA,DOTLINE;

下7:IF(下斜线7>=地线*0.95,下斜线7,DRAWNULL),COLORAAAAAA,DOTLINE;

下6:IF(下斜线6>=地线*0.95,下斜线6,DRAWNULL),COLORAAAAAA,DOTLINE;

下5:IF(下斜线5>=地线*0.95,下斜线5,DRAWNULL),COLORAAAAAA,DOTLINE;

下4:IF(下斜线4>=地线*0.95,下斜线4,DRAWNULL),COLOR0000FF,DOTLINE;

下3:IF(下斜线3>=地线*0.95,下斜线3,DRAWNULL),COLORAAAAAA,DOTLINE;

下2:IF(下斜线2>=地线*0.95,下斜线2,DRAWNULL),COLORAAAAAA,DOTLINE;

下1:IF(下斜线1>=地线*0.95,下斜线1,DRAWNULL),COLORAAAAAA,DOTLINE;

下0:IF(下斜线0>=地线*0.95,下斜线0,DRAWNULL),COLORAAAAAA,DOTLINE;

下:IF(下斜线>=地线*0.95,下斜线,DRAWNULL),COLORAAAAAA,DOTLINE;

{黄金分割}

X146:IF(CURR<=GTHT,SX跌H-(SX跌H-SX涨L)*0.146,DRAWNULL),DOTLINE,COLOR556600;

DRAWTEXT(CURR=GTHT,(X146)*1.001,STRCAT(' 0.146%% ',CON2STR(X146,3))),COLOR889900;

X191:IF(CURR<=GTHT,SX跌H-(SX跌H-SX涨L)*0.191,DRAWNULL),DOTLINE,COLOR556600;

DRAWTEXT(CURR=GTHT,(X191)*1.001,STRCAT(' 0.191%% ',CON2STR(X191,3))),COLOR889900;

X236:IF(CURR<=GTHT,SX跌H-(SX跌H-SX涨L)*0.236,DRAWNULL),DOTLINE,COLOR556600;

DRAWTEXT(CURR=GTHT,(X236)*1.001,STRCAT(' 0.236%% ',CON2STR(X236,3))),COLOR889900;

X382:IF(CURR<=GTHT,SX跌H-(SX跌H-SX涨L)*0.382,DRAWNULL),DOTLINE,COLOR556600;

DRAWTEXT(CURR=GTHT,(X382)*1.001,STRCAT(' 0.382%% ',CON2STR(X382,3))),COLOR889900;

X500:IF(CURR<=GTHT,SX跌H-(SX跌H-SX涨L)*0.500,DRAWNULL),DOTLINE,COLOR556600;

DRAWTEXT(CURR=GTHT,(X500)*1.001,STRCAT(' 0.500%% ',CON2STR(X500,3))),COLOR889900;

X618:IF(CURR<=GTHT,SX跌H-(SX跌H-SX涨L)*0.618,DRAWNULL),DOTLINE,COLOR556600;

DRAWTEXT(CURR=GTHT,(X618)*1.001,STRCAT(' 0.618%% ',CON2STR(X618,3))),COLOR889900;

X764:IF(CURR<=GTHT,SX跌H-(SX跌H-SX涨L)*0.764,DRAWNULL),DOTLINE,COLOR556600;

DRAWTEXT(CURR=GTHT,(X764)*1.001,STRCAT(' 0.764%% ',CON2STR(X764,3))),COLOR889900;

X809:IF(CURR<=GTHT,SX跌H-(SX跌H-SX涨L)*0.809,DRAWNULL),DOTLINE,COLOR556600;

DRAWTEXT(CURR=GTHT,(X809)*1.001,STRCAT(' 0.809%% ',CON2STR(X809,3))),COLOR889900;

X854:IF(CURR<=GTHT,SX跌H-(SX跌H-SX涨L)*0.854,DRAWNULL),DOTLINE,COLOR556600;

DRAWTEXT(CURR=GTHT,(X854)*1.001,STRCAT(' 0.854%% ',CON2STR(X854,3))),COLOR889900;

{斐波那契周期}

DRAWTEXT(CURRBARSCOUNT=GTT,SX跌H*1.02,'斐波那契下跌周期'),COLOR00FF00;

DRAWTEXT(CURRBARSCOUNT=GTT,SX跌H*1.01,'1'),COLOR00FF00;

STICKLINE(CURRBARSCOUNT=GTT-2,SX跌H,SX涨L,0,0),COLOR556600;

DRAWTEXT(CURRBARSCOUNT=GTT-2,SX跌H*1.01,'3'),COLOR00FF00;

STICKLINE(CURRBARSCOUNT=GTT-4,SX跌H,SX涨L,0,0),COLOR556600;

DRAWTEXT(CURRBARSCOUNT=GTT-4,SX跌H*1.01,'5'),COLOR00FF00;

STICKLINE(CURRBARSCOUNT=GTT-7,SX跌H,SX涨L,0,0),COLOR556600;

DRAWTEXT(CURRBARSCOUNT=GTT-7,SX跌H*1.01,'8'),COLOR00FF00;

STICKLINE(CURRBARSCOUNT=GTT-12,SX跌H,SX涨L,0,0),COLOR556600;

DRAWTEXT(CURRBARSCOUNT=GTT-12,SX跌H*1.01,'13'),COLOR00FF00;

STICKLINE(CURRBARSCOUNT=GTT-20,SX跌H,SX涨L,0,0),COLOR556600;

DRAWTEXT(CURRBARSCOUNT=GTT-20,SX跌H*1.01,'21'),COLOR00FF00;

STICKLINE(CURRBARSCOUNT=GTT-33,SX跌H,SX涨L,0,0),COLOR556600;

DRAWTEXT(CURRBARSCOUNT=GTT-33,SX跌H*1.01,'34 '),COLOR00FF00;

STICKLINE(CURRBARSCOUNT=GTT-54,SX跌H,SX涨L,0,0),COLOR556600;

DRAWTEXT(CURRBARSCOUNT=GTT-54,SX跌H*1.01,'55'),COLOR00FF00;

STICKLINE(CURRBARSCOUNT=GTT-67,SX跌H,SX涨L,0,0),COLOR556600;

DRAWTEXT(CURRBARSCOUNT=GTT-67,SX跌H*1.01,'68'),COLOR00FF00;

STICKLINE(CURRBARSCOUNT=GTT-88,SX跌H,SX涨L,0,0),COLOR556600;

DRAWTEXT(CURRBARSCOUNT=GTT-88,SX跌H*1.01,'89'),COLOR00FF00;

STICKLINE(CURRBARSCOUNT=GTT-109,SX跌H,SX涨L,0,0),COLOR556600;

DRAWTEXT(CURRBARSCOUNT=GTT-109,SX跌H*1.01,'110'),COLOR00FF00;

STICKLINE(CURRBARSCOUNT=GTT-143,SX跌H,SX涨L,0,0),COLOR556600;

DRAWTEXT(CURRBARSCOUNT=GTT-143,SX跌H*1.01,'144'),COLOR00FF00;

DRAWTEXT(CURRBARSCOUNT=DTT,SX涨L*0.96,'斐波那契上升周期'),COLOR0000FF;

DRAWTEXT(CURRBARSCOUNT=DTT,SX涨L*0.98,'1'),COLOR0000FF;

STICKLINE(CURRBARSCOUNT=DTT-2,SX跌H,SX涨L,0,0),COLORAA00AA;

DRAWTEXT(CURRBARSCOUNT=DTT-2,SX涨L*0.98,'3'),COLOR0000FF;

STICKLINE(CURRBARSCOUNT=DTT-4,SX跌H,SX涨L,0,0),COLORAA00AA;

DRAWTEXT(CURRBARSCOUNT=DTT-4,SX涨L*0.98,'5'),COLOR0000FF;

STICKLINE(CURRBARSCOUNT=DTT-7,SX跌H,SX涨L,0,0),COLORAA00AA;

DRAWTEXT(CURRBARSCOUNT=DTT-7,SX涨L*0.98,'8'),COLOR0000FF;

STICKLINE(CURRBARSCOUNT=DTT-12,SX跌H,SX涨L,0,0),COLORAA00AA;

DRAWTEXT(CURRBARSCOUNT=DTT-12,SX涨L*0.98,'13'),COLOR0000FF;

STICKLINE(CURRBARSCOUNT=DTT-20,SX跌H,SX涨L,0,0),COLORAA00AA;

DRAWTEXT(CURRBARSCOUNT=DTT-20,SX涨L*0.98.01,'21'),COLOR0000FF;

STICKLINE(CURRBARSCOUNT=DTT-33,SX跌H,SX涨L,0,0),COLORAA00AA;

DRAWTEXT(CURRBARSCOUNT=DTT-33,SX涨L*0.98,'34'),COLOR0000FF;

STICKLINE(CURRBARSCOUNT=DTT-54,SX跌H,SX涨L,0,0),COLORAA00AA;

DRAWTEXT(CURRBARSCOUNT=DTT-54,SX涨L*0.98,'55'),COLOR0000FF;

STICKLINE(CURRBARSCOUNT=DTT-67,SX跌H,SX涨L,0,0),COLORAA00AA;

DRAWTEXT(CURRBARSCOUNT=DTT-67,SX涨L*0.98,'68'),COLOR0000FF;

STICKLINE(CURRBARSCOUNT=DTT-88,SX跌H,SX涨L,0,0),COLORAA00AA;

DRAWTEXT(CURRBARSCOUNT=DTT-88,SX涨L*0.98,'89'),COLOR0000FF;

STICKLINE(CURRBARSCOUNT=DTT-109,SX跌H,SX涨L,0,0),COLORAA00AA;

DRAWTEXT(CURRBARSCOUNT=DTT-109,SX涨L*0.98,'110'),COLOR0000FF;

STICKLINE(CURRBARSCOUNT=DTT-143,SX跌H,SX涨L,0,0),COLORAA00AA;

DRAWTEXT(CURRBARSCOUNT=DTT-143,SX涨L*0.98,'144'),COLOR0000FF;

斐波那契均线源码:

M5:EMA(CLOSE,5),COLORWHITE;{白色}

M8:EMA(CLOSE,8),COLORGRAY;{深灰色}

M13:EMA(CLOSE,13),COLORYELLOW,LINETHICK2;{黄色}

M21:EMA(CLOSE,21),COLORMAGENTA;{洋红色}

M34:EMA(CLOSE,34),COLORGREEN ;{绿色}

M55:EMA(CLOSE,55),COLORRED,POINTDOT,LINETHICK4;{生命线,红色}

M89:EMA(CLOSE,89),COLORCYAN;{青色}

M144:EMA(CLOSE,144),COLORBROWN;{棕色}

M233:EMA(CLOSE, 233),COLORBLUE,LINETHICK3;{蓝色}

顶部:M34+2*STD(CLOSE,55),COLORYELLOW,POINTDOT,LINETHICK2;

底部:M34-2*STD(CLOSE,55),COLORYELLOW,POINTDOT,LINETHICK2;

DRAWICON(CROSS(ZIG(3,10),REF(ZIG(3,10),1)),LOW*0.98,1);

DRAWICON(CROSS(REF(ZIG(3,10),1),ZIG(3,10)),HIGH*1.02,2);

DRAWTEXT(REF(C,2)/REF(O,2)<0.95 AND (REF(C,2)

REF(C,1)>REF(C,2) AND REF(C,1)>(REF(C,2)+REF(O,2))/2 AND (C>REF(C,1)) AND

(LLV(LOW,13)=REF(LOW,1)),LOW*0.98,'↖曙光'), COLORYELLOW;

DRAWTEXT(REF(CLOSE,2)/REF(OPEN,2)<0.95 AND (REF(OPEN,1)

(ABS(REF(OPEN,1)-REF(CLOSE,1))/REF(CLOSE,1)<0.03) AND

(CLOSE/OPEN>1.05) AND (CLOSE>REF(CLOSE,2)),LOW*0.98,'↖早晨'),COLORYELLOW;

DRAWICON(REF(CLOSE,2)/REF(OPEN,2)<0.95 AND (REF(OPEN,1) < REF(CLOSE,2)) AND

(ABS(REF(OPEN,1)-REF(CLOSE,1))/REF(CLOSE,1)<0.03) AND (CLOSE/OPEN>1.05) AND

(CLOSE>REF(CLOSE,2)),C*1.02,9);

最强黄金分割尺+ 斐波那契周期

{高点 1 9999 50

低点 1 9999 30 }

GD:=CONST(FINDHIGH(H,0,高点*10,1));

DD:=CONST(FINDLOW(L,0,低点*10,1));

GT:=CONST(BARSLAST(GD=H))+1;

DT:=CONST(BARSLAST(DD=L))+1;

SH:=CONST(IF(GT=1,H,REF(H,GT-1)));

SL:=CONST(IF(DT=1,L,REF(L,DT-1)));

CC:=IF(DT>GT,DT,GT);

CD:=INTPART(CC-(DT+GT)/2);

CG:=IF(高点>CD,CD/2,高点);

下跌周期:BARSLAST(GD=H),COLORWHITE,NODRAW;

下跌幅:IF(CURRBARSCOUNT<=GT,C/SH*100-100,DRAWNULL),NODRAW,COLORGREEN;

下LORLIGRAY;

跌换手%:IF(CURRBARSCOUNT<=GT,SUM(,GT),DRAWNULL),COLORCYAN,NODRAW;

上涨周期:IF(CURRBARSCOUNT<=DT,BARSLAST(DD=L),DRAWNULL),COLORWHITE,NODRAW;

上涨幅:IF(CURRBARSCOUNT<=DT,C/SL*100-100,DRAWNULL),NODRAW,COLORRED;

上LORLIGRAY;

涨W;

星期:=VARCAT(VARCAT('(',IF(WEEKDAY=1,'一',IF(WEEKDAY=2,'二',IF(WEEKDAY=3,'三',IF(WEEKDAY=4,'四',IF(WEEKDAY=5,'五','')))))),')');

日期:=VARCAT('-',VARCAT(VARCAT(VARCAT(VARCAT(VARCAT(VARCAT(VAR2STR(YEAR,0),'年'),VAR2STR(MONTH,0)),'月'),VAR2STR(DAY,0)),'日'),星期));

{自动黄金分割 普通等系坐标}

DRAWRECTREL(990,1,382,1,RGB(250,250,0));

DRAWTEXT_FIX(C>0,0.382,0.00,0,'100%'),COLOR00CCCC;

DRAWRECTREL(990,188,382,188,RGB(200,200,0));

DRAWTEXT_FIX(C>0,0.382,0.189,0,'19.1%'),COLOR00CCCC;

DRAWRECTREL(990,375,382,375,RGB(200,200,0));

DRAWTEXT_FIX(C>0,0.382,0.376,0,'38.2%'),COLOR00CCCC;

换手%:IF(CURRBARSCOUNT<=DT,SUM(,DT),DRAWNULL),COLORLIMAGENTA,NODRA涨均价:IF(CURRBARSCOUNT<=DT,SUM(AMOUNT,DT)/SUM(V,DT)/100,DRAWNULL),NODRAW,CO跌均价:IF(CURRBARSCOUNT<=GT,SUM(AMOUNT,GT)/SUM(V,GT)/100,DRAWNULL),NODRAW,CO

DRAWRECTREL(990,491,382,491,RGB(200,200,0));

DRAWTEXT_FIX(C>0,0.382,0.492,0,'50.0%'),COLOR00CCCC;

DRAWRECTREL(990,607,382,607,RGB(200,200,0));

DRAWTEXT_FIX(C>0,0.382,0.608,0,'61.8%'),COLOR00CCCC;

DRAWRECTREL(990,794,382,794,RGB(200,200,0));

DRAWTEXT_FIX(C>0,0.382,0.795,0,'80.9%'),COLOR00CCCC;

DRAWRECTREL(990,982,382,982,RGB(250,250,0));

DRAWTEXT_FIX(C>0,0.382,0.936,0,'BASE'),COLOR00CCCC;

DRAWRECTREL(990,232,382,232,RGB(100,100,0));

DRAWRECTREL(990,144.6,382,144.6,RGB(100,100,0));

DRAWRECTREL(990,750,382,750,RGB(100,100,0));

DRAWRECTREL(990,839,382,839,RGB(100,100,0));

DRAWTEXT_FIX(C>0,0.01,0.01,0,'云枫添外 2016/10/10 绘'),COLORYELLOW;

{斐波那契周期}

DRAWTEXT(CURRBARSCOUNT=GT-2 ,L,'3'),COLOR00FF00;

DRAWTEXT(CURRBARSCOUNT=GT-4 ,L,'5'),COLOR00FF00;

DRAWTEXT(CURRBARSCOUNT=GT-7 ,L,'8'),COLOR00FF00;

DRAWTEXT(CURRBARSCOUNT=GT-12 ,L,'13'),COLOR00FF00;

DRAWTEXT(CURRBARSCOUNT=GT-20 ,L,'21'),COLOR00FF00;

DRAWTEXT(CURRBARSCOUNT=GT-33 ,L,'34 '),COLOR00FF00;

DRAWTEXT(CURRBARSCOUNT=GT-54 ,L,'55'),COLOR00FF00;

DRAWTEXT(CURRBARSCOUNT=GT-88 ,L,'89'),COLOR00FF00;

DRAWTEXT(CURRBARSCOUNT=GT-143 ,L,'144'),COLOR00FF00;

DRAWTEXT(CURRBARSCOUNT=GT-232 ,L,'233'),COLOR00FF00;

DRAWTEXT(CURRBARSCOUNT=GT-376 ,L,'377'),COLOR00FF00;

DRAWTEXT(CURRBARSCOUNT=DT-2,H,'3'),DRAWABOVE,COLORRED;

DRAWTEXT(CURRBARSCOUNT=DT-4,H,'5'),DRAWABOVE,COLORRED;

DRAWTEXT(CURRBARSCOUNT=DT-7,H,'8'),DRAWABOVE,COLORRED;

DRAWTEXT(CURRBARSCOUNT=DT-12,H,'13'),DRAWABOVE,COLORRED;

DRAWTEXT(CURRBARSCOUNT=DT-20,H,'21'),DRAWABOVE,COLORRED;

DRAWTEXT(CURRBARSCOUNT=DT-33,H,'34'),DRAWABOVE,COLORRED;

DRAWTEXT(CURRBARSCOUNT=DT-54,H,'55'),DRAWABOVE,COLORRED;

DRAWTEXT(CURRBARSCOUNT=DT-88,H,'89'),DRAWABOVE,COLORRED;

DRAWTEXT(CURRBARSCOUNT=DT-143,H,'144'),DRAWABOVE,COLORRED;

DRAWTEXT(CURRBARSCOUNT=DT-232,H,'233'),DRAWABOVE,COLORRED;

DRAWTEXT(CURRBARSCOUNT=DT-376,H,'377'),DRAWABOVE,COLORRED;

{幅度尺}

STICKLINE(CURRBARSCOUNT=DT,SL*20,SL,0,-1),COLORRED;

STICKLINE(CURRBARSCOUNT=GT,SH,SH-SH*0.9,0,-1),COLORGREEN;

DRAWTEXT(CURRBARSCOUNT=DT ,(SL+SL*1.2)/2,日期),COLORYELLOW;

DRAWTEXT(CURRBARSCOUNT=GT ,GD*0.97,日期),COLORYELLOW;

{下跌尺}

DRAWTEXT(CURRBARSCOUNT=GT,SH-SH*0.14.6,STRCAT('-14.6%

',CON2STR(SH-SH*0.146,2))),COLORRED;

DRAWTEXT(CURRBARSCOUNT=GT,SH-SH*0.191,STRCAT('-19.1%

',CON2STR(SH-SH*0.191,2))),COLORRED;

DRAWTEXT(CURRBARSCOUNT=GT,SH-SH*0.236,STRCAT('-23.6%

',CON2STR(SH-SH*0.236,2))),COLORRED;

DRAWTEXT(CURRBARSCOUNT=GT,SH-SH*0.382,STRCAT('-38.2%

',CON2STR(SH-SH*0.382,2))),COLORYELLOW;

DRAWTEXT(CURRBARSCOUNT=GT,SH-SH*0.5,STRCAT('-50.0%

',CON2STR(SH-SH*0.5,2))),COLORLIMAGENTA;

DRAWTEXT(CURRBARSCOUNT=GT,SH-SH*0.618,STRCAT('-61.8%

',CON2STR(SH-SH*0.618,2))),COLORYELLOW;

DRAWTEXT(CURRBARSCOUNT=GT,SH-SH*0.764,STRCAT('-76.4%

',CON2STR(SH-SH*0.764,2))),COLORGREEN;

DRAWTEXT(CURRBARSCOUNT=GT,SH-SH*0.809,STRCAT('-80.9%

',CON2STR(SH-SH*0.809,2))),COLORGREEN;

DRAWTEXT(CURRBARSCOUNT=GT,SH-SH*0.854,STRCAT('-85.4%

',CON2STR(SH-SH*0.854,2))),COLORGREEN;

{上升尺}

DRAWTEXT(CURRBARSCOUNT=DT,SL*1.191,STRCAT('-19.1% ',CON2STR(SL*1.191,2))),COLORWHITE;

DRAWTEXT(CURRBARSCOUNT=DT,SL*1.382,STRCAT('-38.2% ',CON2STR(SL*1.382,2))),COLORWHITE;

DRAWTEXT(CURRBARSCOUNT=DT,SL*1.5,STRCAT('-50.0% ',CON2STR(SL*1.5,2))),COLORWHITE;

DRAWTEXT(CURRBARSCOUNT=DT,SL*1.618,STRCAT('-61.8% ',CON2STR(SL*1.618,2))),COLORWHITE;

DRAWTEXT(CURRBARSCOUNT=DT,SL*1.809,STRCAT('-80.9% ',CON2STR(SL*1.809,2))),COLORWHITE;

DRAWTEXT(CURRBARSCOUNT=DT,SL*2,STRCAT('-100% ',CON2STR(SL*2,2))),COLORWHITE;

DRAWTEXT(CURRBARSCOUNT=DT,SL*2*1.191,STRCAT('-138.2% ',CON2STR(SL*2*1.191,2))),COLORRED;

DRAWTEXT(CURRBARSCOUNT=DT,SL*2*1.382,STRCAT('-176.4% ',CON2STR(SL*2*1.382,2))),COLORRED;

DRAWTEXT(CURRBARSCOUNT=DT,SL*2*1.5,STRCAT('-200.0% ',CON2STR(SL*2*1.5,2))),COLORRED;

DRAWTEXT(CURRBARSCOUNT=DT,SL*2*1.618,STRCAT('-223.6% ',CON2STR(SL*2*1.618,2))),COLORRED;

DRAWTEXT(CURRBARSCOUNT=DT,SL*2*1.809,STRCAT('-261.8% ',CON2STR(SL*2*1.809,2))),COLORRED;

DRAWTEXT(CURRBARSCOUNT=DT,SL*2*2,STRCAT('-300.0% ',CON2STR(SL*2*2,2))),COLORRED;

DRAWTEXT(CURRBARSCOUNT=DT,SL*2*2.191,STRCAT('-338.2% ',CON2STR(SL*2*2.191,2))),COLORYELLOW;

DRAWTEXT(CURRBARSCOUNT=DT,SL*2*2.382,STRCAT('-376.4% ',CON2STR(SL*2*2.382,2))),COLORYELLOW;

DRAWTEXT(CURRBARSCOUNT=DT,SL*2*2.5,STRCAT('-400.0% ',CON2STR(SL*2*2.5,2))),COLORYELLOW;

DRAWTEXT(CURRBARSCOUNT=DT,SL*2*2.618,STRCAT('-423.6% ',CON2STR(SL*2*2.618,2))),COLORYELLOW;

DRAWTEXT(CURRBARSCOUNT=DT,SL*2*2.809,STRCAT('-461.8% ',CON2STR(SL*22.809,2))),COLORYELLOW;

DRAWTEXT(CURRBARSCOUNT=DT,SL*2*3,STRCAT('-500.0% ',CON2STR(SL*2*3,2))),COLORYELLOW;

DRAWTEXT(CURRBARSCOUNT=DT,SL*2*3.191,STRCAT('-538.2% ',CON2STR(SL*2*3.191,2))),COLORLIMAGENTA;

DRAWTEXT(CURRBARSCOUNT=DT,SL*2*3.382,STRCAT('-576.4% ',CON2STR(SL*2*3.382

,2))),COLORLIMAGENTA;

DRAWTEXT(CURRBARSCOUNT=DT,SL*2*3.5,STRCAT('-600.0% ',CON2STR(SL*2*3.5,2))),COLORLIMAGENTA;

DRAWTEXT(CURRBARSCOUNT=DT,SL*2*3.618,STRCAT('-623.6% ',CON2STR(SL*2*3.618,2))),COLORLIMAGENTA;

DRAWTEXT(CURRBARSCOUNT=DT,SL*2*3.809,STRCAT('-661.8% ',CON2STR(SL*2*3.809,2))),COLORLIMAGENTA;

DRAWTEXT(CURRBARSCOUNT=DT,SL*2*4,STRCAT('-700.0% ',CON2STR(SL*2*4,2))),COLORLIMAGENTA;

DRAWTEXT(CURRBARSCOUNT=DT,SL*2*4.191,STRCAT('-738.2% ',CON2STR(SL*2*4.191,2))),COLORGREEN;

DRAWTEXT(CURRBARSCOUNT=DT,SL*2*4.382,STRCAT('-776.4% ',CON2STR(SL*2*4.382,2))),COLORGREEN;

DRAWTEXT(CURRBARSCOUNT=DT,SL*2*4.5,STRCAT('-800.0% ',CON2STR(SL*2*4.5,2))),COLORGREEN;

DRAWTEXT(CURRBARSCOUNT=DT,SL*2*4.618,STRCAT('-823.6% ',CON2STR(SL*2*4.618,2))),COLORGREEN;

DRAWTEXT(CURRBARSCOUNT=DT,SL*2*4.809,STRCAT('-861.8% ',CON2STR(SL*2*4.809,2))),COLORGREEN;

DRAWTEXT(CURRBARSCOUNT=DT,SL*2*5,STRCAT('-900.0% ',CON2STR(SL*2*5,2))),COLORGREEN

斐波那契数浪均线周期立桩量主图

公式包含了一下内容:

1、斐波那契自动画线系统,用来看时间周期;

2、数浪画线系统,用来看波浪周期;

3、均线周期系统,可以在分时线到年线自动调节均线的状态;

默认分时线、1分钟线、日线、月线的均线排列是5,10,20,30;

5分钟是15,30,60;15分钟是4,12,24;30分钟是5,10,30,60;60分钟线是5,10,20,60;周线是5,10,20;

如果有其他需求可以自己在源码里改动就行;

4、立桩量系统,用来测定该股的爆发能力。

如果大家觉得好用的话,那就把多顶一顶,让有需要的人都能够用到!

具体参数设置如图所示。

源码如下:

{DATATYPE,返回数据类型,设置对照表

分时线=1,分笔成交=2,1分钟线=3,5分钟线=4,15分钟线=5,30分钟线=6,60分钟线=7,日线=8,周线=9,月线=10,多日线=11,年线=12,季线=13,半年线=14。-----------根据各周期所需均线参数自由设定.}

p1:=if(DATATYPE=1,5,if(DATATYPE=2,1,if(DATATYPE=3,5,if(DATATYPE=4,15,if(DATATYPE=5,4,if(DATATYPE=6,5,if(DATATYPE=7,5,if(DATATYPE=8,5,if(DATATYPE=9,5,if(DATATYPE=10,5,20))))))))));

p2:=if(DATATYPE=1,10,if(DATATYPE=2,1,if(DATATYPE=3,10,if(DATATYPE=4,30,if(DATATYPE=5,12,if(DATATYPE=6,10,if(DATATYPE=7,10,if(DATATYPE=8,10,if(DATATYPE=9,10,if(DATATYPE=10,10,20))))))))));

p3:=if(DATATYPE=1,20,if(DATATYPE=2,1,if(DATATYPE=3,20,if(DATATYPE=4,60,if(DATATYPE=5,24,if(DATATYPE=6,30,if(DATATYPE=7,20,if(DATATYPE=8,20,if(DATATYPE=9,20,if(DATATYPE=10,20,20))))))))));

p4:=if(DATATYPE=1,30,if(DATATYPE=2,1,if(DATATYPE=3,30,if(DATATYPE=4,60,if(DATATY

PE=5,24,if(DATATYPE=6,60,if(DATATYPE=7,60,if(DATATYPE=8,30,if(DATATYPE=9,20,if(DATATYPE=10,30,20))))))))));

MA1:MA(CLOSE,P1);

MA2:MA(CLOSE,P2);

MA3:MA(CLOSE,P3);

MA4:MA(CLOSE,P4);

GET:ZIG(3,5),colorred;

PL5:=ZIG(3,5);

EN1:=pl5>REF(pl5,1) AND REF(pl5,1)<=REF(pl5,2) AND REF(pl5,2)<=REF(pl5,3);

EX1:=pl5=REF(pl5,2) AND REF(pl5,2)>=REF(pl5,3);

PL10:=ZIG(3,10);

EN2:=pl10>REF(pl10,1) AND REF(pl10,1)<=REF(pl10,2) AND REF(pl10,2)<=REF(pl10,3);

EX2:=pl10=REF(pl10,2) AND REF(pl10,2)>=REF(pl10,3);

PL20:=ZIG(3,20);

EN3:=pl20>REF(pl20,1) AND REF(pl20,1)<=REF(pl20,2) AND REF(pl20,2)<=REF(pl20,3);

EX3:=pl20=REF(pl20,2) AND REF(pl20,2)>=REF(pl20,3);

走强1:=BARSLAST(PL5

走弱1:=BARSLAST(PL5>REF(PL5,1));

走强2:=BARSLAST(PL10

走弱2:=BARSLAST(PL10>REF(PL10,1));

走强3:=BARSLAST(PL20

走弱3:=BARSLAST(PL20>REF(PL20,1));

ZTJZ5:=IF(PL10>REF(PL10,1),COUNT(EN1,走强2),0);

ZTJD5:=IF(PL10>REF(PL10,1),COUNT(EX1,走强2),0);

DTJZ5:=IF(PL10

DTJD5:=IF(PL10

ZTJZ10:=IF(PL20>REF(PL20,1),COUNT(EN2,走强3),0);

ZTJD10:=IF(PL20>REF(PL20,1),COUNT(EX2,走强3),0);

DTJZ10:=IF(PL20

DTJD10:=IF(PL20

DRAWTEXT(EN1 AND DTJZ5=1,L*0.98,'㈠'),COLORFFFF00;

DRAWTEXT(EX1 AND DTJD5=2,H*1.02,'㈡'),COLORFFFF00;

DRAWTEXT(EN2 AND ZTJZ5=1,L*0.98,'㈢'),COLORFFFF00;

DRAWTEXT(EX1 AND PL10>REF(PL10,1) AND ZTJD5=1,H*1.02,'⑴'),COLOR0000FF;

DRAWTEXT(EN1 AND PL10>REF(PL10,1) AND ZTJZ5=2,L*0.98,'⑵'),COLOR0000FF;

DRAWTEXT(EX1 AND PL10>REF(PL10,1) AND ZTJZ5=2,H*1.02,'⑶'),COLOR0000FF;

DRAWTEXT(EN1 AND PL10>REF(PL10,1) AND ZTJZ5=3,L*0.98,'⑷'),COLOR0000FF;

DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=1,H*1.02,'⑸'),COLOR0000FF;

DRAWTEXT(EN2 AND DTJZ10=1,L*0.9,'Ⅰ'),colorred;

DRAWTEXT(EX2 AND DTJD10=2,H*0.9,'Ⅱ'),colorred;

DRAWTEXT(EN3 AND ZTJZ10=1,L*0.9,'Ⅲ'),colorred;

DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=1,H*1.06,'①'),LINETHICK3,COLOR00FFFF;

DRAWTEXT(EN2 AND PL20>REF(PL20,1) AND ZTJZ10=2,L*0.94,'②'),LINETHICK3,COLOR00FFFF;

DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=2 OR (ZTJD10=0 OR ZTJD10=2)

AND EX2,H*1.06,'③'),LINETHICK3,COLOR00FFFF;

DRAWTEXT(EN3 AND ZTJZ10=1,L*0.9,'Ⅲ'),colorred;

zz:=(o+h+l)/3;

N:=20;

STICKLINE(C>=O,C,O,8,0),COLOR000055;

STICKLINE(C>=O,C,O,6.5,0),COLOR000075;

STICKLINE(C>=O,C,O,5,0),COLOR000095;

STICKLINE(C>=O,C,O,3.5,0),COLOR0000B5;

STICKLINE(C>=O,C,O,2,0),COLOR0000D5;

STICKLINE(C>=O,H,L,0.5,0),COLOR0000F5;

STICKLINE(C

STICKLINE(C

STICKLINE(C

STICKLINE(C

STICKLINE(C

STICKLINE(C

均价:=(3*C+H+L+O)/6;

VAR1:=(8*均价+7*REF(均价,1)+6*REF(均价,2)+5*REF(均价,3)+4*REF(均价,4)+3*REF(均价,5)+2*REF(均价,6)+REF(均价,8))/36;

VAR2:=(LLV(VAR1,2)+LLV(VAR1,4)+LLV(VAR1,6))/3;

SZ1:=REF(VAR1,1)=REF(VAR2,1) AND VAR1>VAR2 AND CLOSE>VAR1;

SZ2:=VAR1>VAR2 AND VAR1>REF(VAR1,1) AND VAR2>REF(VAR2,1) AND H/VAR1<1.1

AND L>VAR2 AND CLOSE>VAR1;

SZ3:=VAR1>VAR2 AND VAR1>REF(VAR1,1) AND VAR2>=REF(VAR2,1) AND H/VAR1>1.1;

SZ4:=VAR1>VAR2 AND VAR1>REF(VAR1,1) AND VAR2>REF(VAR2,1) AND CLOSE>VAR2 AND CLOSE

SZ5:=(VAR1>VAR2 AND VAR2>REF(VAR2,1) AND VAR1<>REF(VAR1,1) AND CLOSEVAR2 AND VAR1

SZ6:=REF(VAR1,1)>REF(VAR2,1) AND VAR1=VAR2 AND CLOSE

XD1:=VAR1=VAR2 AND CLOSE

XD2:=VAR1=VAR2 AND CLOSE>VAR1;

SAT:=(AMOUNT/C)/(HHV(AMOUNT,N)/HHV(C,N));

TJ1:=VOL=HHV(VOL,10) AND VOL>2*REF(VOL,1) AND CLOSE>VAR1;

立桩量:=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;

STICKLINE(CLOSE,REF(HIGH,BARSLAST(立桩量)),REF(HIGH,BARSLAST(立桩量)),6,0),COLORCYAN;

STICKLINE(CLOSE,REF(LOW,BARSLAST(立桩量)),REF(LOW,BARSLAST(立桩量)),6,0),COLOR

YELLOW;

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);

DRAWTEXT(条件成立,L*0.99,'成立'),COLORYELLOW;

DRAWRECTREL(0,85,15,380,RGB(30,30,30)),COLORWHITE;

EMA13:=EMA(C,13);

ma30:=ma(c,30);

ma72:=ma(c,72);

{地心引力:(ma30+ma72)/2,POINTDOT,ColorFF7F93,LINETHICK3;

上引力:(ma30+ma72)/2*0.9,POINTDOT,ColorFF7F93,LINETHICK3;

下引力:(ma30+ma72)/2*1.1,POINTDOT,ColorFF7F93,LINETHICK3;}

{DRAWGBKLAST(CLOSE>0,STRIP(RGB(95,95,95),RGB(0,0,0),0));}

ema17:=ema(c,17);

主筹估算:=EMA(WINNER(c)*70,3);

散筹估算:=EMA((WINNER((c)*1.1)-WINNER((c)*0.9))*70,3);

筹码锁定:=散筹估算-主筹估算 ;

动态底部:=EMA(IF(L<= LLV(l,60),SMA(ABS(L-REF(L,1)),60,1)/SMA(MAX(L-REF(l,1),0),99,1),0)*5,3);

涨:=CROSS(主筹估算,筹码锁定);

强:=CROSS(主筹估算,散筹估算);

STICKLINE(涨,O,C,8,0),COLORYELLOW;

STICKLINE(涨,O,H,0,0),COLORYELLOW;

STICKLINE(涨,L,C,0,0),COLORYELLOW;

STICKLINE(强, O,C,8,0),colormagenta;

STICKLINE(强,O,H,0,0),colormagenta;

STICKLINE(强,L,C,0,0),colormagenta;

{黄金分割线}

lhnh:=BARSLAST(DISPSTATUS=1)+1;

nnl:=DISPSTATUS=2;

Al:=BACKSET(nnl,hhvBARS(h,lhnh)+1);

Bl:=Al>REF(Al,1);

Al2:=BACKSET(nnl,LLVBARS(L,lhnh)+1);

Bl2:=Al2>REF(Al2,1);

前高:REF(H,BARSLAST(bl)),PRECIS2,COLORff00ff,LINETHICK2;

DRAWTEXT(nnl,前高,'前高:'+前高),ALIGN2,COLORGREEN;

前低:REF(L,BARSLAST(Bl2)),PRECIS2,COLORGREEN,LINETHICK2;

DRAWTEXT(nnl,前低*1.009,'前低: '+前低),ALIGN2,COLORGREEN;

Fl1:((前高-前低)*0.191)+前低,POINTDOT,ColorFF7F93,LINETHICK3;

DRAWTEXT(BARSLAST(Bl)>BARSLAST(Bl2) and nnl,Fl1,'0.236: '+Fl1),Color938C93;

Fl2:((前高-前低)*0.382)+前低,POINTDOT,Color5E8C93,LINETHICK3;

DRAWTEXT(BARSLAST(Bl)>BARSLAST(Bl2) and nnl,Fl2,'0.382: '+Fl2),ALIGN2,COLORGREEN;

Fl3:((前高-前低)*0.5)+前低,POINTDOT,COLOR00ffff,LINETHICK4;

DRAWTEXT(nnl,Fl3,'0.5:'+Fl3),ALIGN2,Color918C93;

Fl4:((前高-前低)*0.618)+前低,POINTDOT,Color918C93,LINETHICK3;

DRAWTEXT(BARSLAST(Bl)>BARSLAST(Bl2)and nnl,Fl4,'0.618: '+Fl4),ALIGN2,COLORGREEN;

Fl5:((前高-前低)*0.809)+前低,POINTDOT,Color918C67,LINETHICK3;

DRAWTEXT(BARSLAST(Bl)>BARSLAST(Bl2) and nnl,Fl5,'0.764: '+Fl5),ALIGN2,COLORGREEN;

pp:=MAX( BARSLAST(bl),BARSLAST(Bl2))+1;

k1:=pp-1;

k2:=pp-3;

k3:=pp-5;

k4:=pp-8;

k5:=pp-13;

k6:=pp-21;

k7:=pp-34;

k8:=pp-55;

k9:=pp-89;

k10:=pp-144;

k11:=pp-233;

VERTLINE(FILTER(c=ref(c,k1),0) ,1 );

VERTLINE(FILTER(c=ref(c,k2),0) ,1 );

VERTLINE(FILTER(c=ref(c,k3),0),1 );

VERTLINE(FILTER(c=ref(c,k4),0) ,1 );

VERTLINE(FILTER(c=ref(c,k5),0) ,1 );

VERTLINE(FILTER( c=ref(c,k6),0),1 );

VERTLINE(FILTER( c=ref(c,k7),0),1 );

VERTLINE(FILTER(c=ref(c,k8),0),1 );

VERTLINE(FILTER(c=ref(c,k9),0),1 );

VERTLINE(FILTER(c=ref(c,k10),0),1 );

VERTLINE(FILTER(c=ref(c,k11),0),1 );

DRAWTEXT(FILTER(c=ref(c,k1),0),(HHV( h,80 )+LLV(l ,80 ))/2,'1'),COLORred,LINETHICK6;

DRAWTEXT(FILTER( c=ref(c,k2),0),(HHV( h,80 )+LLV(l ,80 ))/2,'3'),COLORred,LINETHICK6;

DRAWTEXT(FILTER(c=ref(c,k3),0),(HHV( h,80 )+LLV(l ,80 ))/2,'5'),COLORGREEN,LINETHICK6;

DRAWTEXT(FILTER(c=ref(c,k4),0),(HHV( h,80 )+LLV(l ,80 ))/2,'8'),COLORred,LINETHICK6;

DRAWTEXT(FILTER(c=ref(c,k5),0),(HHV( h,80 )+LLV(l ,80 ))/2,'13'),COLORred,LINETHICK6;

DRAWTEXT(FILTER(c=ref(c,k6),0),(HHV( h,80 )+LLV(l ,80 ))/2,'21转'),COLORGREEN,LINETHICK6;

DRAWTEXT(FILTER(c=ref(c,k7),0),(HHV( h,80 )+LLV(l ,80 ))/2,'34'),COLORred,LINETHICK6;

DRAWTEXT(FILTER(c=ref(c,k8),0),(HHV( h,80 )+LLV(l ,80 ))/2,'55'),COLORred,LINETHICK6;

DRAWTEXT(FILTER(c=ref(c,k9),0),(HHV( h,80 )+LLV(l ,80 ))/2,'89'),COLORGREEN,LINETHICK6;

DRAWTEXT(FILTER(c=ref(c,k10),0),(HHV( h,80 )+LLV(l ,80 ))/2,'144'),COLORred,LINETHICK6;

DRAWTEXT(FILTER(c=ref(c,k11),0),(HHV( h,80 )+LLV(l ,80 ))/2,'233'),COLORGREEN,LINETHICK6;

A1:=ref(h,N)=hhv(h,2*N+1);

B1:=filter(A1,N);

C1:=backset(B1,N+1);

D1:=filter(C1,n) or BARSTATUS=2;{高点}

A2:=ref(l,N)=llv(l,2*N+1);

B2:=filter(A2,N);

C2:=backset(B2,N+1);

D2:=filter(C2,N);{低点}

E1:=(ref(llv(l,2*N),1)+ref(hhv(h,2*N),1))/2; E2:=(h+l)/2;{高低点出现在同一K线上时可作取舍}

H1:=(D1 AND not(D2 AND E1>=E2)) OR barstatus=2 OR barscount(c)=1;

L1:=(D2 AND not(D1 AND E1=E2);

X1:=ref(barslast(H1),1)+1; F1:=backset(H1 AND count(L1,X1)>0,llvbars

(if(L1,l,10000),X1));

G1:=F1>ref(F1,1); I1:=backset(G1,2); LD:=I1>ref(I1,1);{过滤后低点}

L2:=LD OR barstatus=2 OR barscount(c)=1;

X2:=ref(barslast(L2),1)+1; F2:=backset(L2 AND count(H2,X2)>0,hhvbars

(if(H2,h,0),X2));

G2:=F2>ref(F2,1); I2:=backset(G2,2); HD:=I2>ref(I2,1);{过滤后高点}

R1:=backset(barstatus=2,barslast(HD)+1); S1:=R1>ref(R1,1); {前一高}

T1:=backset(barstatus=2,barslast(LD)+1); U1:=T1>ref(T1,1); {前一低}

R2:=backset(S1,ref(barslast(HD),1)+2); S2:=R2>ref(R2,1); {前二高}

T2:=backset(U1,ref(barslast(LD),1)+2); U2:=T2>ref(T2,1); {前二低}

T3:=backset(U2,ref(barslast(LD),1)+2); U3:=T3>ref(T3,1); {前三低}

T4:=backset(U3,ref(barslast(LD),1)+2); U4:=T4>ref(T4,1); {前四低}

R3:=backset(S2,ref(barslast(HD),1)+2); S3:=R3>ref(R3,1); {前三高}

R4:=backset(S3,ref(barslast(HD),1)+2); S4:=R4>ref(R4,1); {前四高}

短期压力:drawline(S2,h,S1,h,1),Colorred,LINETHICK2;

短期支撑:drawline(U2,l,U1,l,1),Colorgreen,LINETHICK2;

中期压力:drawline(S3,h,S2,h,1),Coloryellow,LINETHICK2;

中期支撑:drawline(U3,l,U2,l,0),Colorgreen,LINETHICK2;

长期压力:drawline(S4,h,S3,h,1),COLORwhite,LINETHICK2;

长期支撑:drawline(U4,l,U3,l,0),Colorgreen,LINETHICK2;

DRAWICON(S1,H,10);

DRAWICON(S2,H,10);

DRAWICON(S3,H,10);

DRAWICON(S4,H,10);

DRAWICON(U1,L,9);

DRAWICON(U2,L,9);

DRAWICON(U3,L,9);

DRAWICON(U4,L,9);

优化MACD结合斐波那契指标公式

{MACD}

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

DEA:EMA(DIFF,9);

MACD:=(DIFF-DEA)*2;

{STICKLINE(C>0,0,0,0,1);}

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

B1:=REF(C,A1+1)>C AND REF(DIFF,A1+1)

A2:=BARSLAST(REF(CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3)),1));

B2:=REF(C,A2+1)>C AND REF("KDJ.K"(9,3,3),A2+1)<"KDJ.K"(9,3,3) AND

CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3));

A3:=BARSLAST(REF(CROSS("1"(6,12,24),"2"(6,12,24)),1));

B3:=REF(C,A3+1)>C AND REF("1"(6,12,24),A3+1)<"1"(6,12,24) AND

CROSS("1"(6,12,24),"2"(6,12,24));

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

D1:=REF(C,C1+1)DIFF AND CROSS(DEA,DIFF);

C2:=BARSLAST(REF(CROSS("KDJ.D"(9,3,3),"KDJ.K"(9,3,3)),1));

D2:=REF(C,C2+1)"KDJ.K"(9,3,3) AND

CROSS("KDJ.D"(9,3,3),"KDJ.K"(9,3,3));

C3:=BARSLAST(REF(CROSS("2"(6,12,24),"1"(6,12,24)),1));

D3:=REF(C,C3+1)"1"(6,12,24) AND

CROSS("2"(6,12,24),"1"(6,12,24));

MACD底背:IF(B1>0,-0.1,0),COLORRED{POINTDOT};

STICKLINE(B1>0,-0.3,0,2.5,1),COLORRED;

KDJ底背:IF(B2>0,-0.1,0),COLORFF00FF,{POINTDOT};

STICKLINE(B2>0,-0.3,0,2.5,1),COLORFF00FF;

RSI底背:IF(B3>0,-0.1,0),COLORYELLOW,{POINTDOT};

STICKLINE(B3>0,-0.3,0,2.5,1),COLORYELLOW;

MACD顶背:IF(D1>0,0.1,0),COLOR00FF00,{POINTDOT};

STICKLINE(D1>0,0.3,0,2.5,1),COLOR00FF00;

KDJ顶背:IF(D2>0,0.1,0),COLORFFCC66,{POINTDOT};

STICKLINE(D2>0,0.3,0,2.5,1),COLORFFCC66;

RSI顶背:IF(D3>0,0.1,0),COLORWHITE,{POINTDOT};

STICKLINE(D3>0,0.3,0,2.5,1),COLORWHITE;

{画零轴上下线}

STICKLINE(MACD>=0 AND MACD>=REF(MACD,1),0,MACD,0,0),COLOR0000CC;

STICKLINE(MACD>=0 AND MACD<=REF(MACD,1),0,MACD,0,0),COLOR0099FF;

STICKLINE(MACD<=0 AND MACD<=REF(MACD,1),0,MACD,0,0),COLORFF9900;

STICKLINE(MACD<=0 AND MACD>=REF(MACD,1),0,MACD,0,0),COLOR99CC00;

{红蓝箭头标注}

多转空:=((((LLV(MACD,4)>0) AND (MACD

(REF(MACD,1)>REF(MACD,2))) AND (REF(MACD,2)>REF(MACD,3)));

空转多:=((((HHV(MACD,4)<0) AND (MACD>REF(MACD,1)))

(REF(MACD,1)

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 DEA<0 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 DIFF>REF(DIFF,A1+1) AND CROSS(DIFF,DEA);

AND

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

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

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

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

{DIFF,COLORGREEN;

DEA,COLORYELLOW;}

强:IF(DIFF>MA(DIFF,2),DIFF,DRAWNULL),COLORRED;

弱:IF(DEA>MA(DEA,2),DEA,DRAWNULL),COLORMAGENTA;

{标注斐波那契数字}

TJ:=MACD>0;

T:=MACD<0;

A:=LLV(MACD,50)=MACD;

DRAWICON(A AND FILTERX(A,20), MACD,1);

{DRAWTEXT(BARSLAST(TJ)=1,MACD-0.1,'1'),COLORYELLOW;

DRAWTEXT(BARSLAST(TJ)=2,MACD-0.1,'2'),COLORYELLOW;}

DRAWTEXT(BARSLAST(TJ)=3,MACD-0.2,'3'),COLORYELLOW;

DRAWTEXT(BARSLAST(TJ)=5,MACD-0.2,'5'),COLORYELLOW;

DRAWTEXT(BARSLAST(TJ)=8,MACD-0.2,'8'),COLORYELLOW;

DRAWTEXT(BARSLAST(TJ)=13,MACD-0.2,'13'),COLORYELLOW;

DRAWTEXT(BARSLAST(TJ)=21,MACD-0.2,'21'),COLORYELLOW;

DRAWTEXT(BARSLAST(TJ)=34,MACD-0.2,'34'),COLORYELLOW;

DRAWTEXT(BARSLAST(TJ)=55,MACD-0.2,'55'),COLORYELLOW;

{DRAWTEXT(BARSLAST(T)=1,MACD+0.1,'1'),COLORGREEN;

DRAWTEXT(BARSLAST(T)=2,MACD+0.1,'2'),COLORGREEN;}

DRAWTEXT(BARSLAST(T)=3,MACD+0.2,'3'),COLORGREEN;

DRAWTEXT(BARSLAST(T)=5,MACD+0.2,'5'),COLORGREEN;

DRAWTEXT(BARSLAST(T)=8,MACD+0.2,'8'),COLORGREEN;

DRAWTEXT(BARSLAST(T)=13,MACD+0.2,'13'),COLORGREEN;

DRAWTEXT(BARSLAST(T)=21,MACD+0.2,'21'),COLORGREEN;

DRAWTEXT(BARSLAST(T)=34,MACD+0.2,'34'),COLORGREEN;

DRAWTEXT(BARSLAST(T)=55,MACD+0.2,'55'),COLORGREEN;

斐波均线+MACD主图指标公式

MA8:=MA(CLOSE,8);

MA13:MA(CLOSE,13);

MA21:=MA(CLOSE,21),COLOR1880FF;

MA34:MA(CLOSE,34),COLORGREEN;

MA55:MA(CLOSE,55),COLORMAGENTA;

F:=100*(C-REF(C,1))/REF(C,1);

今小昨:=IF(C

P1:=今小昨;

今小前:=IF(C

P2:=今小前;

STICKLINE(P1=0 AND REF(P1,1)=1 AND P2=0 AND

REF(P2,1)=1,OPEN,CLOSE,3,0),COLORFF1CAE;

STICKLINE(P1=1 AND REF(P1,1)=0 AND P2=1 AND

REF(P2,1)=0,OPEN,CLOSE,3,0),COLORFF972F;

DRAWTEXT(P1=0 AND REF(P1,1)=1 AND P2=0 AND REF(P2,1)=1,L*0.998,'←底'),COLOR105D10;

DRAWTEXT(CROSS(C,MA55),L*0.995,'←满仓'),COLORYELLOW;

DRAWTEXT_FIX(1,0,0.1,0,'★ 粉色55线走平上翘、线上做多、回调阴线买 ★'),COLORFF00FF;

DRAWTEXT_FIX(1,0,0.2,0,'★ 三均线走平上翘、每次回调均线、可阴线买 ★'),COLORYELLOW;

DRAWTEXT_FIX(1,0.23,0.1,0,'★ 三线开花、金叉全仓、量线、MACD共振才可买 ★'),COLORYELLOW;

DRAWTEXT_FIX(1,0.23,0.2,0,'★ 抄底、满仓、买1买2、量线、MACD共振才可买 ★'),COLORFF00FF;

MTM:=C-REF(C,1);DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);

买:=IF(LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) AND CROSS(DX,MA(DX,2)),1,0);

DRAWTEXT(FILTER(买=1,5),LOW-0.03,'←预警'),COLORFF00FF;

多方炮:=REF(CLOSE,2)>REF(OPEN,2) AND REF(CLOSE,1)

CLOSE>OPEN;

DRAWTEXT(多方炮,L+0.1,'←多方炮'),COLORGRAY;

DE:=CONST(LLV(L,90));

JI:=CONST(HHV(H,90))-DE;

DE_K:=DE+JI/3*2;

JI_K:=JI/2;

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

DE_A:=CONST(LLV(RSV,90));

DD_A:=CONST(HHV(RSV,90))-DE_A;

R:=(RSV-DE_A)/DD_A;

RSV1:=R*JI_K+DE_K;

DE_M:=DE+JI/3;

JI_M:=JI/2;

KDL:=CONST(LLV(EMA(C,26),90));

KDH:=CONST(HHV(EMA(C,26),90))-KDL;

R_K1:=(EMA(C,12)-KDL)/KDH;

R_K2:=(EMA(C,26)-KDL)/KDH;

DIF:(R_K1-R_K2)*JI*1.5+DE_M,COLORGRAY;

DEA:EMA(DIF,9),COLOR104C13;

MACD:=(DIF-DEA)*2+DE_M;

STICKLINE(MACD>=DE_M,MACD,DE_M,0,0),COLORRED;

D_1:=MACD>H AND H>=DE_M AND DE_M>=L;

D_2:=MACD>H AND H>=L AND L>DE_M;

D_3:=H>MACD AND MACD>=L AND L>DE_M;

D_4:=H>MACD AND MACD>DE_M AND DE_M>=L;

STICKLINE(D_1>0,H,DE_M,0,0),COLORYELLOW;

STICKLINE(D_2,H,L,0,0),COLORYELLOW;

STICKLINE(D_3,MACD,L,0,0),COLORYELLOW;

STICKLINE(D_4,MACD,DE_M,0,0),COLORYELLOW;

D_5:=MACD

D_6:=MACD

D_7:=L

D_8:=L

STICKLINE(MACD

STICKLINE(D_5,DE_M,L,0,0),COLORYELLOW;

STICKLINE(D_6,H,L,0,0),COLORYELLOW;

STICKLINE(D_7,H,MACD,0,0),COLORYELLOW;

STICKLINE(D_8,DE_M,MACD,0,0),COLORYELLOW;

VAR1:=LLV(LOW,21);

VAR2:=HHV(HIGH,21);

AK1:=EMA((((CLOSE-VAR1)/(VAR2-VAR1))*100),5);

AK:=EMA((((CLOSE-VAR1)/(VAR2-VAR1))*50),13);

DD2:=EMA(((0.667*REF(AK1,1))+(0.333*AK1)),2);

VAR3:=LLV(LOW,55);

VAR4:=HHV(HIGH,34);

VAR5:=EMA((((CLOSE-VAR3)/(VAR4-VAR3))*100),3);

VAR6:=((AK+VAR5)/2);

VAR7:=EMA(((0.667*REF(VAR5,1))+(0.333*AK1)),2);

VAR8:=EMA(VAR6,5);

BB:=EMA(((0.667*REF(VAR8,1))+(0.333*VAR8)),2);

AB:=CROSS(AK1,AK);

BB1:=(CROSS(AK1,BB) AND (BB<30));

CD:=(BB1*0.6);

DRAWTEXT((CD=0.6),L,'←抄底'),COLOR33CC99;

乖离线:=((C-REF(MA21,1))/20+MA21)*1.20;

{ 股-旁-网_通达信股票指标公式}

TT1:=CROSS(MA21,MA34) AND CROSS(MA21,MA55) AND V>REF(V,1);

TT2:=MA21>REF(MA21,2) AND V>REF(V,1) AND CROSS(C,MA21);

STICKLINE(TT1,L,L-0.09,4,0),COLORYELLOW;

DRAWTEXT(TT1,L*0.995,'←金叉全仓'),COLORYELLOW;

STICKLINE(CROSS(C,MA34) AND CROSS(C,MA55)

AND CROSS(C,MA21),L,L-0.18,4,0),COLORYELLOW;

DRAWTEXT(CROSS(C,MA34) AND CROSS(C,MA55)

AND CROSS(C,MA21),L*0.97,'←三线开花'),COLORRED;

STICKLINE(TT2,L,L-0.09,4,0),COLORYELLOW;

DRAWTEXT(TT2,L*0.995,'←买1'),COLORYELLOW;

STICKLINE(CROSS(C,乖离线),H,H+0.09,4,0),COLOR00FF00;

DRAWTEXT(CROSS(C,乖离线) ,H+0.13,'←卖点'),COLOR00FF00;

STICKLINE(MA55>=REF(MA55,1) AND MA21>=REF(MA21,1)

AND CROSS(C,MA55),L,L-0.09,4,0),COLORFF972F;

DRAWTEXT(MA55>=REF(MA55,1) AND MA21>=REF(MA21,1)

AND CROSS(C,MA55),L*0.98,'←满仓'),COLORFF972F;

STICKLINE(MA34>=REF(MA34,1) AND CROSS(C,MA21) AND CROSS(C,MA34)

AND V>REF(V,1),L,L-0.09,4,0),COLORFF00FF;

DRAWTEXT(MA34>=REF(MA34,1) AND CROSS(C,MA21) AND CROSS(C,MA34)

AND V>REF(V,1),L*0.976,'←买2'),COLORFF00FF;

1、当21、34、55日三均线首次金叉共振拐头向上时,正是最佳的伏击牛股的切入点,只要21、34、55日三均线是向上运行的以后股价每次减量回踩都可以买入。MACD在O轴上运行是潜伏大牛股的必备条件,第 一次O轴上金叉是伏击潜力股最佳的买点。 2、55日均线的走势最关健,55日均线只要拐头向上以后,无论股价怎么折腾个股必然走向牛市,这是长期趋势和长期均线决定短期趋势短期均线最好的诠释。当55日均线拐头向上后该股总的趋势必然向上,可以坚定做多。MACD在O轴上时间比O轴下时间长,提示主力对该股反复进行洗盘假摔。 3、四要素:一是基本面要完美;二是21、34、55日三均线金叉共振一致拐头向上很重要;三是量价关系和形态要完美;四是MACD走势要完美。四要素完美同时发生金共振的股票必然走大牛! 4、提示:为保斐波均线系统的准确,量价关系配合可以作为佐证,MACD出水加以辅助,MACD在O轴上拒绝死叉又叫似叉未叉效果相当于水上金叉。 5、新股次新股没有34日均线更没有55日均线时,就往前推两个斐波那契数例,变成:8、13、21。在8、13、21日均线系统中,21日均线最为重要,21日线与55日线一样是评判个股中线趋势的准则,技术分折时必须要遵守长线决定短线的原则。 6、注意:21、34、55日三均线多头向上,55日线上回调阴线买!

斐波那契周期、江恩角度主图

{DRAWGBK(C>0,RGB(220,220,220 ),RGB(220,220,220),10,'12',0);}

{HDAY 2 9999 20

LDAY 2 9999 20

上角度 1 9999 70

下角度 1 9999 70

调点 1 4 3 }

CURR:=CURRBARSCOUNT;

TCH:=CONST(FINDHIGH(H,0,HDAY*10,1));

GTT:=CONST(BARSLAST(TCH=H))+1;

SX跌H:=CONST(IF(GTT=1,H,REF(H,GTT-1)));

BCL:=CONST(FINDLOW(L,0,LDAY*10,1));

DTT:=CONST(BARSLAST(BCL=L))+1;

SX涨L:=CONST(IF(DTT=1,L,REF(L,DTT-1)));

涨点:=BARSSINCE(BACKSET(ISLASTBAR,BARSLAST(L=SX涨L)+1));

跌点:=BARSSINCE(BACKSET(ISLASTBAR,BARSLAST(H=SX跌H)+1));

最低:=IF(调点=1,跌点,IF(调点=2,涨点,IF(调点=3,涨点,跌点)));

L斜率:=下角度/IF(C<300,1000,10);

最高:=IF(调点=1,跌点,IF(调点=2,涨点,IF(调点=3,跌点,涨点)));

H斜率:=上角度/IF(C<300,1000,10);

IM68:=((SX跌H-SX涨L)/8-(SX跌H-SX涨L)/8);

GH跌X:=SX跌H+(SX跌H-SX涨L)/8;

DL涨X:=SX涨L-(SX跌H-SX涨L)/8;

GTHT:=IF(DTT>GTT,DTT,GTT);

R:=ABS(GTT-DTT);

DHH:DRAWBAND(IF(CURR<=GTHT,SX跌H,DRAWNULL),RGB(0,120,120),SX跌H,RGB(8,168,168));

DLL:DRAWBAND(IF(CURR<=GTHT,SX涨L,DRAWNULL),RGB(0,120,120),SX涨L,RGB(0,160,160));

STICKLINE(CURRBARSCOUNT=GTT,SX跌H,SX涨L,0,0),COLOR556600;

STICKLINE(CURRBARSCOUNT=DTT,SX跌H,SX涨L,0,0),COLOR666666;

STICKLINE(CURRBARSCOUNT=1,SX跌H,SX涨L,0,0),COLOR556600;

天线:=SX跌H;

地线:=SX涨L;

K:=(天线-地线)/(IF(跌点>=涨点,跌点,涨点)-IF(跌点>=涨点,涨点,跌点));

上斜线:=IF(地线+CONST(L斜率*4.00)*最低>=地线,地线+CONST(L斜率*4.00)*最低,DRAWNULL);

上斜线0:=IF(地线+CONST(L斜率*2.00)*最低>=地线,地线+CONST(L斜率*2.00)*最低,DRAWNULL);

上斜线1:=IF(地线+CONST(L斜率*1.5)*最低>=地线,地线+CONST(L斜率*1.5)*最低,DRAWNULL);

上斜线2:=IF(地线+CONST(L斜率*1.00)*最低>=地线,地线+CONST(L斜率*1.000)*最低,DRAWNULL);

上斜线3:=IF(地线+CONST(L斜率*0.70)*最低>=地线,地线+CONST(L斜率*0.70)*最低,DRAWNULL);

上斜线4:=IF(地线+CONST(L斜率*0.50)*最低>=地线,地线+CONST(L斜率*0.50)*最低,DRAWNULL);

上斜线5:=IF(地线+CONST(L斜率*0.365)*最低>=地线,地线+CONST(L斜率*0.365)*最低,DRAWNULL);

上斜线6:=IF(地线+CONST(L斜率*0.250)*最低>=地线,地线+CONST(L斜率*0.250)*最低,DRAWNULL);

上斜线7:=IF(地线+CONST(L斜率*0.165)*最低>=地线,地线+CONST(L斜率*0.165)*最低,DRAWNULL);

上斜线8:=IF(地线+CONST(L斜率*0.123)*最低>=地线,地线+CONST(L斜率*0.123)*最低,DRAWNULL);

上斜线9:=IF(地线+CONST(L斜率*0.06)*最低>=地线,地线+CONST(L斜率*0.06)*最低,DRAWNULL);

上9:IF(上斜线9<=天线*1.05,上斜线9,DRAWNULL),COLORAA00AA,DOTLINE;

上8:IF(上斜线8<=天线*1.05,上斜线8,DRAWNULL),COLORAA00AA,DOTLINE;

上7:IF(上斜线7<=天线*1.05,上斜线7,DRAWNULL),COLORAA00AA,DOTLINE;

上6:IF(上斜线6<=天线*1.05,上斜线6,DRAWNULL),COLORAA00AA,DOTLINE;

上5:IF(上斜线5<=天线*1.05,上斜线5,DRAWNULL),COLORAA00AA,DOTLINE;

上4:IF(上斜线4<=天线*1.05,上斜线4,DRAWNULL),COLOR0000FF,DOTLINE;

上3:IF(上斜线3<=天线*1.05,上斜线3,DRAWNULL),COLORAA00AA,DOTLINE;

上2:IF(上斜线2<=天线*1.05,上斜线2,DRAWNULL),COLORAA00AA,DOTLINE;

上1:IF(上斜线1<=天线*1.05,上斜线1,DRAWNULL),COLORAA00AA,DOTLINE;

上0:IF(上斜线0<=天线*1.05,上斜线0,DRAWNULL),COLORAA00AA,DOTLINE;

上:IF(上斜线<=天线*1.05,上斜线,DRAWNULL),COLORAA00AA,DOTLINE;

下斜线:=IF(天线-CONST(H斜率*4.00)*最高<=天线,天线-CONST(H斜率*4.00)*最高,DRAWNULL);

下斜线0:=IF(天线-CONST(H斜率*2.00)*最高<=天线,天线-CONST(H斜率*2.00)*最高,DRAWNULL);

下斜线1:=IF(天线-CONST(H斜率*1.500)*最高<=天线,天线-CONST(H斜率*1.500)*最高,DRAWNULL);

下斜线2:=IF(天线-CONST(H斜率*1.000)*最高<=天线,天线-CONST(H斜率*1.000)*最高,DRAWNULL);

下斜线3:=IF(天线-CONST(H斜率*0.70)*最高<=天线,天线-CONST(H斜率*0.70)*最高,DRAWNULL);

下斜线4:=IF(天线-CONST(H斜率*0.50)*最高<=天线,天线-CONST(H斜率*0.50)*最高,DRAWNULL);

下斜线5:=IF(天线-CONST(H斜率*0.365)*最高<=天线,天线-CONST(H斜率*0.365)*最高,DRAWNULL);

下斜线6:=IF(天线-CONST(H斜率*0.250)*最高<=天线,天线-CONST(H斜率*0.250)*最高,DRAWNULL);

下斜线7:=IF(天线-CONST(H斜率*0.165)*最高<=天线,天线-CONST(H斜率*0.165)*最高,DRAWNULL);

下斜线8:=IF(天线-CONST(H斜率*0.123)*最高<=天线,天线-CONST(H斜率*0.123)*最高,DRAWNULL);

下斜线9:=IF(天线-CONST(H斜率*0.06)*最高<=天线,天线-CONST(H斜率*0.06)*最高,DRAWNULL);

下9:IF(下斜线9>=地线*0.95,下斜线9,DRAWNULL),COLORAAAAAA,DOTLINE;

下8:IF(下斜线8>=地线*0.95,下斜线8,DRAWNULL),COLORAAAAAA,DOTLINE;

下7:IF(下斜线7>=地线*0.95,下斜线7,DRAWNULL),COLORAAAAAA,DOTLINE;

下6:IF(下斜线6>=地线*0.95,下斜线6,DRAWNULL),COLORAAAAAA,DOTLINE;

下5:IF(下斜线5>=地线*0.95,下斜线5,DRAWNULL),COLORAAAAAA,DOTLINE;

下4:IF(下斜线4>=地线*0.95,下斜线4,DRAWNULL),COLOR0000FF,DOTLINE;

下3:IF(下斜线3>=地线*0.95,下斜线3,DRAWNULL),COLORAAAAAA,DOTLINE;

下2:IF(下斜线2>=地线*0.95,下斜线2,DRAWNULL),COLORAAAAAA,DOTLINE;

下1:IF(下斜线1>=地线*0.95,下斜线1,DRAWNULL),COLORAAAAAA,DOTLINE;

下0:IF(下斜线0>=地线*0.95,下斜线0,DRAWNULL),COLORAAAAAA,DOTLINE;

下:IF(下斜线>=地线*0.95,下斜线,DRAWNULL),COLORAAAAAA,DOTLINE;

{黄金分割}

X146:IF(CURR<=GTHT,SX跌H-(SX跌H-SX涨L)*0.146,DRAWNULL),DOTLINE,COLOR556600;

DRAWTEXT(CURR=GTHT,(X146)*1.001,STRCAT(' 0.146%% ',CON2STR(X146,3))),COLOR889900;

X191:IF(CURR<=GTHT,SX跌H-(SX跌H-SX涨L)*0.191,DRAWNULL),DOTLINE,COLOR556600;

DRAWTEXT(CURR=GTHT,(X191)*1.001,STRCAT(' 0.191%% ',CON2STR(X191,3))),COLOR889900;

X236:IF(CURR<=GTHT,SX跌H-(SX跌H-SX涨L)*0.236,DRAWNULL),DOTLINE,COLOR556600;

DRAWTEXT(CURR=GTHT,(X236)*1.001,STRCAT(' 0.236%% ',CON2STR(X236,3))),COLOR889900;

X382:IF(CURR<=GTHT,SX跌H-(SX跌H-SX涨L)*0.382,DRAWNULL),DOTLINE,COLOR556600;

DRAWTEXT(CURR=GTHT,(X382)*1.001,STRCAT(' 0.382%% ',CON2STR(X382,3))),COLOR889900;

X500:IF(CURR<=GTHT,SX跌H-(SX跌H-SX涨L)*0.500,DRAWNULL),DOTLINE,COLOR556600;

DRAWTEXT(CURR=GTHT,(X500)*1.001,STRCAT(' 0.500%% ',CON2STR(X500,3))),COLOR889900;

X618:IF(CURR<=GTHT,SX跌H-(SX跌H-SX涨L)*0.618,DRAWNULL),DOTLINE,COLOR556600;

DRAWTEXT(CURR=GTHT,(X618)*1.001,STRCAT(' 0.618%% ',CON2STR(X618,3))),COLOR889900;

X764:IF(CURR<=GTHT,SX跌H-(SX跌H-SX涨L)*0.764,DRAWNULL),DOTLINE,COLOR556600;

DRAWTEXT(CURR=GTHT,(X764)*1.001,STRCAT(' 0.764%% ',CON2STR(X764,3))),COLOR889900;

X809:IF(CURR<=GTHT,SX跌H-(SX跌H-SX涨L)*0.809,DRAWNULL),DOTLINE,COLOR556600;

DRAWTEXT(CURR=GTHT,(X809)*1.001,STRCAT(' 0.809%% ',CON2STR(X809,3))),COLOR889900;

X854:IF(CURR<=GTHT,SX跌H-(SX跌H-SX涨L)*0.854,DRAWNULL),DOTLINE,COLOR556600;

DRAWTEXT(CURR=GTHT,(X854)*1.001,STRCAT(' 0.854%% ',CON2STR(X854,3))),COLOR889900;

{斐波那契周期}

DRAWTEXT(CURRBARSCOUNT=GTT,SX跌H*1.02,'斐波那契下跌周期'),COLOR00FF00;

DRAWTEXT(CURRBARSCOUNT=GTT,SX跌H*1.01,'1'),COLOR00FF00;

STICKLINE(CURRBARSCOUNT=GTT-2,SX跌H,SX涨L,0,0),COLOR556600;

DRAWTEXT(CURRBARSCOUNT=GTT-2,SX跌H*1.01,'3'),COLOR00FF00;

STICKLINE(CURRBARSCOUNT=GTT-4,SX跌H,SX涨L,0,0),COLOR556600;

DRAWTEXT(CURRBARSCOUNT=GTT-4,SX跌H*1.01,'5'),COLOR00FF00;

STICKLINE(CURRBARSCOUNT=GTT-7,SX跌H,SX涨L,0,0),COLOR556600;

DRAWTEXT(CURRBARSCOUNT=GTT-7,SX跌H*1.01,'8'),COLOR00FF00;

STICKLINE(CURRBARSCOUNT=GTT-12,SX跌H,SX涨L,0,0),COLOR556600;

DRAWTEXT(CURRBARSCOUNT=GTT-12,SX跌H*1.01,'13'),COLOR00FF00;

STICKLINE(CURRBARSCOUNT=GTT-20,SX跌H,SX涨L,0,0),COLOR556600;

DRAWTEXT(CURRBARSCOUNT=GTT-20,SX跌H*1.01,'21'),COLOR00FF00;

STICKLINE(CURRBARSCOUNT=GTT-33,SX跌H,SX涨L,0,0),COLOR556600;

DRAWTEXT(CURRBARSCOUNT=GTT-33,SX跌H*1.01,'34 '),COLOR00FF00;

STICKLINE(CURRBARSCOUNT=GTT-54,SX跌H,SX涨L,0,0),COLOR556600;

DRAWTEXT(CURRBARSCOUNT=GTT-54,SX跌H*1.01,'55'),COLOR00FF00;

STICKLINE(CURRBARSCOUNT=GTT-67,SX跌H,SX涨L,0,0),COLOR556600;

DRAWTEXT(CURRBARSCOUNT=GTT-67,SX跌H*1.01,'68'),COLOR00FF00;

STICKLINE(CURRBARSCOUNT=GTT-88,SX跌H,SX涨L,0,0),COLOR556600;

DRAWTEXT(CURRBARSCOUNT=GTT-88,SX跌H*1.01,'89'),COLOR00FF00;

STICKLINE(CURRBARSCOUNT=GTT-109,SX跌H,SX涨L,0,0),COLOR556600;

DRAWTEXT(CURRBARSCOUNT=GTT-109,SX跌H*1.01,'110'),COLOR00FF00;

STICKLINE(CURRBARSCOUNT=GTT-143,SX跌H,SX涨L,0,0),COLOR556600;

DRAWTEXT(CURRBARSCOUNT=GTT-143,SX跌H*1.01,'144'),COLOR00FF00;

DRAWTEXT(CURRBARSCOUNT=DTT,SX涨L*0.96,'斐波那契上升周期'),COLOR0000FF;

DRAWTEXT(CURRBARSCOUNT=DTT,SX涨L*0.98,'1'),COLOR0000FF;

STICKLINE(CURRBARSCOUNT=DTT-2,SX跌H,SX涨L,0,0),COLORAA00AA;

DRAWTEXT(CURRBARSCOUNT=DTT-2,SX涨L*0.98,'3'),COLOR0000FF;

STICKLINE(CURRBARSCOUNT=DTT-4,SX跌H,SX涨L,0,0),COLORAA00AA;

DRAWTEXT(CURRBARSCOUNT=DTT-4,SX涨L*0.98,'5'),COLOR0000FF;

STICKLINE(CURRBARSCOUNT=DTT-7,SX跌H,SX涨L,0,0),COLORAA00AA;

DRAWTEXT(CURRBARSCOUNT=DTT-7,SX涨L*0.98,'8'),COLOR0000FF;

STICKLINE(CURRBARSCOUNT=DTT-12,SX跌H,SX涨L,0,0),COLORAA00AA;

DRAWTEXT(CURRBARSCOUNT=DTT-12,SX涨L*0.98,'13'),COLOR0000FF;

STICKLINE(CURRBARSCOUNT=DTT-20,SX跌H,SX涨L,0,0),COLORAA00AA;

DRAWTEXT(CURRBARSCOUNT=DTT-20,SX涨L*0.98.01,'21'),COLOR0000FF;

STICKLINE(CURRBARSCOUNT=DTT-33,SX跌H,SX涨L,0,0),COLORAA00AA;

DRAWTEXT(CURRBARSCOUNT=DTT-33,SX涨L*0.98,'34'),COLOR0000FF;

STICKLINE(CURRBARSCOUNT=DTT-54,SX跌H,SX涨L,0,0),COLORAA00AA;

DRAWTEXT(CURRBARSCOUNT=DTT-54,SX涨L*0.98,'55'),COLOR0000FF;

STICKLINE(CURRBARSCOUNT=DTT-67,SX跌H,SX涨L,0,0),COLORAA00AA;

DRAWTEXT(CURRBARSCOUNT=DTT-67,SX涨L*0.98,'68'),COLOR0000FF;

STICKLINE(CURRBARSCOUNT=DTT-88,SX跌H,SX涨L,0,0),COLORAA00AA;

DRAWTEXT(CURRBARSCOUNT=DTT-88,SX涨L*0.98,'89'),COLOR0000FF;

STICKLINE(CURRBARSCOUNT=DTT-109,SX跌H,SX涨L,0,0),COLORAA00AA;

DRAWTEXT(CURRBARSCOUNT=DTT-109,SX涨L*0.98,'110'),COLOR0000FF;

STICKLINE(CURRBARSCOUNT=DTT-143,SX跌H,SX涨L,0,0),COLORAA00AA;

DRAWTEXT(CURRBARSCOUNT=DTT-143,SX涨L*0.98,'144'),COLOR0000FF;

"拐牛" 和"牛浮面"

DPZX:=EMA(C,1),NODRAW;

GGZX:=AMOUNT/V/100;

重心:=IF(C<300,GGZX,DPZX),NODRAW;

今重心:LLV(重心,2)COLORGREEN,NODRAW;

ZC1:=CONST(LLV(重心,2));

ZC2:=CONST(LLV(重心,4));

VAR1:=(C+H+O+L)/4;

MA5:=MA(C,5),COLOR000099;

MA10:=MA(C,10),COLOR006600;

MA20:=MA(C,20),COLOR005555;

ZB1:=EMA(C,34);

长期趋势:EMA(ZB1,13),COLORRED,LINETHICK3;

SQX:=(C-MA(CLOSE,13))*100;

DIFF:=EMA(MA(SQX,7),1),COLORWHITE;

DEA:=EMA(DIFF,7),COLORYELLOW;

MACD:=(DIFF-DEA)*2,COLORSTICK;

FF:=EMA(CLOSE,3);

MA15:=EMA(CLOSE,21);

TTJ:=CROSS(FF,MA15);

上:=EMA(C,3),COLORBLUE,LINETHICK1;

中:=EMA(C,5),COLORWHITE,LINETHICK1;

下:=EMA(中,5),COLOR00FF00,LINETHICK1;

QQ:= C<中;

MM:=上>REF(上,1) AND REF(上,1)

V1:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);

V2:=(1-7/100)*(DMA(CLOSE,V1));

V3:=(1+7/100)*(DMA(CLOSE,V1));

V5:=MA((LOW+HIGH+CLOSE)/3,5);

MA1Q:=MEMA(CLOSE,5);

MA2Q:=ATAN((MA1Q/REF(MA1Q,1)-1)*100)*180/3.1416;

MA3Q:=IF(MA2Q>0,MA2Q,MA2Q);

MA5Q:=MA(CLOSE,5),COLOR888899;

MA13:=MA(CLOSE,13),COLORFF00F0,LINETHICK2;

VAR01:=CLOSE=HHV(C,4) AND (REF(C,1)>=REF(C,2) OR REF(C,1)>=REF(C,3))

OR REF(C,1)=HHV(C,4) AND CLOSE>=REF(C,2) OR REF(C,2)=HHV(C,4) AND

REF(C,3)=LLV(C,4) AND C>=REF(C,1) OR REF(C,3)=HHV(C,4) AND

C>=REF(C,1) AND C>=REF(C,2);

VAR02:=CLOSE=HHV(C,4) AND REF(C,1)=LLV(C,4);

VAR03:=CLOSE=LLV(C,4) AND (REF(C,1)

REF(C,1)=LLV(C,4) AND C

REF(C,1)=HHV(C,4) AND C

C

VAR04:=REF(C,1)=LLV(C,4) AND C>=REF(C,2) OR REF(C,2)=LLV(C,4) AND

REF(C,1)<=REF(C,3) AND REF(C,2)=REF(C,1);

VAR05:=REF(C,1)=HHV(C,4) AND C

REF(C,1)>REF(C,3) OR REF(C,3)=HHV(C,4) AND REF(C,1)>REF(C,2)) AND

REF(C,2)>=REF(C,4) AND C

VAR06:=V5>REF(V5,1) AND REF(V5,1)

VAR07:=LOWHHV(V5,13) AND CLOSE>REF(C,1) AND CLOSE>OPEN;

VAR08:=VAR07 AND COUNT(VAR06,2);

VAR09:=100*EMA(EMA(C-REF(C,1),6),6)/EMA(EMA(ABS(C-REF(C,1)),6),6);

VAR10:=EMA(MA(C,13),13);

VAR11:=FILTER((LLV(VAR09,2)=LLV(VAR09,7) AND COUNT(VAR09<0,2) AND

CROSS(VAR09,MA(VAR09,2)))=1,5);

VAR12:=FILTER((HHV(VAR09,2)=HHV(VAR09,7) AND COUNT(VAR09>50,2) AND

CROSS(MA(VAR09,2),VAR09))=1,1);

VAR13:=SMA(EMA((C-REF(C,1))/REF(C,1),5)*100,3,1)*10;

VAR14:=FILTER(((CROSS(VAR13,0) OR CROSS(C,VAR10)) AND VAR11)=1,3);

VAR15:=MA(C,18)>=REF(MA(C,18),3) AND CROSS(C,MA(C,18));

VAR16:=VAR08 AND NOT(REF(VAR08,1));

RSVQ:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;

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

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

J:=3*K-2*D;

金叉:=CROSS(J,D);

死叉:=CROSS(D,J);

买1:=(VAR14 OR VAR15) AND VAR11;

买2:=(VAR14 OR VAR15) AND VAR04;

买3:=(VAR14 OR VAR15) AND VAR02;

买4:=(VAR02 AND VAR11) OR (VAR04 AND VAR11);

买5:=(金叉 AND VAR04) OR (金叉 AND VAR02) OR (金叉 AND VAR11);

TTJ0:=VAR16;

TTJ1:=买1 OR 买2 OR 买3 OR 买4 OR 买5 AND MM;

XG0:=TTJ AND TTJ0;

XG1:=TTJ AND TTJ1;

XG11:=XG0 OR XG1;

XGQ:=XG11;

拐牛:XGQ,COLORRED,NODRAW;

DRAWTEXT(XGQ,L*0.99,'●拐牛'),COLORRED;

MA1:=MA(C,5);

MA2:=MA(C,10);

MA3:=MA(C,21);

破N:=REF(MA1,1)REF(MA2,1);

试摸N:=C>MA(C,10) OR H>=MA2;

再上N:=C>O AND REF(C,1)< MA(C,10) AND 试摸N AND 破N AND MA(C,21)

有行情:=再上N AND (CROSS(C,长期趋势) OR CROSS(L,长期趋势) OR CROSS(H,长期趋势));

DRAWTEXT(有行情,LOW*0.98,'●'),COLORGREEN;

VAR1MZ:=((CLOSE > REF(CLOSE,1)) AND (CLOSE > REF(CLOSE,2)));

VAR2MZ:=((REF(VAR1MZ,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));

VAR3MZ:=((REF(VAR2MZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));

VAR4MZ:=((REF(VAR3MZ,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));

VAR5MZ:=((REF(VAR4MZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));

VAR6MZ:=((REF(VAR5MZ,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));

VAR7MZ:=((REF(VAR6MZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));

VAR8MZ:=((REF(VAR7MZ,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));

VAR9MZ:=((REF(VAR8MZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));

VARAMZ:=((REF(VAR9MZ,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));

VARBMZ:=((REF(VARAMZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));

VARCMZ:=((REF(VARBMZ,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));

{红K}

{STICKLINE((((((((((((VAR1MZ OR VAR2MZ) OR VAR3MZ) OR VAR4MZ) OR VAR5MZ) OR

VAR6MZ) OR VAR7MZ) OR VAR8MZ) OR VAR9MZ) OR VARAMZ) OR VARBMZ) OR

VARCMZ),C,O,3,0),COLOR000099;

STICKLINE((((((((((((VAR1MZ OR VAR2MZ) OR VAR3MZ) OR VAR4MZ) OR VAR5MZ) OR VAR6MZ)

OR VAR7MZ) OR VAR8MZ) OR VAR9MZ) OR VARAMZ) OR VARBMZ) OR

VARCMZ),C,O,2,0),COLOR0000BB;

STICKLINE((((((((((((VAR1MZ OR VAR2MZ) OR VAR3MZ) OR VAR4MZ) OR VAR5MZ) OR VAR6MZ)

OR VAR7MZ) OR VAR8MZ) OR VAR9MZ) OR VARAMZ) OR VARBMZ) OR

VARCMZ),C,O,1,0),COLOR0000DD};

VARDMZ:=((CLOSE < REF(CLOSE,1)) AND (CLOSE < REF(CLOSE,2)));

VAREMZ:=((REF(VARDMZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));

VARFMZ:=((REF(VAREMZ,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));

VAR10MZ:=((REF(VARFMZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));

VAR11MZ:=((REF(VAR10MZ,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));

VAR12MZ:=((REF(VAR11MZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));

VAR13MZ:=((REF(VAR12MZ,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));

VAR14MZ:=((REF(VAR13MZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));

VAR15MZ:=((REF(VAR14MZ,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));

VAR16MZ:=((REF(VAR15MZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));

VAR17MZ:=((REF(VAR16MZ,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));

VAR18MZ:=((REF(VAR17MZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));

{绿K}

{STICKLINE((((((((((((VARDMZ OR VAREMZ) OR VARFMZ) OR VAR10MZ) OR VAR11MZ) OR

VAR12MZ) OR VAR13MZ) OR VAR14MZ) OR VAR15MZ) OR VAR16MZ) OR VAR17MZ) OR

VAR18MZ),C,O,3 ,0 ),COLOR00BB00;

STICKLINE((((((((((((VARDMZ OR VAREMZ) OR VARFMZ) OR VAR10MZ) OR VAR11MZ) OR

VAR12MZ) OR VAR13MZ) OR VAR14MZ) OR VAR15MZ) OR VAR16MZ) OR VAR17MZ) OR

VAR18MZ),C,O,2 ,0 ),COLOR00DD00;

STICKLINE((((((((((((VARDMZ OR VAREMZ) OR VARFMZ) OR VAR10MZ) OR VAR11MZ) OR

VAR12MZ) OR VAR13MZ) OR VAR14MZ) OR VAR15MZ) OR VAR16MZ) OR VAR17MZ) OR

VAR18MZ),C,O,1,0 ),COLOR00FF00};

VAR19MZ:=(REF((((((((((((VARDMZ OR VAREMZ) OR VARFMZ) OR VAR10MZ) OR VAR11MZ) OR

VAR12MZ) OR VAR13MZ) OR VAR14MZ) OR VAR15MZ) OR VAR16MZ) OR VAR17MZ) OR

VAR18MZ),1) AND VAR1MZ);

VAR1AMZ:=(REF((((((((((((VAR1MZ OR VAR2MZ) OR VAR3MZ) OR VAR4MZ) OR VAR5MZ) OR

VAR6MZ) OR VAR7MZ) OR VAR8MZ) OR VAR9MZ) OR VARAMZ) OR VARBMZ) OR VARCMZ),1)

AND VARDMZ);

{粉红}

CAX:=MAX(REF(CLOSE,2),REF(CLOSE,1));

{STICKLINE(VAR19MZ,CAX,O,3 ,0 ),COLORBB11BB;

STICKLINE(VAR19MZ,CAX,O,2 ,0 ),COLORDD44DD;

STICKLINE(VAR19MZ,CAX,O,1 ,0 ),COLORFF66FF};

{黄色}

CIN:=MIN(REF(CLOSE,2),REF(CLOSE,1));

{STICKLINE(VAR1AMZ,CIN,O,3,0),COLOR00AAFF;

STICKLINE(VAR1AMZ,CIN,O,2,0),COLOR00CCFF;

STICKLINE(VAR1AMZ,CIN,O,1,0),COLOR00EEFF};

牛节点:=CROSS(EMA(C,5),EMA(C,30))AND CROSS(EMA(C,10),EMA(C,20));

DRAWICON(牛节点,L*0.99,13);

CSAR:=SAR(10,2,20);

持股:=IF(CSAR<=L,CSAR,0),CIRCLEDOT,COLORRED{持股};

短期趋势:=EMA(SLOPE(C,21)*20+C,42),POINTDOT,LINETHICK1,COLORYELLOW;

STICKLINE(1,短期趋势,短期趋势,1,0),COLORYELLOW;

止损:=EMA(C,5),COLORYELLOW,LINETHICK1;

VVAR1D:=((((OPEN + LOW) + HIGH) + CLOSE) / 4);

短底:=EMA(VVAR1D,5);

支撑:=HHV(短底,60);

MAN:=(SMA(HIGH,21,2) * 1.05);

下档线:=(((CLOSE - LLV(LOW,13)) / (HHV(HIGH,13) - LLV(LOW,13))) * 100);

中D:=(((((3 * CLOSE) + HIGH) + LOW) + OPEN) / 6);

X1D:=EMA(中D,10);

RSVD:=SMA(下档线,3,1);

K大:=SMA(RSVD,3,1);

D大:=((3 * RSVD) - (2 * K大));

J12:=(((CLOSE - LLV(LOW,55)) / (HHV(HIGH,55) - LLV(LOW,55))) * 100);

RSV24:=SMA(J12,3,1);

K24:=SMA(RSV24,3,1);

D24:=((3 * RSV24) - (2 * K24));

压力位:=IF(CROSS(D24,D大),HIGH,REF(HIGH,BARSLAST(CROSS(D24,D大)))),COLORFFFFFF;

牛浮面:=CROSS(CLOSE,MA20) AND HIGH < 压力位 AND OPEN < MA20

AND HIGH < 支撑 AND MAN - REF(MAN,1) > 0 AND X1D - REF(X1D,1)>0 AND

D大 < 63 AND MA20 - REF(MA20,1) > 0,COLORWHITE;

DRAWTEXT(牛浮面,L,'●牛浮面'),COLORWHITE;

{STICKLINE(ISLASTBAR,ZC1,ZC1,120,0),LINETHICK1,COLORGREEN;

DRAWTEXT(CURRBARSCOUNT=15,ZC1*1.02,'关键价位'),COLORGREEN;

DRAWNUMBER(ISLASTBAR,ZC1*1.02,ZC1+000),COLORGREEN;

STICKLINE(ISLASTBAR,ZC2,ZC2,120,0),LINETHICK1,COLORYELLOW;

DRAWTEXT(CURRBARSCOUNT=15,ZC2*0.99,'支撑价位'),COLORYELLOW;

DRAWNUMBER(ISLASTBAR,ZC2*0.99,ZC2+000),COLORYELLOW};

决策:=IF(ISLASTBAR,压力位,DRAWNULL),COLORMAGENTA;

{STICKLINE(ISLASTBAR ,决策,决策,60,1),LINETHICK3,COLORFFFFFF};

底部:=LLV(HIGH,30),COLOR00FF00;

超跌:=IF(ISLASTBAR,底部,DRAWNULL),COLORRED;

{STICKLINE(ISLASTBAR ,超跌,超跌,60,1),LINETHICK3,COLORRED;

STICKLINE(ISLASTBAR,REF(今重心,1),REF(今重心,1),10,0),COLORGREEN};

T1:=IF(FINDSTR(EXTERNSTR(0,13),'万元'),STRCAT('敢死队席位:',EXTERNSTR(0,13)),'');

T2:=IF(FINDSTR(EXTERNSTR(0,12),'。'),STRCAT('智能诊断:',EXTERNSTR(0,12)),'');

T3:=IF(FINDSTR(EXTERNSTR(0,8),'公告'),STRCAT('年报业绩:',EXTERNSTR(0,8)),'');

T4:=IF(FINDSTR(EXTERNSTR(0,10),','),STRCAT('主题投资:',EXTERNSTR(0,10)),'');

T5:=IF(FINDSTR(EXTERNSTR(0,15),'-'),STRCAT('解禁日期:',EXTERNSTR(0,15)),'');

T6:=IF(FINDSTR(EXTERNSTR(0,1),','),STRCAT('千股千评:',EXTERNSTR(0,1)),'');

T7:=IF(FINDSTR(EXTERNSTR(0,14),'-'),STRCAT('业绩预报:',EXTERNSTR(0,14)),'');

T8:=IF(FINDSTR(EXTERNSTR(0,11),'-'),STRCAT('机构评级:',EXTERNSTR(0,11)),'');

T9:=IF(FINDSTR(EXTERNSTR(0,9),'-'),STRCAT('中报业绩:',EXTERNSTR(0,9)),'');

N:=IF(TOTALBARSCOUNT>=120,120,TOTALBARSCOUNT);

{本输出适用于锁定K线数为120,N可改为你习惯的K线数,见下图}

HH0:=HHV(H,N);

LL0:=LLV(L,N);

MM0:=CONST((HH0+LL0)*0.5);

S01:=CONST(IF(REF(C,N-15)>MM0,1.00,-0.08));

S02:=CONST(IF(REF(C,N-15)>MM0,-1,1));

S1:=IF(FINDSTR(EXTERNSTR(0,13),'万元'),S01+(0.08*S02),S01),NODRAW;

S2:=IF(FINDSTR(EXTERNSTR(0,12),'。'),S1+(0.08*S02),S1),NODRAW;

S3:=IF(FINDSTR(EXTERNSTR(0,8),'公告'),S2+(0.08*S02),S2),NODRAW;

S4:=IF(FINDSTR(EXTERNSTR(0,10),','),S3+(0.08*S02),S3);

S5:=IF(FINDSTR(EXTERNSTR(0,15),'-'),S4+(0.08*S02),S4);

S6:=IF(FINDSTR(EXTERNSTR(0,1),','),S5+(0.08*S02),S5);

S7:=IF(FINDSTR(EXTERNSTR(0,14),'-'),S6+(0.08*S02),S6);

S8:=IF(FINDSTR(EXTERNSTR(0,11),'-'),S7+(0.08*S02),S7);

S9:=IF(FINDSTR(EXTERNSTR(0,9),'-'),S8+(0.08*S02),S8);

KK:=IF(S1<=0,0.05,IF(S1>=0,-0.05,0));

DRAWTEXT_FIX(1,0,S1+KK,0,T1)COLOR00FFFF;

DRAWTEXT_FIX(1,0,S2+KK,0,T2)COLORFFFFFF;

DRAWTEXT_FIX(1,0,S3+KK,0,T3)COLORFF00FF;

DRAWTEXT_FIX(1,0,S4+KK,0,T4)COLOR0088FF;

DRAWTEXT_FIX(1,0,S5+KK,0,T5)COLOR00FF00;

DRAWTEXT_FIX(1,0,S6+KK,0,T6)COLOR0000FF;

DRAWTEXT_FIX(1,0,S7+KK,0,T7)COLOR00CCFF;

DRAWTEXT_FIX(1,0,S8+KK,0,T8)COLORFF88FF;

DRAWTEXT_FIX(1,0,S9+KK,0,T9)COLORBBFFFF;

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

X2:=EMA(X1,6);

X3:=EMA(X2,5);

DRAWICON(CROSS(X2,X3),L*0.99,7);

XG:CROSS(X2,X3),NODRAW;

DRAWICON(CROSS(X3,X2),H*1.01,8);

YY1:=C>MA(C,5) AND OPEN

YY3:=C>MA(C,10) AND OPEN

YY5:=C>MA(C,30) AND OPEN

DRAWTEXT(YY1 AND YY5 AND YY3,LOW-0.05,'↖神话'),COLOR00FFFF;

黄金分割江恩角度线主图指标

N:=1000;P:=5;P1:=10;{N为多少天内的高低值参数,我以自已的初始K线根数定义。P1、P2为短、长支撑压力取点参数}

A1:=REF(H,P)=HHV(H,2*P+1);

B1:=FILTER(A1,P);

C1:=BACKSET(B1,P+1);

D1:=FILTER(C1,P);

E1:=BACKSET(ISLASTBAR,BARSLAST(D1)+1);

F1:=E1>REF(E1,1);

短压:DRAWLINE(D1,H,F1,H,1),COLORCYAN;

A2:=REF(L,P)=LLV(L,2*P+1);

B2:=FILTER(A2,P);

C2:=BACKSET(B2,P+1);

D2:=FILTER(C2,P);

E2:=BACKSET(ISLASTBAR,BARSLAST(D2)+1);

F2:=E2>REF(E2,1);

短支:DRAWLINE(D2,L,F2,L,1),COLORLIRED;

AA1:=REF(H,P1)=HHV(H,2*P1+1);

BB1:=FILTER(AA1,P1);

CC1:=BACKSET(BB1,P1+1);

DD1:=FILTER(CC1,P1);

EE1:=BACKSET(ISLASTBAR,BARSLAST(DD1)+1);

FF1:=EE1>REF(EE1,1);

长压:DRAWLINE(DD1,H,FF1,H,1),COLORGREEN;

AA2:=REF(L,P1)=LLV(L,2*P1+1);

BB2:=FILTER(AA2,P1);

CC2:=BACKSET(BB2,P1+1);

DD2:=FILTER(CC2,P1);

EE2:=BACKSET(ISLASTBAR,BARSLAST(DD2)+1);

FF2:=EE2>REF(EE2,1);

长支:DRAWLINE(DD2,L,FF2,L,1),COLORRED;

STICKLINE(C>=O,C,O,3,0),COLOR000045;

STICKLINE(C>=O,C,O,2.5,0),COLOR000065;

STICKLINE(C>=O,C,O,2,0),COLOR000085;

STICKLINE(C>=O,C,O,1.5,0),COLOR0000A5;

STICKLINE(C>=O,C,O,1,0),COLOR0000C5;

STICKLINE(C>=O,C,O,0.5,0),COLOR0000E5;

STICKLINE(C>=O,H,L,0,0),COLOR0000F5;

STICKLINE(C

STICKLINE(C

STICKLINE(C

STICKLINE(C

STICKLINE(C

STICKLINE(C

STICKLINE(C

高:=REFDATE(HHV(H,N),DATE);

低:=REFDATE(LLV(L,N),DATE);

H1:=高-(高-低)*0.191;

H2:=高-(高-低)*0.382;

H3:=高-(高-低)*0.5;

H4:=高-(高-低)*0.618;

H5:=高-(高-低)*0.809;

H6:=高-(高-低)*0.764;

STICKLINE(CURRBARSCOUNT=13,高,高,100,1),COLORGREEN;

STICKLINE(CURRBARSCOUNT=13,H1,H1,100,1),COLORCYAN;

STICKLINE(CURRBARSCOUNT=13,H2,H2,100,1),COLORCCCCCC;

DRAWTEXT(CURRBARSCOUNT=1,高,' 高'),COLORGREEN;

DRAWTEXT(CURRBARSCOUNT=1,H1,'0.809'),COLORCYAN;

DRAWTEXT(CURRBARSCOUNT=1,H2,' 0.618'),COLORFFFFFF;

DRAWTEXT(CURRBARSCOUNT=1,H3,' 中'),COLORYELLOW;

DRAWTEXT(CURRBARSCOUNT=1,H4,' 0.382'),COLORLIRED;

DRAWTEXT(CURRBARSCOUNT=1,H6,' 0.236'),COLORLIRED;

DRAWTEXT(CURRBARSCOUNT=1,H5,' 0.191'),COLORMAGENTA;

DRAWTEXT(CURRBARSCOUNT=1,低,' 低'),COLORRED;

STICKLINE(CURRBARSCOUNT=13,H3,H3,100,1),COLORYELLOW;

STICKLINE(CURRBARSCOUNT=13,H4,H4,100,1),COLORLIRED;

STICKLINE(CURRBARSCOUNT=13,H6,H6,100,1),COLORLIRED;

STICKLINE(CURRBARSCOUNT=13,H5,H5,100,1),COLORMAGENTA;

STICKLINE(CURRBARSCOUNT=13,低,低,100,1),COLORRED;

DRAWTEXT(CURRBARSCOUNT=25,高*0.99,CON2STR(高,2)),COLORGREEN;

DRAWTEXT(CURRBARSCOUNT=25,H1,CON2STR(H1,2)),COLORCYAN;

DRAWTEXT(CURRBARSCOUNT=25,H2,CON2STR(H2,2)),COLORFFFFFF;

DRAWTEXT(CURRBARSCOUNT=25,H3,CON2STR(H3,2)),COLORYELLOW;

DRAWTEXT(CURRBARSCOUNT=25,H6,CON2STR(H6,2)),COLORYELLOW;

DRAWTEXT(CURRBARSCOUNT=25,H4,CON2STR(H4,2)),COLORLIRED;

DRAWTEXT(CURRBARSCOUNT=25,H5,CON2STR(H5,2)),COLORMAGENTA;

DRAWTEXT(CURRBARSCOUNT=25,低*1.01,CON2STR(低,2)),COLORRED;

HDAY:=100;LDAY:=100;调点:=3;角度:=100;之字幅度:=25;横向调节:=1;

局部低点预选A:=BACKSET(LLV(L,5)

局部低点预选B:=BACKSET(局部低点预选A=0 AND REF(局部低点预选A,1)=1,2);

局部低点预选C:=IF(局部低点预选B=1 AND REF(局部低点预选B,1)=0,-1,0);

局部高点预选A:=BACKSET(HHV(H,5)>REF(HHV(H,4),1),4);

局部高点预选B:=BACKSET(局部高点预选A=0 AND REF(局部高点预选A,1)=1,2);

局部高点预选C:=IF(局部高点预选B=1 AND REF(局部高点预选B,1)=0,1,0);

缺口判断:=IF(L>REF(H,1),1,IF(H

距前高天:=BARSLAST(局部高点预选C=1);

距前低天:=BARSLAST(局部低点预选C=-1);

小值周期:=LOWRANGE(L);

大值周期:=TOPRANGE(H);

低保留AA:=IF(局部低点预选C=-1 AND REF(距前高天,1)>REF(距前低天,1) AND LLV(L,距前高天+1)

低保留AB:=IF(局部低点预选C=-1 AND REF(距前高天,1)<=REF(距前低天,1) AND (距前高天>=4 OR LLV(缺口判断,距前高天)=-1 OR LLV(L,距前低天+2)

低保留S:=IF((低保留AA=-1 OR 低保留AB=-1) AND L

预判:=IF((距前低天<4 AND HHV(缺口判断,距前低天)!=1) OR REF(低保留S,距前低天)=0,1,0);

判断:=IF(局部高点预选C=1 AND REF(距前低天,1)<=REF(距前高天,1) AND 预判=1 AND 大值周期>REF(小值周期,距前低天+1) AND 大值周期>REF(小值周期,距前低天) AND 大值周期>REF(大值周期,距前高天),1,0);

高保留A:=IF(局部高点预选C=1 AND REF(距前低天,1)>REF(距前高天,1) AND HHV(H,距前低天+1)>REF(HHV(H,距前低天+1),1),1,0);

高保留B:=IF(局部高点预选C=1 AND REF(距前低天,1)<=REF(距前高天,1) AND REF(低保留S,距前低天)=-1 AND (距前低天>=4 OR HHV(缺口判断,距前低天)=1),1,0);

高保留:=IF((高保留A=1 OR 高保留B=1 OR 判断=1) AND H>REF(L,距前低天+1),1,0);

预判A:=IF((距前高天<4 AND HHV(缺口判断,距前高天)!=1) OR REF(高保留,距前高天)=0,1,0);

判断A:=IF(局部低点预选C=-1 AND REF(距前高天,1)<=REF(距前低天,1) AND 预判A=1 AND

小值周期>REF(大值周期,距前高天+1) AND 小值周期>REF(大值周期,距前高天) AND 小值周期>REF(小值周期,距前低天),-1,0);

低保留A:=IF(局部低点预选C=-1 AND REF(距前高天,1)>REF(距前低天,1) AND LLV(L,距前高天+1)

低保留B:=IF(局部低点预选C=-1 AND REF(距前高天,1)<=REF(距前低天,1) AND (距前高天>=4 OR LLV(缺口判断,距前高天)=-1 OR 判断A=-1),-1,0);

低保留:=IF((低保留A=-1 OR 低保留B=-1) AND L

距前高天A:=BARSLAST(高保留=1);

距前低天A:=BARSLAST(低保留=-1);

预判X:=IF((距前低天A<4 AND HHV(缺口判断,距前低天A)!=1) OR REF(低保留,距前低天A)=0,1,0);

判断X:=IF(局部高点预选C=1 AND REF(距前低天A,1)<=REF(距前高天A,1) AND 预判X=1

AND 大值周期>REF(小值周期,距前低天A+1) AND 大值周期>REF(小值周期,距前低天A) AND

大值周期>REF(大值周期,距前高天A),1,0);

高保留XA:=IF(局部高点预选C=1 AND REF(距前低天A,1)>REF(距前高天A,1) AND HHV(H,距前低天A+1)>REF(HHV(H,距前低天A+1),1),1,0);

高保留XB:=IF(局部高点预选C=1 AND REF(距前低天A,1)<=REF(距前高天A,1) AND REF(低保留,距前低天A)=-1 AND (距前低天A>=4 OR HHV(缺口判断,距前低天A)=1),1,0);

高保留X:=IF((高保留XA=1 OR 高保留XB=1 OR 判断X=1) AND H>REF(L,距前低天A+1),1,0);

预判XA:=IF((距前高天A<4 AND HHV(缺口判断,距前高天A)!=1) OR REF(高保留XA,距前高天A)=0,1,0);

判断XA:=IF(局部低点预选C=-1 AND REF(距前高天A,1)<=REF(距前低天A,1) AND 预判XA=1 AND 小值周期>REF(大值周期,距前高天A+1) AND 小值周期>REF(大值周期,距前高天A)

AND 小值周期>REF(小值周期,距前低天A),-1,0);

低保留XA:=IF(局部低点预选C=-1 AND REF(距前高天A,1)>REF(距前低天A,1) AND LLV(L,距前高天A+1)

低保留XB:=IF(局部低点预选C=-1 AND REF(距前高天A,1)<=REF(距前低天A,1) AND (距前高天A>=4 OR LLV(缺口判断,距前高天A)=-1 OR 判断XA=-1),-1,0);

低保留X:=IF((低保留XA=-1 OR 低保留XB=-1) AND L

距前高天YA:=BARSLAST(高保留X=1);

距前低天YA:=BARSLAST(低保留X=-1);

预判YX:=IF((距前低天YA<4 AND HHV(缺口判断,距前低天YA)!=1) OR REF(低保留X,距前低天YA)=0,1,0);

判断YX:=IF(局部高点预选C=1 AND REF(距前低天YA,1)<=REF(距前高天YA,1) AND 预判YX=1 AND 大值周期>REF(小值周期,距前低天YA+1) AND 大值周期>REF(小值周期,距前低天YA) AND 大值周期>REF(大值周期,距前高天YA),1,0);

高保留YXA:=IF(局部高点预选C=1 AND REF(距前低天YA,1)>REF(距前高天YA,1) AND

HHV(H,距前低天YA+1)>REF(HHV(H,距前低天YA+1),1),1,0);

高保留YXB:=IF(局部高点预选C=1 AND REF(距前低天YA,1)<=REF(距前高天YA,1) AND

REF(低保留X,距前低天YA)=-1 AND (距前低天YA>=4 OR HHV(缺口判断,距前低天YA)=1),1,0);

高保留YX:=IF((高保留YXA=1 OR 高保留YXB=1 OR 判断YX=1) AND H>REF(L,距前低天YA+1),1,0);

预判YXA:=IF((距前高天YA<4 AND HHV(缺口判断,距前高天YA)!=1) OR REF(高保留YXA,距前高天YA)=0,1,0);

判断YXA:=IF(局部低点预选C=-1 AND REF(距前高天YA,1)<=REF(距前低天YA,1) AND 预判YXA=1 AND 小值周期>REF(大值周期,距前高天YA+1) AND 小值周期>REF(大值周期,距前高天YA) AND 小值周期>REF(小值周期,距前低天YA),-1,0);

低保留YXA:=IF(局部低点预选C=-1 AND REF(距前高天YA,1)>REF(距前低天YA,1) AND

LLV(L,距前高天YA+1)

低保留YXB:=IF(局部低点预选C=-1 AND REF(距前高天YA,1)<=REF(距前低天YA,1) AND (距

前高天YA>=4 OR LLV(缺口判断,距前高天YA)=-1 OR 判断YXA=-1),-1,0);

低保留YX:=IF((低保留YXA=-1 OR 低保留YXB=-1) AND L

AAAD:=IF(高保留YX=1 AND 低保留YX=-1 AND H>REF(H,REF(距前高天YA,1)+2),1,IF(高保留YX=1 AND 低保留YX=-1 AND L

极点保留:=IF(AAAD=0,高保留YX+低保留YX,AAAD);

XA:=DRAWLINE(极点保留=-1,L,REF(极点保留,1)=-1,REF(L,1),1);

XB:=DRAWLINE(极点保留=1,H,REF(极点保留,1)=1,REF(H,1),1);

XAS:=DRAWLINE(极点保留=-1,XB,REF(极点保留,1)=-1,REF(XB,1),1);

XBS:=DRAWLINE(极点保留=1,XA,REF(极点保留,1)=1,REF(XA,1),1);

XA45:=(XA+XAS)/2;

XB45:=(XB+XBS)/2;

XA63:=(XAS-XA)*3/4+XA;

XB63:=XB-(XB-XBS)*3/4;

TCH:=CONST(FINDHIGH(H,0,HDAY*10,1));

GTT:=CONST(BARSLAST(TCH=H))+1;

SX跌H:=CONST(IF(GTT=1,H,REF(H,GTT-1)));

BCL:=CONST(FINDLOW(L,0,LDAY*10,1));

DTT:=CONST(BARSLAST(BCL=L))+1;

SX涨L:=CONST(IF(DTT=1,L,REF(L,DTT-1)));

涨点:=BARSSINCE(BACKSET(ISLASTBAR,BARSLAST(L=SX涨L)+1));

跌点:=BARSSINCE(BACKSET(ISLASTBAR,BARSLAST(H=SX跌H)+1));

最低:=IF(调点=1,跌点,IF(调点=2,涨点,IF(调点=3,涨点,跌点)));

L斜率:=角度/IF(C<300,1000,10);

最高:=IF(调点=1,跌点,IF(调点=2,涨点,IF(调点=3,跌点,涨点)));

H斜率:=角度/IF(C<300,1000,10);

IM68:=((SX跌H-SX涨L)/6-(SX跌H-SX涨L)/8);

GH跌X:=SX跌H+(SX跌H-SX涨L)/8;

DL涨X:=SX涨L-(SX跌H-SX涨L)/8;

GTHT:=IF(DTT>GTT,DTT,GTT);

R:=ABS(GTT-DTT);

{DRAWTEXT(CURR=GTHT,SX涨L-IM68,'牛金画线'),COLOR8899AA;}

天线:=SX跌H;

地线:=SX涨L;

上斜线1:=IF(地线+CONST(L斜率*1.618)*最低>=地线,地线+CONST(L斜率*1.618)*最低,DRAWNULL);

上斜线2:=IF(地线+CONST(L斜率*1.000)*最低>=地线,地线+CONST(L斜率*1.000)*最低,DRAWNULL);

上斜线3:=IF(地线+CONST(L斜率*0.618)*最低>=地线,地线+CONST(L斜率*0.618)*最低,DRAWNULL);

上斜线4:=IF(地线+CONST(L斜率*0.382)*最低>=地线,地线+CONST(L斜率*0.382)*最低,DRAWNULL);

上斜线5:=IF(地线+CONST(L斜率*0.316)*最低>=地线,地线+CONST(L斜率*0.316)*最低,DRAWNULL);

上斜线6:=IF(地线+CONST(L斜率*0.250)*最低>=地线,地线+CONST(L斜率*0.250)*最低,DRAWNULL);

上斜线7:=IF(地线+CONST(L斜率*0.156)*最低>=地线,地线+CONST(L斜率*0.156)*最低,DRAWNULL);

上斜线8:=IF(地线+CONST(L斜率*0.092)*最低>=地线,地线+CONST(L斜率*0.092)*最低,DRAWNULL);

上斜线9:=IF(地线+CONST(L斜率*0.055)*最低>=地线,地线+CONST(L斜率*0.055)*最

低,DRAWNULL);

上9:IF(上斜线9<=天线*1.05,上斜线9,DRAWNULL)COLORRED;

上8:IF(上斜线8<=天线*1.05,上斜线8,DRAWNULL)COLORRED;

上7:IF(上斜线7<=天线*1.05,上斜线7,DRAWNULL)COLORRED;

上6:IF(上斜线6<=天线*1.05,上斜线6,DRAWNULL)COLORRED;

上5:IF(上斜线5<=天线*1.05,上斜线5,DRAWNULL)COLORYELLOW;

上4:IF(上斜线4<=天线*1.05,上斜线4,DRAWNULL)COLORRED;

上3:IF(上斜线3<=天线*1.05,上斜线3,DRAWNULL)COLORRED;

上2:IF(上斜线2<=天线*1.05,上斜线2,DRAWNULL)COLORRED;

上1:IF(上斜线1<=天线*1.05,上斜线1,DRAWNULL)COLORRED;

下斜线1:=IF(天线-CONST(H斜率*1.618)*最高<=天线,天线-CONST(H斜率*1.618)*最高,DRAWNULL);

下斜线2:=IF(天线-CONST(H斜率*1.000)*最高<=天线,天线-CONST(H斜率*1.000)*最高,DRAWNULL);

下斜线3:=IF(天线-CONST(H斜率*0.618)*最高<=天线,天线-CONST(H斜率*0.618)*最高,DRAWNULL);

下斜线4:=IF(天线-CONST(H斜率*0.382)*最高<=天线,天线-CONST(H斜率*0.382)*最高,DRAWNULL);

下斜线5:=IF(天线-CONST(H斜率*0.316)*最高<=天线,天线-CONST(H斜率*0.316)*最高,DRAWNULL);

下斜线6:=IF(天线-CONST(H斜率*0.250)*最高<=天线,天线-CONST(H斜率*0.250)*最高,DRAWNULL);

下斜线7:=IF(天线-CONST(H斜率*0.156)*最高<=天线,天线-CONST(H斜率*0.156)*最高,DRAWNULL);

下斜线8:=IF(天线-CONST(H斜率*0.092)*最高<=天线,天线-CONST(H斜率*0.092)*最高,DRAWNULL);

下斜线9:=IF(天线-CONST(H斜率*0.055)*最高<=天线,天线-CONST(H斜率*0.055)*最高,DRAWNULL);

下9:IF(下斜线9>=地线*0.95,下斜线9,DRAWNULL),COLORGREEN;

下8:IF(下斜线8>=地线*0.95,下斜线8,DRAWNULL),COLORGREEN;

下7:IF(下斜线7>=地线*0.95,下斜线7,DRAWNULL),COLORGREEN;

下6:IF(下斜线6>=地线*0.95,下斜线6,DRAWNULL),COLORGREEN;

下5:IF(下斜线5>=地线*0.95,下斜线5,DRAWNULL),COLORYELLOW;

下4:IF(下斜线4>=地线*0.95,下斜线4,DRAWNULL),COLORGREEN;

下3:IF(下斜线3>=地线*0.95,下斜线3,DRAWNULL),COLORGREEN;

下2:IF(下斜线2>=地线*0.95,下斜线2,DRAWNULL),COLORGREEN;

下1:IF(下斜线1>=地线*0.95,下斜线1,DRAWNULL),COLORGREEN;

斐波那契数字+MACD副图

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

DEA:EMA(DIF,9);

MACD:(DIF-DEA)*2 COLORSTICK;

TJ:=MACD>0;T:=MACD<0;

A:=LLV(MACD,50)=MACD;

DRAWICON(A AND FILTERX(A,20), MACD,1);

DRAWTEXT(BARSLAST(TJ)=1,MACD,'1'),COLORYELLOW;

DRAWTEXT(BARSLAST(TJ)=2,MACD,'2'),COLORYELLOW;

DRAWTEXT(BARSLAST(TJ)=3,MACD,'3'),COLORYELLOW;

DRAWTEXT(BARSLAST(TJ)=5,MACD,'5'),COLORYELLOW;

DRAWTEXT(BARSLAST(TJ)=8,MACD,'8'),COLORYELLOW;

DRAWTEXT(BARSLAST(TJ)=13,MACD,'13'),COLORYELLOW;

DRAWTEXT(BARSLAST(TJ)=21,MACD,'21'),COLORYELLOW;

DRAWTEXT(BARSLAST(TJ)=34,MACD,'34'),COLORYELLOW;

DRAWTEXT(BARSLAST(TJ)=55,MACD,'55'),COLORYELLOW;

DRAWTEXT(BARSLAST(T)=1,MACD,'1'),COLORGREEN;

DRAWTEXT(BARSLAST(T)=2,MACD,'2'),COLORGREEN;

DRAWTEXT(BARSLAST(T)=3,MACD,'3'),COLORGREEN;

DRAWTEXT(BARSLAST(T)=5,MACD,'5'),COLORGREEN;

DRAWTEXT(BARSLAST(T)=8,MACD,'8'),COLORGREEN;

DRAWTEXT(BARSLAST(T)=13,MACD,'13'),COLORGREEN;

DRAWTEXT(BARSLAST(T)=21,MACD,'21'),COLORGREEN;

DRAWTEXT(BARSLAST(T)=34,MACD,'34'),COLORGREEN;

DRAWTEXT(BARSLAST(T)=55,MACD,'55'),COLORGREEN;

时间窗口划线主图指标

N1:=6;

重心:(2*C+H+L)/4,COLOR00FFFF,LINETHICK0;

SJ:=WMA((重心-LLV(L,5))/(HHV(H,5)-LLV(L,5))*100,2);

ZJ:=WMA(0.618*REF(SJ,1)+0.382*SJ,2);

DRAWTEXT(CROSS(SJ,ZJ) AND SJ<30,L-0.1,'←低吸'),COLOR00FF00;

DRAWTEXT(CROSS(ZJ,SJ) AND SJ>70,H+0.1,'←高抛'),COLOR0077FF;

A1:=EMA(C,14)COLORWHITE,LINETHICK1;

A1X:=(A1-REF(A1,1))/REF(A1,1)*100,NODRAW;

突破:REF(EMA(C,14),1),NODRAW;

距离:(C-突破)/突破*100,NODRAW;

出击:IF(A1X>=0,REF(EMA(C,14),BARSLAST(CROSS(A1X,0))+1),DRAWNULL)COLORRED,LINETHICK1;

休假:IF(A1X<0,REF(EMA(C,14),BARSLAST(CROSS(0,A1X))+1),DRAWNULL)COLORGREEN,LINETHICK1;

涨幅:IF(A1X>=0,(C-出击)/出击*100,DRAWNULL)NODRAW;

跌幅:IF(A1X<0,(C-休假)/休假*100,DRAWNULL)NODRAW;

♂10%:IF(H>=出击*1.1,出击*1.1,DRAWNULL),COLORRED,POINTDOT,LINETHICK4;

♂20%:IF(H>=出击*1.2,出击*1.2,DRAWNULL),COLORRED,POINTDOT,LINETHICK4;

♂30%:IF(H>=出击*1.3,出击*1.3,DRAWNULL),COLORRED,POINTDOT,LINETHICK4;

♀Ⅰ:IF(L<休假*0.9,休假*0.9,DRAWNULL),COLORGREEN,POINTDOT,LINETHICK4;

♀Ⅱ:IF(L<休假*0.8,休假*0.8,DRAWNULL),COLORGREEN,POINTDOT,LINETHICK4;

♀Ⅲ:IF(L<休假*0.7,休假*0.7,DRAWNULL),COLORGREEN,POINTDOT,LINETHICK4;

STICKLINE(CROSS(A1X,0),C,O,2,0)COLORYELLOW;

STICKLINE(CROSS(0,A1X),C,O,2,0)COLORGREEN;

STICKLINE(CROSS(A1X,0)OR

CROSS(0,A1X),REF(EMA(C,14),1),REF(EMA(C,14),1)*0.998,2,0)COLORWHITE;

STICKLINE(ISLASTBAR,REF(EMA(C,14),1),REF(EMA(C,14),1)*0.998,5,0)COLORWHITE;

A11:DRAWLINE(HIGH>=HHV(HIGH,5),HIGH,LOW<=LLV(LOW,5),LOW,0);

B1:DRAWLINE(LOW<=LLV(LOW,5),LOW,HIGH>=HHV(HIGH,5),HIGH,0);

A2:DRAWLINE(HIGH>=HHV(HIGH,13),HIGH,LOW<=LLV(LOW,13),LOW,0),COLORCYAN;

B2:DRAWLINE(LOW<=LLV(LOW,13),LOW,HIGH>=HHV(HIGH,13),HIGH,0);

A3:DRAWLINE(HIGH>=HHV(HIGH,34),HIGH,LOW<=LLV(LOW,34),LOW,0);

B3:DRAWLINE(LOW<=LLV(LOW,34),LOW,HIGH>=HHV(HIGH,34),HIGH,0);

A4:DRAWLINE(HIGH>=HHV(HIGH,55),HIGH,LOW<=LLV(LOW,55),LOW,0);

B4:DRAWLINE(LOW<=LLV(LOW,55),LOW,HIGH>=HHV(HIGH,55),HIGH,0);

MTM:=C-REF(C,1);

ZLGJ:=100*EMA(EMA(MTM,N1),N1)/EMA(EMA(ABS(MTM),N1),N1);

买1:=IF(LLV(ZLGJ,2)=LLV(ZLGJ,7) AND COUNT(ZLGJ<0,2)

CROSS(ZLGJ,MA(ZLGJ,2)),1,0);

卖1:=IF(HHV(ZLGJ,2)=HHV(ZLGJ,7) AND COUNT(ZLGJ>50,2)

AND

AND

CROSS(MA(ZLGJ,2),ZLGJ),1,0);

DRAWICON(FILTER(买1=1,5),LOW*0.99,7),COLORRED;

STICKLINE(FILTER(买1=1,5),C,O,1,0),COLORRED;

DRAWICON(FILTER(卖1=1,1),H*1.01,8),COLOR00FF00;

STICKLINE(FILTER(卖1=1,1),C,O,1,0),COLOR00FF00;

RSV:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;

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

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

J:=3*K-2*D;

BDGD:=HHV(J,2)=HHV(J,8) AND J>80;

注意:=IF(CROSS(REF(J-0.01,1),J) AND REF(BDGD,1),1,0);

DRAWTEXT(注意 AND 卖1<1,HIGH*1.01,'J'),COLOR00FF00,LINETHICK3;

STICKLINE(注意 AND 卖1<1,O,CLOSE,1,0),COLORYELLOW,LINETHICK2;

时间窗口01:=FILTER(IF(HHVBARS(HIGH,5),0,H),5),COLORFFFF00;

DRAWTEXT(时间窗口01,HIGH*0.99,'5');

时间窗口02:=FILTER(IF(LLVBARS(LOW,5),0,L),5),COLOR00FFFF;

DRAWTEXT(时间窗口02,LOW*0.99,'5');

时间窗口1:=FILTER(IF(HHVBARS(HIGH,13),0,1),13),COLOR00FF00;

DRAWTEXT(时间窗口1,HIGH*0.99,'13');

时间窗口2:=FILTER(IF(LLVBARS(LOW,13),0,1),13),COLOR0000FF;

DRAWTEXT(时间窗口2,LOW*0.99,'13');

时间窗口3:=FILTER(IF(HHVBARS(HIGH,34),0,2),34),COLOR55FF55;

DRAWTEXT(时间窗口3,HIGH*0.99,'34');

时间窗口4:=FILTER(IF(LLVBARS(LOW,34),0,2),34),COLOR5555FF;

DRAWTEXT(时间窗口4,LOW*0.99,'34');

时间窗口5:=FILTER(IF(HHVBARS(HIGH,55),0,30),55),COLOR99FF99;

DRAWTEXT(时间窗口5,HIGH*0.99,'55');

时间窗口6:=FILTER(IF(LLVBARS(LOW,55),0,30),55),COLORDD00FF;

DRAWTEXT(时间窗口6,LOW*0.99,'55');

时间窗口7:=FILTER(IF(HHVBARS(HIGH,89),0,40),89),COLORDDFFDD;

DRAWTEXT(时间窗口7,HIGH*0.99,'89');

时间窗口8:=FILTER(IF(LLVBARS(LOW,89),0,40),89),COLOR0055FF;

DRAWTEXT(时间窗口8,LOW*0.99,'89');

时间窗口9:=FILTER(IF(HHVBARS(HIGH,144),0,50),144),COLORDDFF00;

DRAWTEXT(时间窗口9,HIGH*0.99,'144');

时间窗口10:=FILTER(IF(LLVBARS(LOW,144),0,50),144),COLOR9955FF;

DRAWTEXT(时间窗口10,LOW*0.99,'144');

时间窗口11:=FILTER(IF(HHVBARS(HIGH,233),0,60),233),COLORDDFFFF;

DRAWTEXT(时间窗口11,HIGH*0.99,'233');

时间窗口12:=FILTER(IF(LLVBARS(LOW,233),0,60),233),COLORFF55FF;

DRAWTEXT(时间窗口12,LOW*0.99,'233');

全仓买入选股公式十主图源码

全仓买入:((CROSS(MA(CLOSE,5),MA(CLOSE,30))) AND CLOSE

主图源码

上线:=SMA(C,6.5,1);

下线:=SMA(C,13.5,1);

上线1:=SMA(C,3,1);

下线1:=SMA(C,8,1);

DRAWTEXT( CROSS(上线,下线),LOW *0.98,'◎全仓买' ),COLOR00FF00;

DRAWTEXT(CROSS(下线1,上线1),H*1.02,'●清仓'),COLORYELLOW;

买卖线:MA(CLOSE,5),COLORGREEN,LINETHICK2;

买:IF(买卖线>REF(买卖线,1),买卖线,DRAWNULL),COLORRED,LINETHICK2;

卖:IF(买卖线

BBI:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;

UPR:=BBI+3*STD(BBI,13),LINETHICK2;

DWN:=BBI-3*STD(BBI,13);

安全:=MA(CLOSE,60),LINETHICK2;

LC:=REF(CLOSE,1);

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

DRAWTEXT( CROSS(82,RSI) , HIGH*1.02,'◆减仓') ,COLORFF9966,LINETHICK2;

A7:=(2*C+H+L)/4;

操作1:=MA(A7,5)*1.03,LINETHICK2;

操作2:=MA(A7,5)*0.97,LINETHICK2;

VAR1:LLV(A7,21);

VAR2:HHV(A7,21);

SK:=EMA((A7-VAR1)/(VAR2-VAR1)*100,7);

SD:=EMA(0.667*REF(SK,1)+0.333*SK,5);

DRAWTEXT(IF(COUNT(CLOSE6/10 AND VOL>=1.5*MA(VOL,5) AND

COUNT(SK>=SD,3) AND REF(LOW,1)=LLV(LOW,120),1,0),LOW*0.98,'◇买进') ,COLOR0099FF;

DRAWTEXT(IF(COUNT(CLOSE6/10 AND

COUNT(SK>SD,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*0.98,'◇买进') ,COLORYELLOW;

D:=MA(CLOSE,80)-MA(CLOSE,10)/3;

DRAWTEXT(IF(CLOSEMA(VOL,5)/240 AND CLOSE>REF(CLOSE,1)*1.08

AND CLOSE

VARE1:=EMA(C,3);

VARE2:=EMA(C,5);

VARE3:=EMA(C,10);

VAR4:=EMA(C,20);

VAR5:=EMA(C,30);

买进价:=((C-REF(MA(C,6),1))/6+MA(C,6))*1.004;

买进条件:=CROSS(C,买进价) AND 买进价>REF(买进价,1);

STICKLINE(买进条件,H,L,0.5,1),COLORRED,LINETHICK2;STICKLINE(买进件,O,C,6,0),COLORRED,LINETHICK2;

加码价:=((C-REF(MA(C,18),1))/18+MA(C,18))*1.004;

加码条件:=CROSS(C,加码价) AND 加码价>REF(加码价,1);

STICKLINE(加码条件,H,L,0.5,1),COLORYELLOW,LINETHICK2;STICKLINE(加码件,O,C,6,0),COLORYELLOW,LINETHICK2;

条条

趋势拐点

MMM:=MA(CLOSE,20);

DRAWTEXT((CLOSE

DRAWTEXT((CLOSE>MMM),MMM,'*'),COLOR0000FF,LINETHICK5;

V1:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);

V2:=(1-7/100)*(DMA(CLOSE,V1));

V3:=(1+7/100)*(DMA(CLOSE,V1));

V5:=MA((LOW+HIGH+CLOSE)/3,5);

支撑:REFDATE(V2,DATE),POINTDOT,LINETHICK3,COLORCC66FF;

阻力:REFDATE(V3,DATE),POINTDOT,LINETHICK3,COLORGREEN;

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

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

VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,1) AND VAR1;

STICKLINE(VAR19,L,L*0.98,5,0),COLORYELLOW;

VAR1A:=REF(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR

VAR8 OR VAR9 OR VARA OR VARB OR VARC,1) AND VARD;

STICKLINE(VAR1A,H*1.02,H,5,0),COLORRED;

DRAWTEXT(FILTER(VAR19=1,5),LOW,'买进'),COLORFF00FF;

DRAWICON(FILTER(VAR19=1,5),LOW,13);

DRAWTEXT(FILTER(VAR1A=1,5),HIGH,'逃顶'),COLOR00FF00;

DRAWICON(FILTER(VAR1A=1,5),HIGH,14);

MA5:=MA(C,5),COLORWHITE;

MA10:=MA(C,10),NODRAW;

MA30:MA(C,30),NODRAW;

五日乖离率:=(C-MA5)/MA5*100;

BB5:=ATAN((MA5/REF(MA5,1)-1)*100)*180/3.1416;

IF(BB5>30 AND MA5>REF(MA5,1), MA5,DRAWNULL),LINETHICK1,COLORRED;

BB10:=ATAN((MA10/REF(MA10,1)-1)*100)*180/3.1416;

IF(BB5<0 AND MA5

DD5:=MA5

IF(DD5,MA5,DRAWNULL),COLOR00FF00;

X:=(3*C+L+O+H)/6;

多空线:=(20*X+19*REF(X,1)+18*REF(X,2)+17*REF(X,3)+16*REF(X,4)+15*REF(X,5)+14*REF(X,6)

+13*REF(X,7)+12*REF(X,8)+11*REF(X,9)+10*REF(X,10)+9*REF(X,11)+8*REF(X,12)

+7*REF(X,13)+6*REF(X,14)+5*REF(X,15)+4*REF(X,16)+3*REF(X,17)+2*REF(X,18)+

REF(X,20))/210,COLORFF00FF,POINTDOT,LINETHICK1;

{用法:黄托底买进,绿压顶买出。}

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

A6:=EMA(A5,9);

A7:=(A5<-0.1 AND A5>A6);

财神:IF(A7,LLV(L,21),DRAWNULL)COLORRED,CIRCLEDOT;

{KDJ}

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;

金叉:=CROSS(J,D);

死叉:=CROSS(D,J);

买1:=(VAR14 OR VAR15) AND VAR11;

买2:=(VAR14 OR VAR15) AND VAR4;

买3:=(VAR14 OR VAR15) AND VAR2;

买4:=(VAR2 AND VAR11) OR (VAR4 AND VAR11);

买5:=(金叉 AND VAR4) OR (金叉 AND VAR2) OR (金叉 AND VAR11);

{蓝}

STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,3,0),COLORFF7700;

STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,2.2,0),COLORFF9900;

STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,1.5,0),COLORFFBB00;

STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,0.5,0),COLORCYAN;

{绿}

STICKLINE(VAR3,OPEN,(OPEN+CLOSE)/2,3,0),COLOR009900;

STICKLINE(VAR3,OPEN,(OPEN+CLOSE)/2,2.2,0),COLOR00BB00;

STICKLINE(VAR3,OPEN,(OPEN+CLOSE)/2,1.5,0),COLOR00DD00;

STICKLINE(VAR3,OPEN,(OPEN+CLOSE)/2,0.5,0),COLOR00FF00;

{灰}

STICKLINE(VAR4,OPEN,(OPEN+CLOSE)/2,3,0),COLOR999999;

STICKLINE(VAR4,OPEN,(OPEN+CLOSE)/2,2.2,0),COLORBBBBBB;

STICKLINE(VAR4,OPEN,(OPEN+CLOSE)/2,1.5,0),COLORDDDDDD;

STICKLINE(VAR4,OPEN,(OPEN+CLOSE)/2,0.5,0),COLORFFFFFF;

STICKLINE(金叉,OPEN,CLOSE,0.8,0),COLORYELLOW;

STICKLINE(死叉,OPEN,CLOSE,0.10,2),COLORWHITE;

DRAWICON(VAR16,LOW-0.02,7);

DRAWICON(买1 OR 买2 OR 买3 OR 买4 OR 买5,LOW-0.01,13);

DRAWICON(死叉 OR VAR12 OR CROSS(40,VAR9),HIGH+0.01,14);

VARR1:=(2*CLOSE+HIGH+LOW+OPEN)/5;

AA1:

(EMA(VARR1,1)+EMA(VARR1,2)+EMA(VARR1,3)+EMA(VARR1,4))/4,COLORCYAN,LINETHICK2;

W1:=(EMA(VARR1,1)+EMA(VARR1,2)+EMA(VARR1,3)+EMA(VARR1,4))/4;

AA2: EMA(AA1,2),COLORCYAN,LINETHICK2;

W2:=EMA(AA1,2);

AA3: EMA(AA2,2),COLORCYAN,LINETHICK1;

W3:=EMA(AA2,2);

AA4: EMA(AA3,2),COLORCYAN,LINETHICK1;

W4:=EMA(AA3,2);

AA5: EMA(AA4,2),COLORCYAN,LINETHICK1;

W5:=EMA(AA4,2);

AA6: EMA(AA5,2),COLORCYAN,LINETHICK1;

W6:= EMA(AA5,2);

AA7: EMA(AA6,2),COLORCYAN,LINETHICK1;

W7:= EMA(AA6,2);

IF(W1>REF(W1,1),AA1,DRAWNULL),COLORRED,LINETHICK2;

IF(W2>REF(W2,1), AA2,DRAWNULL),COLORRED,LINETHICK2;

IF(W2>REF(W3,1), AA3,DRAWNULL),COLORRED,LINETHICK1;

IF(W2>REF(W4,1), AA4,DRAWNULL),COLORRED,LINETHICK1;

IF(W2>REF(W5,1), AA5,DRAWNULL),COLORRED,LINETHICK1;

IF(W2>REF(W6,1), AA6,DRAWNULL),COLORRED,LINETHICK1;

IF(W2>REF(W7,1), AA7,DRAWNULL),COLORRED,LINETHICK1;

MA34:MA(CLOSE,34);

MA62:MA(CLOSE,62);

MA120:MA(CLOSE,120);

拐点买

ZZ:=(O+H+L)/3;

YC:=(H+L)/2;

YCHJX:=(EMA(ZZ,4))+(YC-REF(ZZ,3))/4;

今日买点:EMA(ZZ,3),COLORYELLOW,LINETHICK0;

明日买点:YCHJX,LINETHICK0;

昨测今日买点:REF(YCHJX,1),LINETHICK0;

FF:=EMA(CLOSE,3);

MA15:=EMA(CLOSE,21);

DRAWTEXT(CROSS(MA15,FF),(HIGH * 1.02),'←拐点卖'),COLOR00FF00;

DRAWTEXT(CROSS(FF,MA15),(LOW * 0.99),'←拐点买'),COLOR00FFFF;

农历节气窗口

立春:=FILTER(MONTH=2 AND (DAY=3 OR DAY=5 ),2);

雨水:=FILTER(MONTH=2 AND (DAY=18 OR DAY=20),2);

惊蛰:=FILTER(MONTH=3 AND (DAY=5 OR DAY=7 ),2);

春分:=FILTER(MONTH=3 AND (DAY=20 OR DAY=22),2);

清明:=FILTER(MONTH=4 AND (DAY=4 OR DAY=6 ),2);

谷雨:=FILTER(MONTH=4 AND (DAY=19 OR DAY=21),2);

立夏:=FILTER(MONTH=5 AND (DAY=6 OR DAY=8 ),2);

小满:=FILTER(MONTH=5 AND (DAY=20 OR DAY=22),2);

芒种:=FILTER(MONTH=6 AND (DAY=5 OR DAY=7 ),2);

夏至:=FILTER(MONTH=6 AND (DAY=20 OR DAY=22),2);

小暑:=FILTER(MONTH=7 AND (DAY=6 OR DAY=8 ),2);

大署:=FILTER(MONTH=7 AND (DAY=22 OR DAY=24),2);

立秋:=FILTER(MONTH=8 AND (DAY=7 OR DAY=9 ),2);

处暑:=FILTER(MONTH=8 AND (DAY=22 OR DAY=24),2);

白露:=FILTER(MONTH=9 AND (DAY=7 OR DAY=9 ),2);

秋分:=FILTER(MONTH=9 AND (DAY=22 OR DAY=24),2);

寒露:=FILTER(MONTH=10 AND (DAY=7 OR DAY=9 ),2);

霜降:=FILTER(MONTH=10 AND (DAY=22 OR DAY=24),2);

立冬:=FILTER(MONTH=11 AND (DAY=7 OR DAY=9 ),2);

小雪:=FILTER(MONTH=11 AND (DAY=22 OR DAY=24),2);

大雪:=FILTER(MONTH=12 AND (DAY=6 OR DAY=8 ),2);

冬至:=FILTER(MONTH=12 AND (DAY=21 OR DAY=23),2);

小寒:=FILTER(MONTH=1 AND (DAY=5 OR DAY=7 ),2);

大寒:=FILTER(MONTH=1 AND (DAY=19 OR DAY=21),2);

DRAWTEXT(立春,HIGH*1.02,'立春'),COLORGREEN;

DRAWTEXT(雨水,HIGH*1.02,'雨水'),COLORGREEN;

DRAWTEXT(惊蛰,HIGH*1.02,'惊蛰'),COLORGREEN;

DRAWTEXT(春分,HIGH*1.02,'春分'),COLORGREEN;

DRAWTEXT(清明,HIGH*1.02,'清明'),COLORGREEN;

DRAWTEXT(谷雨,HIGH*1.02,'谷雨'),COLORGREEN;

DRAWTEXT(立夏,HIGH*1.02,'立夏'),COLORMAGENTA;

DRAWTEXT(小满,HIGH*1.02,'小满'),COLORMAGENTA;

DRAWTEXT(芒种,HIGH*1.02,'芒种'),COLORMAGENTA;

DRAWTEXT(夏至,HIGH*1.02,'夏至'),COLORMAGENTA;

DRAWTEXT(小暑,HIGH*1.02,'小暑'),COLORMAGENTA;

DRAWTEXT(大署,HIGH*1.02,'大署'),COLORMAGENTA;

DRAWTEXT(立秋,HIGH*1.02,'立秋'),COLORYELLOW;

DRAWTEXT(处暑,HIGH*1.02,'处暑'),COLORYELLOW;

DRAWTEXT(白露,HIGH*1.02,'白露'),COLORYELLOW;

DRAWTEXT(秋分,HIGH*1.02,'秋分'),COLORYELLOW;

DRAWTEXT(寒露,HIGH*1.02,'寒露'),COLORYELLOW;

DRAWTEXT(霜降,HIGH*1.02,'霜降'),COLORYELLOW;

DRAWTEXT(立冬,HIGH*1.02,'立冬'),COLORWHITE;

DRAWTEXT(小雪,HIGH*1.02,'小雪'),COLORWHITE;

DRAWTEXT(大雪,HIGH*1.02,'大雪'),COLORWHITE;

DRAWTEXT(冬至,HIGH*1.02,'冬至'),COLORWHITE;

DRAWTEXT(小寒,HIGH*1.02,'小寒'),COLORWHITE;

DRAWTEXT(大寒,HIGH*1.02,'大寒'),COLORWHITE;


本文标签: 均线 位置 指标 显示 公式