请选择 进入手机版 | 继续访问电脑版
查看: 574|回复: 27

波段买卖

[复制链接]

新浪微博达人勋

五级海风会员

发表于 2017-4-20 14:06 | 显示全部楼层 |阅读模式

马上注册海风会员,享受更多便捷服务!

您需要 登录 才可以下载或查看,没有帐号?注册会员 新浪微博登陆

x
AA:=HHV(C,13);
BB:=LLV(C,13);
0,POINTDOT;

DD:C-AA,COLORF00FF0;
KK:  BB-C,COLORGREEN;
黄金广告位招租
回复

使用道具 举报

新浪微博达人勋

五级海风会员

 楼主| 发表于 2017-4-26 23:48 | 显示全部楼层

VAR12:=(HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9))*100;
K: SMA(VAR12,5,1),COLORGREEN,LINETHICK2;
D: SMA(K,3,1),COLORYELLOW;
J:1*(3*D-2*K),COLORFF00FF;
80 ,POINTDOT;
60 ,COLOREEDD00,POINTDOT,LINETHICK3;
40 ,POINTDOT,LINETHICK2;
20 ,COLORWHITE,POINTDOT;

DRAWTEXT(J>50 AND CROSS(J,K),45,'买'),COLORRED;
DRAWTEXT(J<50  AND CROSS(K,J),45,'卖'), COLOR00FF00;
回复 支持 反对

使用道具 举报

新浪微博达人勋

五级海风会员

 楼主| 发表于 2017-4-27 07:43 | 显示全部楼层

VAR12:=(HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9))*100;
K: SMA(VAR12,5,1),COLORGREEN,LINETHICK2;
D: SMA(K,3,1),COLORYELLOW;
J:1*(3*D-2*K),COLORFF00FF;
80 ,POINTDOT,LINETHICK2;
50 ,COLOREEDD00,POINTDOT,LINETHICK3;
20 ,COLORWHITE,POINTDOT,LINETHICK2;

DRAWTEXT(J>50 AND CROSS(J,K),45,'买'),COLORRED;
DRAWTEXT(J<50  AND CROSS(K,J),45,'卖'), COLOR00FF00;
回复 支持 反对

使用道具 举报

新浪微博达人勋

五级海风会员

 楼主| 发表于 2017-4-27 12:07 | 显示全部楼层
VAR12:=(HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9))*100;
K: SMA(VAR12,3,1),COLORGREEN,LINETHICK2;
D: SMA(K,3,1),COLORYELLOW;
J:1*(3*D-2*K),COLORFF00FF;
80 ,POINTDOT,LINETHICK1;
50 ,POINTDOT,COLOREEDD00,LINETHICK4;
20 ,COLORWHITE,POINTDOT;

   DRAWTEXT(J>50 AND CROSS(J,K),45,'买'),COLORRED;
DRAWTEXT(J<50  AND CROSS(K,J),45,'卖'), COLOR00FF00;



VAR1:=SAR(20,2,20);   
S:IF(VAR1>C,VAR1/100000+50,DRAWNULL),COLORGREEN,CIRCLEDOT;
X:IF(VAR1<C,VAR1/100000+50,DRAWNULL),COLORRED,CIRCLEDOT;

回复 支持 反对

使用道具 举报

新浪微博达人勋

五级海风会员

 楼主| 发表于 2017-4-27 20:25 | 显示全部楼层

80 ,POINTDOT,LINETHICK1;
50 ,POINTDOT,COLOREEDD00,LINETHICK4;
20 ,COLORWHITE,POINTDOT;

  



VAR1:=SAR(20,2,20);   
S:IF(VAR1>C,VAR1/100000+50,DRAWNULL),COLORGREEN,CIRCLEDOT;
X:IF(VAR1<C,VAR1/100000+50,DRAWNULL),COLORRED,CIRCLEDOT;

T4:=100*(C-LLV(L,N))/(HHV(H,N)-LLV(L,N)),COLOR55FFFF,LINETHICK2;
       TJZB4:=SMA(T4,3,1),COLOREEDD00,LINETHICK1;
K: SMA( T4,3,1),COLORFF00FF,LINETHICK1;
D: SMA(K,3,1),COLORYELLOW;
J:1*(3*D-2*K),COLORGREEN;
DRAWTEXT(J>60 AND CROSS(J,K),45,'卖'),COLOR00FF00;
DRAWTEXT(J<40  AND CROSS(K,J),45,'买'),COLORRED;
    STICKLINE(TJZB4>=50,110,100,4,1),COLORFF00FF;
    STICKLINE(TJZB4>65,110,100,4,1),COLORRED;

       STICKLINE(TJZB4>70 AND C>REF(O,1),110,100,4,1),COLORRED;
      STICKLINE(TJZB4>85 AND C>REF(O,1),110,100,4,0),COLORRED;
       STICKLINE(TJZB4<50,110,100,4,1),COLOR00EE00;
STICKLINE(TJZB4<25,110,100,4,1),COLOR00EE00;

      
回复 支持 反对

使用道具 举报

新浪微博达人勋

五级海风会员

 楼主| 发表于 2017-4-27 21:04 | 显示全部楼层
80 ,POINTDOT,LINETHICK1;
60 ,POINTDOT,COLOREEDD00,LINETHICK2;
20 ,COLORWHITE,POINTDOT;
VAR1:=SAR(20,2,20);   
S:IF(VAR1>C,VAR1/100000+110,20),COLORGREEN,CIRCLEDOT;
X:IF(VAR1<C,VAR1/100000+110,20),COLORRED,CIRCLEDOT;

T4:=100*(C-LLV(L,N))/(HHV(H,N)-LLV(L,N)),COLOR55FFFF,LINETHICK2;
       TJZB4:=SMA(T4,3,1),COLOREEDD00,LINETHICK1;
K: SMA( T4,3,1),COLORFF00FF,LINETHICK1;
D: SMA(K,3,1),COLORYELLOW;
J:1*(3*D-2*K),COLORGREEN;
DRAWTEXT(J>60 AND CROSS(J,K),45,'卖'),COLOR00FF00;
DRAWTEXT(J<40  AND CROSS(K,J),45,'买'),COLORRED;
    STICKLINE(TJZB4>=60,110,100,4,1),COLORFF00FF;
    STICKLINE(TJZB4>65,110,100,4,1),COLORRED;

       STICKLINE(TJZB4>70 AND C>REF(O,1),110,100,4,1),COLORRED;
      STICKLINE(TJZB4>85 AND C>REF(O,1),110,100,4,0),COLORRED;
       STICKLINE(TJZB4<60,110,100,4,1),COLOR00EE00;
STICKLINE(TJZB4<25,110,100,4,1),COLOR00EE00;
回复 支持 反对

使用道具 举报

新浪微博达人勋

五级海风会员

 楼主| 发表于 2017-4-27 21:06 | 显示全部楼层
80 ,POINTDOT,LINETHICK1;
50 ,POINTDOT,COLOREEDD00,LINETHICK4;
20 ,COLORWHITE,POINTDOT;

