最新公告
  • 欢迎您光临九毛八公式指标网www.9m8.cn,本站全新改版试运行,期间内容全部免费,欢迎下载!欢迎加入本站VIP
  • 量比选股指标公式

    正文概述    2024-05-04 03:31:38  
    DIFF:EMA(CLOSE,12)-EMA(CLOSE,26); DEA:EMA(DIFF,9); MACD:2*(DIFF-DEA),COLORSTICK; A1:=BARSLAST(REF(CROSS(DIFF,DEA),1)); B1:=REF(C,A1+1) CANDREF(DIFF,A1+1) DIFFANDCROSS(DIFF,DEA); A2:=BARSLAST(REF(CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3)),1)); B2:=REF(C,A2+1) CANDREF("KDJ.K"(9,3,3),A2+1) "KDJ.K"(9,3,3)ANDCROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3)); A3:=BARSLAST(REF(CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24)),1)); B3:=REF(C,A3+1) CANDREF("RSI.RSI1"(6,12,24),A3+1) "RSI.RSI1"(6,12,24)ANDCROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24)); C1:=BARSLAST(REF(CROSS(DEA,DIFF),1)); D1:=REF(C,C1+1) CANDREF(DIFF,C1+1) DIFFANDCROSS(DEA,DIFF); C2:=BARSLAST(REF(CROSS("KDJ.D"(9,3,3),"KDJ.K"(9,3,3)),1)); D2:=REF(C,C2+1) CANDREF("KDJ.K"(9,3,3),C2+1) "KDJ.K"(9,3,3)ANDCROSS("KDJ.D"(9,3,3),"KDJ.K"(9,3,3)); C3:=BARSLAST(REF(CROSS("RSI.RSI2"(6,12,24),"RSI.RSI1"(6,12,24)),1)); D3:=REF(C,C3+1) CANDREF("RSI.RSI1"(6,12,24),C3+1) "RSI.RSI1"(6,12,24)ANDCROSS("RSI.RSI2"(6,12,24),"RSI.RSI1"(6,12,24)); MACD底背:IF(B1 0,-0.1,0),COLORRED,POINTDOT; KDJ底背:IF(B2 0,-0.1,0),COLORFF00FF,POINTDOT; RSI底背:IF(B3 0,-0.1,0),COLORYELLOW,POINTDOT; MACD顶背:IF(D1 0,0.1,0),COLOR00FF00,POINTDOT; KDJ顶背:IF(D2 0,0.1,0),COLORFFCC66,POINTDOT; RSI顶背:IF(D3 0,0.1,0),COLORWHITE,POINTDOT; STICKLINE(B1 0,-0.1,0,2,0),COLORRED; STICKLINE(B2 0,-0.1,0,2,0),COLORFF00FF; STICKLINE(B3 0,-0.1,0,2,0),COLORYELLOW; STICKLINE(D1 0,0.1,0,2,0),COLOR00FF00; STICKLINE(D2 0,0.1,0,2,0),COLORFFCC66; STICKLINE(D3 0,0.1,0,2,0),COLORWHITE; 量比:/ma(REF(VOL,1),5),COLORCCCCCC,LINETHICK0; 地量:IF(量比 0.5,量比,0),COLOR00FFFF,LINETHICK0; 正常:IF(量比 =0.8AND量比 1.5,量比,0),COLORFF00FF,LINETHICK0; 温和:IF(量比 =1.5AND量比 2.5,量比,0),COLOR00FF00,LINETHICK0; 放量:IF(量比 =2.5AND量比 5,量比,0),COLORCCCCCC,LINETHICK0; 剧量:IF(量比 =5AND量比 10,量比,0),COLORFF0000,LINETHICK0; 异动:IF(量比 =10,量比,0),COLORFFFFFF,LINETHICK0; 2.4,COLORFF00FF; 4.5,COLOR00FF00; 7.5,COLORCCCCCC; AA:=量比*3; stICKLINE(C =O,0,AA,2.8,0),COLOR6666CC; STICKLINE(C =O,0,AA,2,0),COLOR7777DD; STICKLINE(C =O,0,AA,1,0),COLOR8888EE; STICKLINE(C =O,0,AA,0.5,0),COLOR9999FF; STICKLINE(C O,0,AA,2.8,0),COLORCC6666; STICKLINE(C O,0,AA,2,0),COLORDD7777; STICKLINE(C O,0,AA,1,0),COLOREE8888; STICKLINE(C O,0,AA,0.5,0),COLORFF9999; STICKLINE(地量,0,AA,2.8,0),COLOR66FFFF;{ 0.5} {STICKLINE(正常,0,AA,0,0),COLORFF00FF;{0.8-1.5} {STICKLINE(温和,0,AA,0,0),COLOR00FF00;{1.5-2.5} STICKLINE(放量,0,AA,0,0),COLORCCCCCC;{2.5-5} STICKLINE(剧量,0,AA,0,0),COLORFF0000;{5-10} STICKLINE(异动,0,AA,0,0),COLORFFFFFF;{



    [源码注释]量比选股指标公式公式解读



    输出DIFF:收盘价的12日指数移动平均-收盘价的26日指数移动平均 输出DEA:DIFF的9日指数移动平均 输出平滑异同平:2*(DIFF-DEA),COLORSTICK A1赋值:上次1日前的DIFF上穿DEA距今天数 B1赋值:A1+1日前的收盘价 CANDREF(DIFF,A1+1) DIFFANDCROSS(DIFF,DEA) A2赋值:上次1日前的"KDJ的K"(9,3,3)上穿"KDJ的D"(9,3,3)距今天数 B2赋值:A2+1日前的收盘价 CANDREF("KDJ的K"(9,3,3),A2+1) "KDJ的K"(9,3,3)ANDCROSS("KDJ的K"(9,3,3),"KDJ的D"(9,3,3)) A3赋值:上次1日前的"RSI的RSI1"(6,12,24)上穿"RSI的RSI2"(6,12,24)距今天数 B3赋值:A3+1日前的收盘价 CANDREF("RSI的RSI1"(6,12,24),A3+1) "RSI的RSI1"(6,12,24)ANDCROSS("RSI的RSI1"(6,12,24),"RSI的RSI2"(6,12,24)) C1赋值:上次1日前的DEA上穿DIFF距今天数 D1赋值:C1+1日前的收盘价 CANDREF(DIFF,C1+1) DIFFANDCROSS(DEA,DIFF) C2赋值:上次1日前的"KDJ的D"(9,3,3)上穿"KDJ的K"(9,3,3)距今天数 D2赋值:C2+1日前的收盘价 CANDREF("KDJ的K"(9,3,3),C2+1) "KDJ的K"(9,3,3)ANDCROSS("KDJ的D"(9,3,3),"KDJ的K"(9,3,3)) C3赋值:上次1日前的"RSI的RSI2"(6,12,24)上穿"RSI的RSI1"(6,12,24)距今天数 D3赋值:C3+1日前的收盘价 CANDREF("RSI的RSI1"(6,12,24),C3+1) "RSI的RSI1"(6,12,24)ANDCROSS("RSI的RSI2"(6,12,24),"RSI的RSI1"(6,12,24)) 输出MACD底背:如果B1 ,返回?,否则返回? 0,-0.1,0),画红色,POINTDOT 输出KDJ底背:如果B2 ,返回?,否则返回? 0,-0.1,0),COLORFF00FF,POINTDOT 输出RSI底背:如果B3 ,返回?,否则返回? 0,-0.1,0),画黄色,POINTDOT 输出MACD顶背:如果D1 ,返回?,否则返回? 0,0.1,0),COLOR00FF00,POINTDOT 输出KDJ顶背:如果D2 ,返回?,否则返回? 0,0.1,0),COLORFFCC66,POINTDOT 输出RSI顶背:如果D3 ,返回?,否则返回? 0,0.1,0),画白色,POINTDOT 当满足条件B1 时,在?和?位置之间画柱状线,宽度为?,?不为0则画空心柱. 0,-0.1,0,2,0),画红色 当满足条件B2 时,在?和?位置之间画柱状线,宽度为?,?不为0则画空心柱. 0,-0.1,0,2,0),COLORFF00FF 当满足条件B3 时,在?和?位置之间画柱状线,宽度为?,?不为0则画空心柱. 0,-0.1,0,2,0),画黄色 当满足条件D1 时,在?和?位置之间画柱状线,宽度为?,?不为0则画空心柱. 0,0.1,0,2,0),COLOR00FF00 当满足条件D2 时,在?和?位置之间画柱状线,宽度为?,?不为0则画空心柱. 0,0.1,0,2,0),COLORFFCC66 当满足条件D3 时,在?和?位置之间画柱状线,宽度为?,?不为0则画空心柱. 0,0.1,0,2,0),画白色 输出量比:(手)/1日前的成交量(手)的5日简单移动平均,COLORCCCCCC,线宽为0 输出地量:如果量比 0.5,返回量比,否则返回0,COLOR00FFFF,线宽为0 输出正常:如果量比 =0.8AND量比 1.5,返回量比,否则返回0,COLORFF00FF,线宽为0 输出温和:如果量比 =1.5AND量比 2.5,返回量比,否则返回0,COLOR00FF00,线宽为0 输出放量:如果量比 =2.5AND量比 5,返回量比,否则返回0,COLORCCCCCC,线宽为0 输出剧量:如果量比 =5AND量比 10,返回量比,否则返回0,COLORFF0000,线宽为0 输出异动:如果量比 =10,返回量比,否则返回0,COLORFFFFFF,线宽为0 2.4,COLORFF00FF 4.5,COLOR00FF00 7.5,COLORCCCCCC AA赋值:量比*3 当满足条件收盘价 =开盘价时,在0和AA位置之间画柱状线,宽度为2.8,0不为0则画空心柱.,COLOR6666CC 当满足条件收盘价 =开盘价时,在0和AA位置之间画柱状线,宽度为2,0不为0则画空心柱.,COLOR7777DD 当满足条件收盘价 =开盘价时,在0和AA位置之间画柱状线,宽度为1,0不为0则画空心柱.,COLOR8888EE 当满足条件收盘价 =开盘价时,在0和AA位置之间画柱状线,宽度为0.5,0不为0则画空心柱.,COLOR9999FF 当满足条件收阴线时,在0和AA位置之间画柱状线,宽度为2.8,0不为0则画空心柱.,COLORCC6666 当满足条件收阴线时,在0和AA位置之间画柱状线,宽度为2,0不为0则画空心柱.,COLORDD7777 当满足条件收阴线时,在0和AA位置之间画柱状线,宽度为1,0不为0则画空心柱.,COLOREE8888 当满足条件收阴线时,在0和AA位置之间画柱状线,宽度为0.5,0不为0则画空心柱.,COLORFF9999 当满足条件地量时,在0和AA位置之间画柱状线,宽度为2.8,0不为0则画空心柱.,COLOR66FFFF 当满足条件放量时,在0和AA位置之间画柱状线,宽度为0,0不为0则画空心柱.,COLORCCCCCC 当满足条件剧量时,在0和AA位置之间画柱状线,宽度为0,0不为0则画空心柱.,COLORFF0000 当满足条件异动时,在0和AA位置之间画柱状线,宽度为0,0不为0则画空心柱.,COLORFFFFFF



    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 量比选股指标公式 加入收藏