VAR1:=SAR(20,2,20);   
S:IF(VAR1>C,VAR1/100000+50,DRAWNULL),COLORGREEN,CIRCLEDOT;
X:IF(VAR1<C,VAR1/100000+50,DRAWNULL),COLORRED,CIRCLEDOT;

T4:=100*(C-LLV(L,N))/(HHV(H,N)-LLV(L,N)),COLOR55FFFF,LINETHICK2;
       TJZB4:=SMA(T4,3,1),COLOREEDD00,LINETHICK1;
K: SMA( T4,3,1),COLORFF00FF,LINETHICK1;
D: SMA(K,3,1),COLORYELLOW;
J:1*(3*D-2*K),COLORGREEN;
DRAWTEXT(J>60 AND CROSS(J,K),45,'卖'),COLOR00FF00;
DRAWTEXT(J<40  AND CROSS(K,J),45,'买'),COLORRED;
    STICKLINE(TJZB4>=55,110,100,4,1),COLORFF00FF;
    STICKLINE(TJZB4>65,110,100,4,1),COLORRED;

       STICKLINE(TJZB4>70 AND C>REF(O,1),110,100,4,1),COLORRED;
      STICKLINE(TJZB4>85 AND C>REF(O,1),110,100,4,0),COLORRED;
       STICKLINE(TJZB4<55,110,100,4,1),COLOR00EE00;
STICKLINE(TJZB4<25,110,100,4,1),COLOR00EE00;
回复 支持 反对

使用道具 举报

新浪微博达人勋

五级海风会员

 楼主| 发表于 2017-4-30 12:14 | 显示全部楼层
80 ,POINTDOT,LINETHICK1;
60 ,POINTDOT,COLOREEDD00,LINETHICK2;

VAR1:=SAR(20,2,20);   
S:IF(VAR1>C,VAR1/100000+105,20),COLORGREEN,CIRCLEDOT;
X:IF(VAR1<C,VAR1/100000+105,20),COLORRED,CIRCLEDOT;

T4:=100*(C-LLV(L,N))/(HHV(H,N)-LLV(L,N)),COLOR55FFFF,LINETHICK2;
       TJZB4:=SMA(T4,3,1),COLOREEDD00,LINETHICK1;
K: SMA( T4,3,1),COLORFF00FF,LINETHICK1;
D: SMA(K,3,1),COLORYELLOW;
J:1*(3*D-2*K),COLORGREEN;
DRAWTEXT(J>60 AND CROSS(J,K),45,'卖'),COLOR00FF00;
DRAWTEXT(J<40  AND CROSS(K,J),45,'买'),COLORRED;
    STICKLINE(TJZB4>=60,115,110,4,1),COLORFF00FF;
    STICKLINE(TJZB4>65,115,110,4,1),COLORRED;

       STICKLINE(TJZB4>70 AND C>REF(O,1),115,110,4,1),COLORRED;
      STICKLINE(TJZB4>85 AND C>REF(O,1),115,110,4,0),COLORRED;
       STICKLINE(TJZB4<60,115,110,4,1),COLOR00EE00;
STICKLINE(TJZB4<25,115,110,4,1),COLOR00EE00;
IF(VAR1>C,VAR1/100000+20,20),COLORGREEN,CIRCLEDOT;
20 ,COLORWHITE,POINTDOT;
回复 支持 反对

使用道具 举报

新浪微博达人勋

五级海风会员

 楼主| 发表于 2017-5-1 13:02 | 显示全部楼层
X:=SAR(10,2,20);
PARTLINE(C>X,X),COLORMAGENTA,CIRCLEDOT,LINETHICK3;
PARTLINE(C<X,X),COLORGREEN,CIRCLEDOT,LINETHICK3;
回复 支持 反对

使用道具 举报

新浪微博达人勋

五级海风会员

 楼主| 发表于 2017-5-1 13:09 | 显示全部楼层
AA:=80 ,POINTDOT,LINETHICK1;
50 ,POINTDOT,COLOREEDD00,LINETHICK2;

VAR1:=SAR(10,2,20);   
S:IF(VAR1>C,VAR1/100000+80,20),COLORGREEN,CIRCLEDOT;
X:IF(VAR1<C,VAR1/100000+80,20),COLORRED,CIRCLEDOT;

T4:=100*(C-LLV(L,N))/(HHV(H,N)-LLV(L,N)),COLOR55FFFF,LINETHICK2;
       TJZB4:=SMA(T4,3,1),COLOREEDD00,LINETHICK1;
K: SMA( T4,3,1),COLORFF00FF,LINETHICK1;
D: SMA(K,3,1),COLORYELLOW;
J:1*(3*D-2*K),COLORGREEN;
DRAWTEXT(J>60 AND CROSS(J,K),45,'卖'),COLOR00FF00;
DRAWTEXT(J<40  AND CROSS(K,J),45,'买'),COLORRED;
    STICKLINE(TJZB4>=50,115,110,4,1),COLORFF00FF;
    STICKLINE(TJZB4>65,115,110,4,1),COLORRED;

       STICKLINE(TJZB4>70 AND C>REF(O,1),115,110,4,1),COLORRED;
      STICKLINE(TJZB4>85 AND C>REF(O,1),115,110,4,0),COLORRED;
       STICKLINE(TJZB4<50,115,110,4,1),COLOR00EE00;
STICKLINE(TJZB4<25,115,110,4,1),COLOR00EE00;
IF(VAR1>C,VAR1/100000+20,20),COLORGREEN,CIRCLEDOT;


XSA:=SAR(10,2,20);
PARTLINE(C>XSA,20),COLORRED,CIRCLEDOT,LINETHICK3;
PARTLINE(C<XSA,20),COLORGREEN,CIRCLEDOT,LINETHICK3;
回复 支持 反对

使用道具 举报

新浪微博达人勋

五级海风会员

 楼主| 发表于 2017-5-1 13:30 | 显示全部楼层
50 ,POINTDOT,COLOREEDD00,LINETHICK2;

VAR1:=SAR(10,2,20);   
S:IF(VAR1>C,VAR1/100000+80,20),COLORGREEN,CIRCLEDOT;
X:IF(VAR1<C,VAR1/100000+80,20),COLORRED,CIRCLEDOT;

T4:=100*(C-LLV(L,N))/(HHV(H,N)-LLV(L,N)),COLOR55FFFF,LINETHICK2;
       TJZB4:=SMA(T4,3,1),COLOREEDD00,LINETHICK1;
K: SMA( T4,3,1),COLORFF00FF,LINETHICK1;
D: SMA(K,3,1),COLORYELLOW;
J:1*(3*D-2*K),COLORGREEN;
DRAWTEXT(J>60 AND CROSS(J,K),45,'卖'),COLOR00FF00;
DRAWTEXT(J<40  AND CROSS(K,J),45,'买'),COLORRED;
    STICKLINE(TJZB4>=60,115,110,4,1),COLORFF00FF;
    STICKLINE(TJZB4>65,115,110,4,1),COLORRED;

       STICKLINE(TJZB4>70 AND C>REF(O,1),115,110,4,1),COLORRED;
      STICKLINE(TJZB4>85 AND C>REF(O,1),115,110,4,0),COLORRED;
       STICKLINE(TJZB4<60,115,110,4,1),COLOR00EE00;
STICKLINE(TJZB4<25,115,110,4,1),COLOR00EE00;
IF(VAR1>C,VAR1/100000+20,20),COLORGREEN,CIRCLEDOT;
回复 支持 反对

使用道具 举报

新浪微博达人勋

五级海风会员

 楼主| 发表于 2017-5-1 13:47 | 显示全部楼层
80 ,POINTDOT,LINETHICK1;
50 ,POINTDOT,COLOREEDD00,LINETHICK2;
20 ,COLORWHITE,POINTDOT;
VAR1:=SAR(10,2,20);   

STICKLINE(VAR1<C,108,103,4,1),COLORRED;
STICKLINE(VAR1>C,108,103,4,1),COLORGREEN;
T4:=100*(C-LLV(L,N))/(HHV(H,N)-LLV(L,N)),COLOR55FFFF,LINETHICK2;
       TJZB4:=SMA(T4,3,1),COLOREEDD00,LINETHICK1;
K: SMA( T4,3,1),COLORFF00FF,LINETHICK1;
D: SMA(K,3,1),COLORYELLOW;
J:1*(3*D-2*K),COLORGREEN;
DRAWTEXT(J>60 AND CROSS(J,K),45,'卖'),COLOR00FF00;
DRAWTEXT(J<40  AND CROSS(K,J),45,'买'),COLORRED;
    STICKLINE(TJZB4>=55,115,110,4,1),COLORFF00FF;
    STICKLINE(TJZB4>65,115,110,4,1),COLORRED;

       STICKLINE(TJZB4>70 AND C>REF(O,1),115,110,4,1),COLORRED;
      STICKLINE(TJZB4>85 AND C>REF(O,1),115,110,4,0),COLORRED;
       STICKLINE(TJZB4<55,115,110,4,1),COLOR00EE00;
STICKLINE(TJZB4<25,115,110,4,1),COLOR00EE00;
回复 支持 反对

使用道具 举报

新浪微博达人勋

五级海风会员

 楼主| 发表于 2017-5-1 14:00 | 显示全部楼层
80 ,POINTDOT,LINETHICK1;
50 ,POINTDOT,COLOREEDD00,LINETHICK2;
20 ,COLORWHITE,POINTDOT;
VAR1:=SAR(10,2,20);   

STICKLINE(VAR1<C,110,105,4,1),COLORRED;
STICKLINE(VAR1>C,110,105,4,1),COLORGREEN;
T4:=100*(C-LLV(L,N))/(HHV(H,N)-LLV(L,N)),COLOR55FFFF,LINETHICK2;
       TJZB4:=SMA(T4,3,1),COLOREEDD00,LINETHICK1;
K: SMA( T4,3,1),COLORFF00FF,LINETHICK1;
D: SMA(K,3,1),COLORYELLOW;
J:1*(3*D-2*K),COLORGREEN;
DRAWTEXT(J>60 AND CROSS(J,K),45,'卖'),COLOR00FF00;
DRAWTEXT(J<40  AND CROSS(K,J),45,'买'),COLORRED;
    STICKLINE(TJZB4>=50,5,0,4,1),COLORFF00FF;
    STICKLINE(TJZB4>65,10,0,4,1),COLORRED;

       STICKLINE(TJZB4>70 AND C>REF(O,1),15,0,4,1),COLORRED;
      STICKLINE(TJZB4>85 AND C>REF(O,1),20,0,4,0),COLORRED;
       STICKLINE(TJZB4<50,0,5,4,1),COLOR00EE00;
STICKLINE(TJZB4<25,5,0,4,0),COLOR00EE00;

回复 支持 反对

使用道具 举报

新浪微博达人勋

五级海风会员

 楼主| 发表于 2017-5-1 14:03 | 显示全部楼层
80 ,POINTDOT,LINETHICK2;
50 ,POINTDOT,COLOREEDD00,LINETHICK3;
20 ,COLORWHITE,POINTDOT,LINETHICK2;
VAR1:=SAR(10,2,20);   

STICKLINE(VAR1<C,110,115,4,1),COLORRED;
STICKLINE(VAR1>C,110,115,4,1),COLORGREEN;
T4:=100*(C-LLV(L,N))/(HHV(H,N)-LLV(L,N)),COLOR55FFFF,LINETHICK2;
       TJZB4:=SMA(T4,3,1),COLOREEDD00,LINETHICK1;
K: SMA( T4,3,1),COLORFF00FF,LINETHICK1;
D: SMA(K,3,1),COLORYELLOW;
J:1*(3*D-2*K),COLORGREEN;
DRAWTEXT(J>60 AND CROSS(J,K),45,'卖'),COLOR00FF00;
DRAWTEXT(J<40  AND CROSS(K,J),45,'买'),COLORRED;
    STICKLINE(TJZB4>=50,5,0,4,1),COLORFF00FF;
    STICKLINE(TJZB4>65,10,0,4,1),COLORRED;

       STICKLINE(TJZB4>70 AND C>REF(O,1),15,0,4,1),COLORRED;
      STICKLINE(TJZB4>85 AND C>REF(O,1),20,0,4,0),COLORRED;
       STICKLINE(TJZB4<50,0,5,4,1),COLOR00EE00;
STICKLINE(TJZB4<25,5,0,4,0),COLOR00EE00;
回复 支持 反对

使用道具 举报

新浪微博达人勋

五级海风会员

 楼主| 发表于 2017-5-1 20:30 | 显示全部楼层

50 ,POINTDOT,COLOREEDD00,LINETHICK3;

VAR1:=SAR(10,2,20);   

IF(VAR1<C,80,20),COLORRED,CIRCLEDOT;
IF(VAR1>C,80,20),COLORGREEN,CIRCLEDOT;
T4:=100*(C-LLV(L,N))/(HHV(H,N)-LLV(L,N)),COLOR55FFFF,LINETHICK2;
       TJZB4:=SMA(T4,3,1),COLOREEDD00,LINETHICK1;
K: SMA( T4,3,1),COLORFF00FF,LINETHICK1;
D: SMA(K,3,1),COLORYELLOW;
J:1*(3*D-2*K),COLORGREEN;
DRAWTEXT(J>60 AND CROSS(J,K),45,'卖'),COLOR00FF00;
DRAWTEXT(J<40  AND CROSS(K,J),45,'买'),COLORRED;
    STICKLINE(TJZB4>=50,0,-10,4,1),COLORFF00FF;
    STICKLINE(TJZB4>65,5,-10,4,1),COLORRED;

       STICKLINE(TJZB4>70 AND C>REF(O,1),10,-10,4,1),COLORRED;
      STICKLINE(TJZB4>85 AND C>REF(O,1),10,-10,4,0),COLORRED;
       STICKLINE(TJZB4<50,-10,0,4,1),COLOR00EE00;
STICKLINE(TJZB4<25,0,-10,4,0),COLOR00EE00;

IF(VAR1<C,20,20),COLORGREEN,CIRCLEDOT;
回复 支持 反对

使用道具 举报

新浪微博达人勋

五级海风会员

 楼主| 发表于 2017-5-1 22:27 | 显示全部楼层

80 ,POINTDOT,COLOREEDD00,LINETHICK2;

VAR1:=SAR(10,2,20);   

IF(VAR1<C,50,20),COLORRED,CIRCLEDOT;
IF(VAR1>C,50,20),COLORGREEN,CIRCLEDOT;
T4:=100*(C-LLV(L,N))/(HHV(H,N)-LLV(L,N)),COLOR55FFFF,LINETHICK2;
       TJZB4:=SMA(T4,3,1),COLOREEDD00,LINETHICK1;
K: SMA( T4,3,1),COLORFF00FF,LINETHICK1;
D: SMA(K,3,1),COLORYELLOW;
J:1*(3*D-2*K),COLORGREEN;
DRAWTEXT(J>60 AND CROSS(J,K),45,'卖'),COLOR00FF00;
DRAWTEXT(J<40  AND CROSS(K,J),45,'买'),COLORRED;
    STICKLINE(TJZB4>=50,0,-10,4,1),COLORFF00FF;
    STICKLINE(TJZB4>65,5,-10,4,1),COLORRED;

       STICKLINE(TJZB4>75 ,10,-10,4,1),COLORRED;
      STICKLINE(TJZB4>85 ,10,-10,4,0),COLORRED;
       STICKLINE(TJZB4<50,-10,0,4,1),COLOR00EE00;
STICKLINE(TJZB4<25,0,-10,4,0),COLOR00EE00;

IF(VAR1<C,20,20),COLORGREEN,CIRCLEDOT;
回复 支持 反对

使用道具 举报

新浪微博达人勋

五级海风会员

 楼主| 发表于 2017-5-2 16:29 | 显示全部楼层
macd

DIF1:=EMA(CLOSE,12) - EMA(CLOSE,26),LINETHICK2;
DEA1:=EMA(DIF1,9),LINETHICK2;
MACD1:=2*(DIF1-DEA1),STICK;
MACD2:=EMA(MACD1,3);
STICKLINE(MACD1>MACD2 AND MACD1>0,0,MACD1,3.2,0),COLOR000055;
STICKLINE(MACD1>MACD2 AND MACD1>0,0,MACD1,2.7,0),COLOR000077;
STICKLINE(MACD1>MACD2 AND MACD1>0,0,MACD1,2.1,0),COLOR000099;
STICKLINE(MACD1>MACD2 AND MACD1>0,0,MACD1,1.5,0),COLOR0000BB;
STICKLINE(MACD1>MACD2 AND MACD1>0,0,MACD1,0.9,0),COLOR0000DD;
STICKLINE(MACD1>MACD2 AND MACD1>0,0,MACD1,0.3,0),COLOR0000FF;
STICKLINE(MACD1>MACD2 AND MACD1<0,0,MACD1,3.2,0),COLOR555555;
STICKLINE(MACD1>MACD2 AND MACD1<0,0,MACD1,2.7,0),COLOR777777;
STICKLINE(MACD1>MACD2 AND MACD1<0,0,MACD1,2.1,0),COLOR999999;
STICKLINE(MACD1>MACD2 AND MACD1<0,0,MACD1,1.5,0),COLORBBBBBB;
STICKLINE(MACD1>MACD2 AND MACD1<0,0,MACD1,0.9,0),COLORDDDDDD;
STICKLINE(MACD1>MACD2 AND MACD1<0,0,MACD1,0.3,0),COLORFFFFFF;
STICKLINE(MACD1<MACD2,0,MACD1,3.2,0),COLORB20000;
STICKLINE(MACD1<MACD2,0,MACD1,2.7,0),COLOREC0000;
STICKLINE(MACD1<MACD2,0,MACD1,2.1,0),COLORFF4600;
STICKLINE(MACD1<MACD2,0,MACD1,1.5,0),COLORFF6300;
STICKLINE(MACD1<MACD2,0,MACD1,0.9,0),COLORFF8B00;
STICKLINE(MACD1<MACD2,0,MACD1,0.3,0),COLORFFAB00;
STICKLINE(MACD1>=0 OR MACD1<=0,0,0,50,1),COLORWHITE;
DIF:DIF1,COLOR33FF33;
DEA:DEA1,COLORYELLOW;

低位金叉:=CROSS(DIF1,DEA1) AND DIF1<-0.1;

JCCOUNT:=COUNT(CROSS(DIF1,DEA1),BARSLAST(DEA1>=0));
二次金叉:=CROSS(DIF1,DEA1) AND DEA1<0 AND COUNT(JCCOUNT=2,21)=1;
STICKLINE(二次金叉,0,0.06,6,0),COLORFF00FF;
DRAWICON(二次金叉,DEA1*0.9,1) ;
DRAWTEXT(二次金叉,0.4,' 二次金叉'),COLORYELLOW;

A1:=BARSLAST(REF(CROSS(DIF1,DEA1),1));
底背离:=REF(CLOSE,A1+1)>CLOSE AND DIF1>REF(DIF1,A1+1) AND CROSS(DIF1,DEA1);
STICKLINE(底背离,0,0.03,4,0),COLOR00FF00;
DRAWTEXT(底背离,0.1,' 底背离'),COLORYELLOW;
A2:=BARSLAST(REF(CROSS(DEA1,DIF1),1));
顶背离:=REF(CLOSE,A2+1)<CLOSE AND REF(DIF1,A2+1)>DIF1 AND CROSS(DEA1,DIF1);
DRAWTEXT(顶背离,0.1,'顶背离'),COLORGREEN;


{OBV判势}
OBV:=DIF;
P:=5;
AA1:=REF(OBV,P)=HHV(OBV,2*P+1);
B1:=FILTER(AA1,P);
C1:=BACKSET(B1,P+1);
D1:=FILTER(C1,P);{高点}
AA2:=REF(OBV,P)=LLV(OBV,2*P+1);
B2:=FILTER(AA2,P);
C2:=BACKSET(B2,P+1);
D2:=FILTER(C2,P);{低点}

{金叉共振及三全项}
DRAWICON(D1,OBV,2);
DRAWICON(D2,OBV,1);

回复 支持 反对

使用道具 举报

新浪微博达人勋

五级海风会员

 楼主| 发表于 2017-5-2 16:39 | 显示全部楼层
80 ,POINTDOT,COLOREEDD00,LINETHICK2;

VAR1:=SAR(10,2,20);   

IF(VAR1<C,50,20),COLORRED,CIRCLEDOT;
IF(VAR1>C,50,20),COLORGREEN,CIRCLEDOT;
T4:=100*(C-LLV(L,N))/(HHV(H,N)-LLV(L,N)),COLOR55FFFF,LINETHICK2;
       TJZB4:=SMA(T4,3,1),COLOREEDD00,LINETHICK1;
K: SMA( T4,3,1),COLORFF00FF,LINETHICK1;
D: SMA(K,3,1),COLORYELLOW;
J:1*(3*D-2*K),COLORGREEN;
DRAWTEXT(J>60 AND CROSS(J,K),45,'卖'),COLOR00FF00;
DRAWTEXT(J<40  AND CROSS(K,J),45,'买'),COLORRED;
    STICKLINE(TJZB4>=55,0,-10,4,1),COLORFF00FF;
    STICKLINE(TJZB4>65,5,-10,4,1),COLORRED;

       STICKLINE(TJZB4>75 ,10,-10,4,1),COLORRED;
      STICKLINE(TJZB4>85 ,10,-10,4,0),COLORRED;
       STICKLINE(TJZB4<55,-10,0,4,1),COLOR00EE00;
STICKLINE(TJZB4<25,0,-10,4,0),COLOR00EE00;

IF(VAR1<C,20,20),COLORGREEN,CIRCLEDOT;
OBV:=EMA(CLOSE,12) - EMA(CLOSE,26),LINETHICK2;
P:=5;
AA1:=REF(OBV,P)=HHV(OBV,2*P+1);
B1:=FILTER(AA1,P);
C1:=BACKSET(B1,P+1);
D1:=FILTER(C1,P);{高点}
AA2:=REF(OBV,P)=LLV(OBV,2*P+1);
B2:=FILTER(AA2,P);
C2:=BACKSET(B2,P+1);
D2:=FILTER(C2,P);{低点}

{金叉共振及三全项}
DRAWICON(D1,OBV,2);
DRAWICON(D2,OBV,1);
回复 支持 反对

使用道具 举报

新浪微博达人勋

五级海风会员

 楼主| 发表于 2017-5-6 22:28 | 显示全部楼层
VAR1:=(VOL / (((HIGH - LOW) * 2) - ABS((CLOSE - OPEN))));
买盘:=IF((CLOSE > OPEN),(VAR1 * (HIGH - LOW)),IF((CLOSE < OPEN),(VAR1 * ((HIGH - OPEN) + (CLOSE - LOW))),(VOL / 2)));  
卖盘:=IF((CLOSE > OPEN),(0 - (VAR1 * ((HIGH - CLOSE) + (OPEN - LOW)))),IF((CLOSE < OPEN),(0 - (VAR1 * (HIGH - LOW))),(0 - (VOL / 2))));  
买卖差:=(买盘 + 卖盘);
JX1:=BARSSINCE(买盘);  
JY1:=IF(((121 > JX1) AND (JX1 > 0)),JX1,120);  
JY2:=IF(((4 > JX1) AND (JX1 > 0)),JX1,3);  
VAR30:=MA(VOL,JY2);
神比:=(买盘 / VAR30);  
鬼比:=(卖盘 / VAR30);  
VAR2:=(HIGH - LOW);  
VAR3:=ABS((OPEN - CLOSE));  
VAR4:=(HIGH - IF((CLOSE > OPEN),CLOSE,OPEN));  
VAR5:=(IF((CLOSE > OPEN),OPEN,CLOSE) - LOW);  
VAR6:=((VAR3 / VAR2) * VOL);  
VAR7:=((VAR4 / VAR2) * VOL);  
VAR8:=((VAR5 / VAR2) * VOL);  
STICKLINE(C<MA(C,5),0,VOL,5,0),COLORGREEN;
STICKLINE(CLOSE>=MA(C,5) ,0,VOL,5,1),COLOR0000FF;
STICKLINE(( 买卖差 < 0),0,买卖差,4,0),COLORGREEN;
STICKLINE((((买卖差 > 0 AND C>MA(C,5) AND VAR6 >= VAR7) AND (VAR6 >= VAR8)) AND (CLOSE > OPEN)),0,VAR6,4,0),COLOR00FFFF;
STICKLINE( 买卖差 > 0  AND C>MA(C,5),买盘,0,2,0),COLOR0000FF;
  买卖:1*买卖差/10000,COLORFF00FF;
回复 支持 反对

使用道具 举报

新浪微博达人勋

五级海风会员

 楼主| 发表于 2017-5-6 23:14 | 显示全部楼层

80 ,POINTDOT,COLOREEDD00,LINETHICK2;

VAR1:=SAR(10,2,20);   

IF(VAR1<C,50,20),COLORRED,CIRCLEDOT;
IF(VAR1>C,50,20),COLORGREEN,CIRCLEDOT;
T4:=100*(C-LLV(L,N))/(HHV(H,N)-LLV(L,N)),COLOR55FFFF,LINETHICK2;
       TJZB4:=SMA(T4,5,1),COLOREEDD00,LINETHICK1;
K: SMA( T4,3,1),COLORFF00FF,LINETHICK1;
D: SMA(K,3,1),COLORYELLOW;
J:1*(3*D-2*K),COLORGREEN;
DRAWTEXT(J>60 AND CROSS(J,K),45,'卖'),COLOR00FF00;
DRAWTEXT(J<40  AND CROSS(K,J),45,'买'),COLORRED;
    STICKLINE(TJZB4>=55,0,-10,4,1),COLORFF00FF;
    STICKLINE(TJZB4>65,5,-10,4,1),COLORRED;

       STICKLINE(TJZB4>75 ,10,-10,4,1),COLORRED;
      STICKLINE(TJZB4>85 ,10,-10,4,0),COLORRED;
       STICKLINE(TJZB4<55,-10,0,4,1),COLOR00EE00;
STICKLINE(TJZB4<25,0,-10,4,0),COLOR00EE00;
IF(VAR1<C,20,20),COLORGREEN,CIRCLEDOT;
回复 支持 反对

使用道具 举报

新浪微博达人勋

五级海风会员

 楼主| 发表于 2017-5-7 15:22 | 显示全部楼层
VAR1:=(VOL / (((HIGH - LOW) * 2) - ABS((CLOSE - OPEN))));
买盘:=IF((CLOSE > OPEN),(VAR1 * (HIGH - LOW)),IF((CLOSE < OPEN),(VAR1 * ((HIGH - OPEN) + (CLOSE - LOW))),(VOL / 2)));  
卖盘:=IF((CLOSE > OPEN),(0 - (VAR1 * ((HIGH - CLOSE) + (OPEN - LOW)))),IF((CLOSE < OPEN),(0 - (VAR1 * (HIGH - LOW))),(0 - (VOL / 2))));  
买卖差:=(买盘 + 卖盘);
T4:=100*(C-LLV(L,N))/(HHV(H,N)-LLV(L,N)),COLOR55FFFF,LINETHICK2;
K:=SMA( T4,3,1),COLORFF00FF,LINETHICK1;

JX1:=BARSSINCE(买盘);  
JY1:=IF(((121 > JX1) AND (JX1 > 0)),JX1,120);  
JY2:=IF(((4 > JX1) AND (JX1 > 0)),JX1,3);  
VAR30:=MA(VOL,JY2);
神比:=(买盘 / VAR30);  
鬼比:=(卖盘 / VAR30);  
VAR2:=(HIGH - LOW);  
VAR3:=ABS((OPEN - CLOSE));  
VAR4:=(HIGH - IF((CLOSE > OPEN),CLOSE,OPEN));  
VAR5:=(IF((CLOSE > OPEN),OPEN,CLOSE) - LOW);  
VAR6:=((VAR3 / VAR2) * VOL);  
VAR7:=((VAR4 / VAR2) * VOL);  
VAR8:=((VAR5 / VAR2) * VOL);  
STICKLINE(K<50,0,VOL,5,0),COLORGREEN;
STICKLINE(K>=50,0,VOL,5,1),COLOR0000FF;
STICKLINE(( 买卖差 < 0),0,买卖差,4,0),COLORGREEN;
STICKLINE((((买卖差 > 0 AND K>=50 AND VAR6 >= VAR7) AND (VAR6 >= VAR8)) AND (CLOSE > OPEN)),0,VAR6,4,0),COLOR00FFFF;
STICKLINE( 买卖差 > 0  AND K>=50,买盘,0,2,0),COLOR0000FF;
  买卖:1*买卖差/10000,COLORFF00FF;
回复 支持 反对

使用道具 举报

新浪微博达人勋

五级海风会员

 楼主| 发表于 2017-5-7 22:34 | 显示全部楼层
EMA13:MA(C,5),COLORF00FF0;
EMA34:MA(C,20),COLOR00FFFF;
EMA55:MA(C,60),COLORGREEN,LINETHICK1;
DRAWTEXT(CROSS(EMA34,EMA13),EMA34,'分道'), COLOR00FF00;
DRAWTEXT(CROSS(EMA55,EMA13),EMA55,'穿心'), COLOR00FF00;
DRAWTEXT(CROSS(EMA55,EMA34),EMA55,'各政'), COLOR00FF00;
DRAWTEXT(CROSS(EMA13,EMA34),EMA34,'增持'),COLORRED;
DRAWTEXT(CROSS(EMA13,EMA55),EMA55,'加仓'),COLORRED;
DRAWTEXT(CROSS(EMA34,EMA55),EMA55,'重仓'),COLORRED;

EMA120:=EMA(C,120),COLORFFCC66;
AR1:=EMA55>EMA34 AND EMA34>EMA13;
AR2:=BARSLAST((C-EMA13)/EMA13*100<-6);
AR3:=EMA13>=REF(EMA13,2);
AR4:=COUNT(CROSS(C,EMA13),AR2)=1;
AR5:=AR1 AND AR2 AND AR3 AND AR4;
AR6:=AR5 AND FILTER(AR5,10);
DRAWTEXT(AR6,L,'红杏出墙'),COLORYELLOW;
STICKLINE(AR6,H,L,0.5,1),COLORYELLOW;
STICKLINE(AR6,O,C,6,1),COLORYELLOW;
BR1:=COUNT(BETWEEN((C-REF(C,1))/REF(C,1)*100,0,5) ,5)=5;
BR2:=ABS((EMA13-EMA34)+(EMA34-EMA55))/C<0.2;
BR3:=C>EMA55 AND (REF(C,1)<REF(EMA55,1) OR REF(C,2)<REF(EMA55,2) OR REF(C,3)<REF(EMA55,3) OR REF(C,4)<REF(EMA55,4) OR REF(C,5)<REF(EMA55,5));
BR4:=BR1 AND BR2 AND BR3;
DRAWTEXT(BR4 AND FILTER(BR4,10),L,'蚂蚁上树'),COLOR00C5FF;
STICKLINE(BR4 AND FILTER(BR4,10),H,L,0.5,1),COLOR00C5FF;
STICKLINE(BR4 AND FILTER(BR4,10),O,C,6,1),COLOR00C5FF;
CR1:=(C-REF(C,1))/REF(C,1)*100>0.5;
CR2:=V>MA(V,5)*0.6;
CR3:=COUNT(CROSS(EMA13,EMA55),3)=1;
CR4:=ABS(EMA34-EMA55)/EMA55<0.03;
CR5:=EMA55<=EMA120 AND EMA55>=REF(EMA55,1);
CR6:=FILTER(CR1 AND CR2 AND CR3 AND CR4 AND CR5,2);
STICKLINE(CR6,H,L,0.5,1),COLORF00FF0;
STICKLINE(CR6,O,C,6,1),COLORF00FF0;
DRAWTEXT(CR6,L,'红衣侠女'),COLORF00FF0;
DR1:=EMA13>EMA34 AND EMA34<EMA55;
DR2:=BARSLAST(CROSS(C,EMA55) );
DR3:=H=HHV(H,DR2);
DR4:=BARSLAST(DR3);
DR5:=COUNT(O>C AND C<REF(C,1) AND C>EMA55 AND BETWEEN((C-EMA55)/EMA55,0,0.02),DR4)=1;
DR6:=C>REF(C,1) ;
DR7:= DR1 AND DR5 AND DR6 ;
DR8:=DR7 AND FILTER(DR7 ,10);
DRAWTEXT(DR8,L,'黑客点击'),COLORD6BA63;
STICKLINE(DR8,H,L,0.5,1),COLORD6BA63;
STICKLINE(DR8,O,C,6,1),COLORD6BA63;
ER:=BARSLAST(REF(CROSS(EMA55,EMA34),1)) AND CROSS(EMA34,EMA55);
DRAWTEXT(ER,L,'均线互换'),COLOR0099FF;
STICKLINE(ER,H,L,0.5,1),COLOR0099FF;
STICKLINE(ER,O,C,6,1),COLOR0099FF;
FR:=BARSLAST(REF(CROSS(EMA34,EMA13),1)) AND CROSS(EMA13,EMA34);
DRAWTEXT(FR,L,'梅开二度'),COLORWHITE;
STICKLINE(FR,H,L,0.5,1),COLORWHITE;
STICKLINE(FR,O,C,6,1),COLORWHITE;

HR2:=EMA13>=REF(EMA13,3) AND EMA34>=REF(EMA34,1) AND EMA55>=REF(EMA55,1) AND CROSS(C,EMA13) AND CROSS(C,EMA34) AND CROSS(C,EMA55);
DRAWTEXT(HR2 AND FILTER(HR2,10),L,'三线推进'),COLORFFC8FF;
STICKLINE(HR2 AND FILTER(HR2,10),H,L,0.5,1),COLORFFC8FF;
STICKLINE(HR2 AND FILTER(HR2,10),O,C,6,1),COLORFFC8FF;
回复 支持 反对

使用道具 举报

新浪微博达人勋

五级海风会员

 楼主| 发表于 2017-5-7 22:35 | 显示全部楼层

n=9;
p=55;

VAR1:=(VOL / (((HIGH - LOW) * 2) - ABS((CLOSE - OPEN))));
买盘:=IF((CLOSE > OPEN),(VAR1 * (HIGH - LOW)),IF((CLOSE < OPEN),(VAR1 * ((HIGH - OPEN) + (CLOSE - LOW))),(VOL / 2)));  
卖盘:=IF((CLOSE > OPEN),(0 - (VAR1 * ((HIGH - CLOSE) + (OPEN - LOW)))),IF((CLOSE < OPEN),(0 - (VAR1 * (HIGH - LOW))),(0 - (VOL / 2))));  
买卖差:=(买盘 + 卖盘);
T4:=100*(C-LLV(L,N))/(HHV(H,N)-LLV(L,N)),COLOR55FFFF,LINETHICK2;
K:=SMA( T4,3,1),COLORFF00FF,LINETHICK1;

JX1:=BARSSINCE(买盘);  
JY1:=IF(((121 > JX1) AND (JX1 > 0)),JX1,120);  
JY2:=IF(((4 > JX1) AND (JX1 > 0)),JX1,3);  
VAR30:=MA(VOL,JY2);
神比:=(买盘 / VAR30);  
鬼比:=(卖盘 / VAR30);  
VAR2:=(HIGH - LOW);  
VAR3:=ABS((OPEN - CLOSE));  
VAR4:=(HIGH - IF((CLOSE > OPEN),CLOSE,OPEN));  
VAR5:=(IF((CLOSE > OPEN),OPEN,CLOSE) - LOW);  
VAR6:=((VAR3 / VAR2) * VOL);  
VAR7:=((VAR4 / VAR2) * VOL);  
VAR8:=((VAR5 / VAR2) * VOL);  
STICKLINE(K<P,0,VOL,5,0),COLORGREEN;
STICKLINE(K>=P,0,VOL,5,1),COLOR0000FF;
STICKLINE(( 买卖差 < 0),0,买卖差,4,0),COLORGREEN;
STICKLINE((((买卖差 > 0 AND K>=P AND VAR6 >= VAR7) AND (VAR6 >= VAR8)) AND (CLOSE > OPEN)),0,VAR6,4,0),COLOR00FFFF;
STICKLINE( 买卖差 > 0  AND K>=P,买盘,0,2,0),COLOR0000FF;
  买卖:1*买卖差/10000,COLORFF00FF;
回复 支持 反对

使用道具 举报

新浪微博达人勋

五级海风会员

 楼主| 发表于 2017-5-7 22:37 | 显示全部楼层
VAR1:=(VOL / (((HIGH - LOW) * 2) - ABS((CLOSE - OPEN))));
买盘:=IF((CLOSE > OPEN),(VAR1 * (HIGH - LOW)),IF((CLOSE < OPEN),(VAR1 * ((HIGH - OPEN) + (CLOSE - LOW))),(VOL / 2)));  
卖盘:=IF((CLOSE > OPEN),(0 - (VAR1 * ((HIGH - CLOSE) + (OPEN - LOW)))),IF((CLOSE < OPEN),(0 - (VAR1 * (HIGH - LOW))),(0 - (VOL / 2))));  
买卖差:=(买盘 + 卖盘);
T4:=100*(C-LLV(L,N))/(HHV(H,N)-LLV(L,N)),COLOR55FFFF,LINETHICK2;
K:=SMA( T4,3,1),COLORFF00FF,LINETHICK1;

JX1:=BARSSINCE(买盘);  
JY1:=IF(((121 > JX1) AND (JX1 > 0)),JX1,120);  
JY2:=IF(((4 > JX1) AND (JX1 > 0)),JX1,3);  
VAR30:=MA(VOL,JY2);
神比:=(买盘 / VAR30);  
鬼比:=(卖盘 / VAR30);  
VAR2:=(HIGH - LOW);  
VAR3:=ABS((OPEN - CLOSE));  
VAR4:=(HIGH - IF((CLOSE > OPEN),CLOSE,OPEN));  
VAR5:=(IF((CLOSE > OPEN),OPEN,CLOSE) - LOW);  
VAR6:=((VAR3 / VAR2) * VOL);  
VAR7:=((VAR4 / VAR2) * VOL);  
VAR8:=((VAR5 / VAR2) * VOL);  
STICKLINE(K<P,0,VOL,5,0),COLOREEDD00;
STICKLINE(K>=P,0,VOL,5,1),COLOR0000FF;
STICKLINE(( 买卖差 < 0),0,买卖差,4,0),COLOREEDD00;
STICKLINE((((买卖差 > 0 AND K>=P AND VAR6 >= VAR7) AND (VAR6 >= VAR8)) AND (CLOSE > OPEN)),0,VAR6,4,0),COLOR00FFFF;
STICKLINE( 买卖差 > 0  AND K>=P,买盘,0,2,0),COLOR0000FF;
  买卖:1*买卖差/10000,COLORFF00FF;
回复 支持 反对

使用道具 举报

新浪微博达人勋

五级海风会员

 楼主| 发表于 2017-5-8 16:33 | 显示全部楼层
按日买卖

VAR1:=(VOL / (((HIGH - LOW) * 2) - ABS((CLOSE - OPEN))));
买盘:=IF((CLOSE > OPEN),(VAR1 * (HIGH - LOW)),IF((CLOSE < OPEN),(VAR1 * ((HIGH - OPEN) + (CLOSE - LOW))),(VOL / 2)));  
卖盘:=IF((CLOSE > OPEN),(0 - (VAR1 * ((HIGH - CLOSE) + (OPEN - LOW)))),IF((CLOSE < OPEN),(0 - (VAR1 * (HIGH - LOW))),(0 - (VOL / 2))));  
买卖差:=(买盘 + 卖盘);
T4:=100*(C-LLV(L,N))/(HHV(H,N)-LLV(L,N)),COLOR55FFFF,LINETHICK2;
K:=SMA( T4,3,1),COLORFF00FF,LINETHICK1;

JX1:=BARSSINCE(买盘);  
JY1:=IF(((121 > JX1) AND (JX1 > 0)),JX1,120);  
JY2:=IF(((4 > JX1) AND (JX1 > 0)),JX1,3);  
VAR30:=MA(VOL,JY2);
神比:=(买盘 / VAR30);  
鬼比:=(卖盘 / VAR30);  
VAR2:=(HIGH - LOW);  
VAR3:=ABS((OPEN - CLOSE));  
VAR4:=(HIGH - IF((CLOSE > OPEN),CLOSE,OPEN));  
VAR5:=(IF((CLOSE > OPEN),OPEN,CLOSE) - LOW);  
VAR6:=((VAR3 / VAR2) * VOL);  
VAR7:=((VAR4 / VAR2) * VOL);  
VAR8:=((VAR5 / VAR2) * VOL);  
STICKLINE(买卖差<0,0,VOL,5,0),COLOREEDD00;
STICKLINE(买卖差>=0,0,VOL,5,1),COLOR0000FF;
STICKLINE(( 买卖差 < 0),0,买卖差,4,0),COLOREEDD00;
STICKLINE((((买卖差 > 0 AND 买卖差>=0 AND VAR6 >= VAR7) AND (VAR6 >= VAR8)) AND (CLOSE > OPEN)),0,VAR6,4,0),COLOR00FFFF;
STICKLINE( 买卖差 > 0  AND 买卖差>=0,买盘,0,2,0),COLOR0000FF;
  买卖:1*买卖差/10000,COLORFF00FF;
回复 支持 反对

使用道具 举报

新浪微博达人勋

五级海风会员

 楼主| 发表于 2017-5-8 20:50 | 显示全部楼层
VAR1:=(VOL / (((HIGH - LOW) * 2) - ABS((CLOSE - OPEN))));
买盘:=IF((CLOSE > OPEN),(VAR1 * (HIGH - LOW)),IF((CLOSE < OPEN),(VAR1 * ((HIGH - OPEN) + (CLOSE - LOW))),(VOL / 2)));  
卖盘:=IF((CLOSE > OPEN),(0 - (VAR1 * ((HIGH - CLOSE) + (OPEN - LOW)))),IF((CLOSE < OPEN),(0 - (VAR1 * (HIGH - LOW))),(0 - (VOL / 2))));  
买卖差:=(买盘 + 卖盘);
T4:=100*(C-LLV(L,N))/(HHV(H,N)-LLV(L,N)),COLOR55FFFF,LINETHICK2;
K:=SMA( T4,3,1),COLORFF00FF,LINETHICK1;
D:= SMA(K,3,1);
JX1:=BARSSINCE(买盘);  
JY1:=IF(((121 > JX1) AND (JX1 > 0)),JX1,120);  
JY2:=IF(((4 > JX1) AND (JX1 > 0)),JX1,3);  
VAR30:=MA(VOL,JY2);
神比:=(买盘 / VAR30);  
鬼比:=(卖盘 / VAR30);  
VAR2:=(HIGH - LOW);  
VAR3:=ABS((OPEN - CLOSE));  
VAR4:=(HIGH - IF((CLOSE > OPEN),CLOSE,OPEN));  
VAR5:=(IF((CLOSE > OPEN),OPEN,CLOSE) - LOW);  
VAR6:=((VAR3 / VAR2) * VOL);  
VAR7:=((VAR4 / VAR2) * VOL);  
VAR8:=((VAR5 / VAR2) * VOL);  
STICKLINE(K<D,0,VOL,5,0),COLOREEDD11;
STICKLINE(K>=D,0,VOL,5,1),COLOR0000FF;
STICKLINE(( 买卖差 < 0),0,买卖差,4,0),COLOREEDD11;
STICKLINE((((买卖差 > 0 AND K>=D AND VAR6 >= VAR7) AND (VAR6 >= VAR8)) AND (CLOSE > OPEN)),0,VAR6,4,0),COLOR00FFFF;
STICKLINE( 买卖差 > 0  AND K>=D,买盘,0,2,0),COLOR0000FF;
  买卖:1*买卖差/10000,COLORFF00FF;
回复 支持 反对

使用道具 举报

新浪微博达人勋

五级海风会员

 楼主| 发表于 2017-5-11 11:59 | 显示全部楼层
DIF1:=EMA(CLOSE,12) - EMA(CLOSE,26),LINETHICK2;
DEA1:=EMA(DIF1,9),LINETHICK2;
MACD1:=2*(DIF1-DEA1),STICK;
MACD2:=EMA(MACD1,3);
STICKLINE(MACD1>MACD2 AND MACD1>0,0,MACD1,3.2,0),COLOR000055;
STICKLINE(MACD1>MACD2 AND MACD1>0,0,MACD1,2.7,0),COLOR000077;
STICKLINE(MACD1>MACD2 AND MACD1>0,0,MACD1,2.1,0),COLOR000099;
STICKLINE(MACD1>MACD2 AND MACD1>0,0,MACD1,1.5,0),COLOR0000BB;
STICKLINE(MACD1>MACD2 AND MACD1>0,0,MACD1,0.9,0),COLOR0000DD;
STICKLINE(MACD1>MACD2 AND MACD1>0,0,MACD1,0.3,0),COLOR0000FF;
STICKLINE(MACD1>MACD2 AND MACD1<0,0,MACD1,3.2,0),COLOR555555;
STICKLINE(MACD1>MACD2 AND MACD1<0,0,MACD1,2.7,0),COLOR777777;
STICKLINE(MACD1>MACD2 AND MACD1<0,0,MACD1,2.1,0),COLOR999999;
STICKLINE(MACD1>MACD2 AND MACD1<0,0,MACD1,1.5,0),COLORBBBBBB;
STICKLINE(MACD1>MACD2 AND MACD1<0,0,MACD1,0.9,0),COLORDDDDDD;
STICKLINE(MACD1>MACD2 AND MACD1<0,0,MACD1,0.3,0),COLORFFFFFF;
STICKLINE(MACD1<MACD2,0,MACD1,3.2,0),COLORB20000;
STICKLINE(MACD1<MACD2,0,MACD1,2.7,0),COLOREC0000;
STICKLINE(MACD1<MACD2,0,MACD1,2.1,0),COLORFF4600;
STICKLINE(MACD1<MACD2,0,MACD1,1.5,0),COLORFF6300;
STICKLINE(MACD1<MACD2,0,MACD1,0.9,0),COLORFF8B00;
STICKLINE(MACD1<MACD2,0,MACD1,0.3,0),COLORFFAB00;
STICKLINE(MACD1>=0 OR MACD1<=0,0,0,50,1),COLORWHITE;
DIF:DIF1,COLOR33FF33;
DEA:DEA1,COLORYELLOW;

低位金叉:=CROSS(DIF1,DEA1) AND DIF1<-0.1;

JCCOUNT:=COUNT(CROSS(DIF1,DEA1),BARSLAST(DEA1>=0));
二次金叉:=CROSS(DIF1,DEA1) AND DEA1<0 AND COUNT(JCCOUNT=2,21)=1;
STICKLINE(二次金叉,0,0.06,6,0),COLORFF00FF;
DRAWICON(二次金叉,DEA1*0.9,1) ;
DRAWTEXT(二次金叉,0.4,' 二次金叉'),COLORYELLOW;

A1:=BARSLAST(REF(CROSS(DIF1,DEA1),1));
底背离:=REF(CLOSE,A1+1)>CLOSE AND DIF1>REF(DIF1,A1+1) AND CROSS(DIF1,DEA1);
STICKLINE(底背离,0,0.03,4,0),COLOR00FF00;
DRAWTEXT(底背离,0.1,' 底背离'),COLORYELLOW;
A2:=BARSLAST(REF(CROSS(DEA1,DIF1),1));
顶背离:=REF(CLOSE,A2+1)<CLOSE AND REF(DIF1,A2+1)>DIF1 AND CROSS(DEA1,DIF1);
DRAWTEXT(顶背离,0.1,'顶背离'),COLORGREEN;
OBV:=EMA(CLOSE,12) - EMA(CLOSE,26),LINETHICK2;
P:=5;
AA1:=REF(OBV,P)=HHV(OBV,2*P+1);
B1:=FILTER(AA1,P);
C1:=BACKSET(B1,P+1);
D1:=FILTER(C1,P);{高点}
AA2:=REF(OBV,P)=LLV(OBV,2*P+1);
B2:=FILTER(AA2,P);
C2:=BACKSET(B2,P+1);
D2:=FILTER(C2,P);{低点}

{金叉共振及三全项}
DRAWICON(D1,OBV,2);
DRAWICON(D2,OBV,1);

回复 支持 反对

使用道具 举报

新浪微博达人勋

三级海风会员

发表于 2017-6-2 15:20 | 显示全部楼层
不错,支持分享
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册会员 新浪微博登陆

本版积分规则

QQ|小黑屋|手机版|海风股票论坛 ( 闽ICP备05030991号-1 )|网站地图

GMT+8, 2017-10-21 12:52

 
快速回复 返回顶部 返回列表