相关简介:  量化趋势指标公式                                

  授权方式:免费版

  指标评级:★★★★★

  指标分类:策略

  画线方法:副图/主图

未来函数检测结果:

         暂未发现存在未来函数

量化趋势指标公式源码:

    背景:DRAWGBK(1,RGB(25,25,112),RGB(0,0,128),0,1,0);
    量价:=(vol/CLOSE)/3;
    统计主动买量:=SUM((IF(((量价>0.20)AND(CLOSE>(REF(CLOSE,1)))),量价,0)),0);
    统计主动卖量:=SUM((IF(((量价>0.20)AND(CLOSE<(REF(CLOSE,1)))),量价,0)),0);
    涨停量:((统计主动买量)/统计主动卖量)*10,NODRAW,COLORRED;
    DRAWTEXT_FIX(1,0.04,0,0,'▇'),COLORGRAY;
    DRAWTEXT_FIX(1,0.05,0,0,'▇'),COLORGRAY;
    DRAWTEXT_FIX(1,0.06,0,0,'▇'),COLORGRAY;
    DRAWTEXT_FIX(1,0.07,0,0,'▇'),COLORGRAY;
    DRAWTEXT_FIX(1,0.08,0,0,'▇'),COLORGRAY;
    DRAWTEXT_FIX(1,0.04,0.1,0,'▇'),COLORGRAY;
    DRAWTEXT_FIX(1,0.05,0.1,0,'▇'),COLORGRAY;
    DRAWTEXT_FIX(1,0.06,0.1,0,'▇'),COLORGRAY;
    DRAWTEXT_FIX(1,0.07,0.1,0,'▇'),COLORGRAY;
    DRAWTEXT_FIX(1,0.08,0.1,0,'▇'),COLORGRAY;
    DRAWTEXT_FIX(1,0.04,0.2,0,'▇'),COLORGRAY;
    DRAWTEXT_FIX(1,0.05,0.2,0,'▇'),COLORGRAY;
    DRAWTEXT_FIX(1,0.06,0.2,0,'▇'),COLORGRAY;
    DRAWTEXT_FIX(1,0.07,0.2,0,'▇'),COLORGRAY;
    DRAWTEXT_FIX(1,0.08,0.2,0,'▇'),COLORGRAY;
    DRAWTEXT_FIX(1,0.04,0.3,0,'▇'),COLORGRAY;
    DRAWTEXT_FIX(1,0.05,0.3,0,'▇'),COLORGRAY;
    DRAWTEXT_FIX(1,0.06,0.3,0,'▇'),COLORGRAY;
    DRAWTEXT_FIX(1,0.07,0.3,0,'▇'),COLORGRAY;
    DRAWTEXT_FIX(1,0.08,0.3,0,'▇'),COLORGRAY;
    DRAWTEXT_FIX(1,0.04,0.4,0,'▇'),COLORGRAY;
    DRAWTEXT_FIX(1,0.05,0.4,0,'▇'),COLORGRAY;
    DRAWTEXT_FIX(1,0.06,0.4,0,'▇'),COLORGRAY;
    DRAWTEXT_FIX(1,0.07,0.4,0,'▇'),COLORGRAY;
    DRAWTEXT_FIX(1,0.08,0.4,0,'▇'),COLORGRAY;
    DRAWTEXT_FIX(1,0.04,0.5,0,'▇'),COLORGRAY;
    DRAWTEXT_FIX(1,0.05,0.5,0,'▇'),COLORGRAY;
    DRAWTEXT_FIX(1,0.06,0.5,0,'▇'),COLORGRAY;
    DRAWTEXT_FIX(1,0.07,0.5,0,'▇'),COLORGRAY;
    DRAWTEXT_FIX(1,0.08,0.5,0,'▇'),COLORGRAY;
    DRAWTEXT_FIX(1,0.04,0.6,0,'▇'),COLORGRAY;
    DRAWTEXT_FIX(1,0.05,0.6,0,'▇'),COLORGRAY;
    DRAWTEXT_FIX(1,0.06,0.6,0,'▇'),COLORGRAY;
    DRAWTEXT_FIX(1,0.07,0.6,0,'▇'),COLORGRAY;
    DRAWTEXT_FIX(1,0.08,0.6,0,'▇'),COLORGRAY;
    DRAWTEXT_FIX(1,0.04,0.7,0,'▇'),COLORGRAY;
    DRAWTEXT_FIX(1,0.05,0.7,0,'▇'),COLORGRAY;
    DRAWTEXT_FIX(1,0.06,0.7,0,'▇'),COLORGRAY;
    DRAWTEXT_FIX(1,0.07,0.7,0,'▇'),COLORGRAY;
    DRAWTEXT_FIX(1,0.08,0.7,0,'▇'),COLORGRAY;
    DRAWTEXT_FIX(1,0.04,0.8,0,'▇'),COLORWHITE;
    DRAWTEXT_FIX(1,0.05,0.8,0,'▇'),COLORWHITE;
    DRAWTEXT_FIX(1,0.06,0.8,0,'▇'),COLORWHITE;
    DRAWTEXT_FIX(1,0.07,0.8,0,'▇'),COLORWHITE;
    DRAWTEXT_FIX(1,0.08,0.8,0,'▇'),COLORWHITE;
    DRAWTEXT_FIX(1,0.04,0.9,0,'▇'),COLORWHITE;
    DRAWTEXT_FIX(1,0.05,0.9,0,'▇'),COLORWHITE;
    DRAWTEXT_FIX(1,0.06,0.9,0,'▇'),COLORWHITE;
    DRAWTEXT_FIX(1,0.07,0.9,0,'▇'),COLORWHITE;
    DRAWTEXT_FIX(1,0.08,0.9,0,'▇'),COLORWHITE;
    DRAWTEXT_FIX(1,0.04,1,0,'▇'),COLORWHITE;
    DRAWTEXT_FIX(1,0.05,1,0,'▇'),COLORWHITE;
    DRAWTEXT_FIX(1,0.06,1,0,'▇'),COLORWHITE;
    DRAWTEXT_FIX(1,0.07,1,0,'▇'),COLORWHITE;
    DRAWTEXT_FIX(1,0.08,1,0,'▇'),COLORWHITE;
    DRAWTEXT_FIX(涨停量>30,0.04,0,0,'▇'),COLORYELLOW;
    DRAWTEXT_FIX(涨停量>30,0.05,0,0,'▇'),COLORYELLOW;
    DRAWTEXT_FIX(涨停量>30,0.06,0,0,'▇'),COLORYELLOW;
    DRAWTEXT_FIX(涨停量>30,0.07,0,0,'▇'),COLORYELLOW;
    DRAWTEXT_FIX(涨停量>30,0.08,0,0,'▇'),COLORYELLOW;
    DRAWNUMBER_FIX(涨停量ANDISLASTBAR,0.04,0,0,涨停量),LINETHICK8,COLORRED;
    DRAWTEXT_FIX(涨停量>30,0.04,0.1,0,'▇'),COLORYELLOW;
    DRAWTEXT_FIX(涨停量>30,0.05,0.1,0,'▇'),COLORYELLOW;
    DRAWTEXT_FIX(涨停量>30,0.06,0.1,0,'▇'),COLORYELLOW;
    DRAWTEXT_FIX(涨停量>30,0.07,0.1,0,'▇'),COLORYELLOW;
    DRAWTEXT_FIX(涨停量>30,0.08,0.1,0,'▇'),COLORYELLOW;
    DRAWTEXT_FIX(涨停量>30,0.04,0.2,0,'▇'),COLORYELLOW;
    DRAWTEXT_FIX(涨停量>30,0.05,0.2,0,'▇'),COLORYELLOW;
    DRAWTEXT_FIX(涨停量>30,0.06,0.2,0,'▇'),COLORYELLOW;
    DRAWTEXT_FIX(涨停量>30,0.07,0.2,0,'▇'),COLORYELLOW;
    DRAWTEXT_FIX(涨停量>30,0.08,0.2,0,'▇'),COLORYELLOW;
    DRAWTEXT_FIX(涨停量>30,0.03,0.2,0,'●'),COLORYELLOW;
    DRAWTEXT_FIX(涨停量>30,0.03,0.1,0,'●'),COLORYELLOW;
    DRAWTEXT_FIX(涨停量>30,0.03,0,0,'●'),COLORYELLOW;
    DRAWTEXT_FIX(涨停量>30,0.08,0,0,'←早盘obv值保持20,30以上出绿钻有涨停可能'),COLORYELLOW;
    涨停量▇:=(统计主动买量/统计主动卖量)*40,LINETHICK2,NODRAW,COLORRED;
    DRAWTEXT_FIX(20<涨停量▇<30,0.04,0.3,0,'▇'),COLORRED;
    DRAWTEXT_FIX(20<涨停量▇<30,0.05,0.3,0,'▇'),COLORRED;
    DRAWTEXT_FIX(20<涨停量▇<30,0.06,0.3,0,'▇'),COLORRED;
    DRAWTEXT_FIX(20<涨停量▇<30,0.07,0.3,0,'▇'),COLORRED;
    DRAWTEXT_FIX(20<涨停量▇<30,0.08,0.3,0,'▇'),COLORRED;
    DRAWTEXT_FIX(20<涨停量▇<30,0.04,0.4,0,'▇'),COLORRED;
    DRAWTEXT_FIX(20<涨停量▇<30,0.05,0.4,0,'▇'),COLORRED;
    DRAWTEXT_FIX(20<涨停量▇<30,0.06,0.4,0,'▇'),COLORRED;
    DRAWTEXT_FIX(20<涨停量▇<30,0.07,0.4,0,'▇'),COLORRED;
    DRAWTEXT_FIX(20<涨停量▇<30,0.08,0.4,0,'▇'),COLORRED;
    DRAWTEXT_FIX(20<涨停量▇<30,0.04,0.5,0,'▇'),COLORRED;
    DRAWTEXT_FIX(20<涨停量▇<30,0.05,0.5,0,'▇'),COLORRED;
    DRAWTEXT_FIX(20<涨停量▇<30,0.06,0.5,0,'▇'),COLORRED;
    DRAWTEXT_FIX(20<涨停量▇<30,0.07,0.5,0,'▇'),COLORRED;
    DRAWTEXT_FIX(20<涨停量▇<30,0.08,0.5,0,'▇'),COLORRED;
    OBV:=(expma(CLOSE,500)-REF(EXPMA(CLOSE,500),1))/REF(EXPMA(CLOSE,500),1)*100,COLORSTICK;
    主力:=EXPMA((EXPMA(CLOSE,500)-REF(EXPMA(CLOSE,500),1))/REF(EXPMA(CLOSE,500),1)*100,120)-0.0004,LINETHICK5,COLORMAGENTA;
    散户:=EXPMA((EXPMA(CLOSE,500)-REF(EXPMA(CLOSE,500),1))/REF(EXPMA(CLOSE,500),1)*100,200),LINETHICK5,COLORGREEN;
    DRAWICON(crOSS(EXPMA(OBV,120)-0.0004,EXPMA(OBV,200)),EXPMA(OBV,200)*1,27);

量化趋势指标公式源码注释翻译结果

    输出背景:填充背景
    量价赋值:(成交量(手)/收盘价)/3
    统计主动买量赋值:(如果((量价>0.20)AND(收盘价>(1日前的收盘价))),返回量价,否则返回0)的历史累和
    统计主动卖量赋值:(如果((量价>0.20)AND(收盘价<(1日前的收盘价))),返回量价,否则返回0)的历史累和
    输出涨停量:((统计主动买量)/统计主动卖量)*10,NODRAW,画红色
    当满足条件1时,在横轴0.04纵轴0位置书写文字,画深灰色
    当满足条件1时,在横轴0.05纵轴0位置书写文字,画深灰色
    当满足条件1时,在横轴0.06纵轴0位置书写文字,画深灰色
    当满足条件1时,在横轴0.07纵轴0位置书写文字,画深灰色
    当满足条件1时,在横轴0.08纵轴0位置书写文字,画深灰色
    当满足条件1时,在横轴0.04纵轴0.1位置书写文字,画深灰色
    当满足条件1时,在横轴0.05纵轴0.1位置书写文字,画深灰色
    当满足条件1时,在横轴0.06纵轴0.1位置书写文字,画深灰色
    当满足条件1时,在横轴0.07纵轴0.1位置书写文字,画深灰色
    当满足条件1时,在横轴0.08纵轴0.1位置书写文字,画深灰色
    当满足条件1时,在横轴0.04纵轴0.2位置书写文字,画深灰色
    当满足条件1时,在横轴0.05纵轴0.2位置书写文字,画深灰色
    当满足条件1时,在横轴0.06纵轴0.2位置书写文字,画深灰色
    当满足条件1时,在横轴0.07纵轴0.2位置书写文字,画深灰色
    当满足条件1时,在横轴0.08纵轴0.2位置书写文字,画深灰色
    当满足条件1时,在横轴0.04纵轴0.3位置书写文字,画深灰色
    当满足条件1时,在横轴0.05纵轴0.3位置书写文字,画深灰色
    当满足条件1时,在横轴0.06纵轴0.3位置书写文字,画深灰色
    当满足条件1时,在横轴0.07纵轴0.3位置书写文字,画深灰色
    当满足条件1时,在横轴0.08纵轴0.3位置书写文字,画深灰色
    当满足条件1时,在横轴0.04纵轴0.4位置书写文字,画深灰色
    当满足条件1时,在横轴0.05纵轴0.4位置书写文字,画深灰色
    当满足条件1时,在横轴0.06纵轴0.4位置书写文字,画深灰色
    当满足条件1时,在横轴0.07纵轴0.4位置书写文字,画深灰色
    当满足条件1时,在横轴0.08纵轴0.4位置书写文字,画深灰色
    当满足条件1时,在横轴0.04纵轴0.5位置书写文字,画深灰色
    当满足条件1时,在横轴0.05纵轴0.5位置书写文字,画深灰色
    当满足条件1时,在横轴0.06纵轴0.5位置书写文字,画深灰色
    当满足条件1时,在横轴0.07纵轴0.5位置书写文字,画深灰色
    当满足条件1时,在横轴0.08纵轴0.5位置书写文字,画深灰色
    当满足条件1时,在横轴0.04纵轴0.6位置书写文字,画深灰色
    当满足条件1时,在横轴0.05纵轴0.6位置书写文字,画深灰色
    当满足条件1时,在横轴0.06纵轴0.6位置书写文字,画深灰色
    当满足条件1时,在横轴0.07纵轴0.6位置书写文字,画深灰色
    当满足条件1时,在横轴0.08纵轴0.6位置书写文字,画深灰色
    当满足条件1时,在横轴0.04纵轴0.7位置书写文字,画深灰色
    当满足条件1时,在横轴0.05纵轴0.7位置书写文字,画深灰色
    当满足条件1时,在横轴0.06纵轴0.7位置书写文字,画深灰色
    当满足条件1时,在横轴0.07纵轴0.7位置书写文字,画深灰色
    当满足条件1时,在横轴0.08纵轴0.7位置书写文字,画深灰色
    当满足条件1时,在横轴0.04纵轴0.8位置书写文字,画白色
    当满足条件1时,在横轴0.05纵轴0.8位置书写文字,画白色
    当满足条件1时,在横轴0.06纵轴0.8位置书写文字,画白色
    当满足条件1时,在横轴0.07纵轴0.8位置书写文字,画白色
    当满足条件1时,在横轴0.08纵轴0.8位置书写文字,画白色
    当满足条件1时,在横轴0.04纵轴0.9位置书写文字,画白色
    当满足条件1时,在横轴0.05纵轴0.9位置书写文字,画白色
    当满足条件1时,在横轴0.06纵轴0.9位置书写文字,画白色
    当满足条件1时,在横轴0.07纵轴0.9位置书写文字,画白色
    当满足条件1时,在横轴0.08纵轴0.9位置书写文字,画白色
    当满足条件1时,在横轴0.04纵轴1位置书写文字,画白色
    当满足条件1时,在横轴0.05纵轴1位置书写文字,画白色
    当满足条件1时,在横轴0.06纵轴1位置书写文字,画白色
    当满足条件1时,在横轴0.07纵轴1位置书写文字,画白色
    当满足条件1时,在横轴0.08纵轴1位置书写文字,画白色
    当满足条件涨停量>30时,在横轴0.04纵轴0位置书写文字,画黄色
    当满足条件涨停量>30时,在横轴0.05纵轴0位置书写文字,画黄色
    当满足条件涨停量>30时,在横轴0.06纵轴0位置书写文字,画黄色
    当满足条件涨停量>30时,在横轴0.07纵轴0位置书写文字,画黄色
    当满足条件涨停量>30时,在横轴0.08纵轴0位置书写文字,画黄色
    当满足条件涨停量ANDISLASTBAR时,在横轴0.04纵轴0位置书写数字,线宽为8,画红色
    当满足条件涨停量>30时,在横轴0.04纵轴0.1位置书写文字,画黄色
    当满足条件涨停量>30时,在横轴0.05纵轴0.1位置书写文字,画黄色
    当满足条件涨停量>30时,在横轴0.06纵轴0.1位置书写文字,画黄色
    当满足条件涨停量>30时,在横轴0.07纵轴0.1位置书写文字,画黄色
    当满足条件涨停量>30时,在横轴0.08纵轴0.1位置书写文字,画黄色
    当满足条件涨停量>30时,在横轴0.04纵轴0.2位置书写文字,画黄色
    当满足条件涨停量>30时,在横轴0.05纵轴0.2位置书写文字,画黄色
    当满足条件涨停量>30时,在横轴0.06纵轴0.2位置书写文字,画黄色
    当满足条件涨停量>30时,在横轴0.07纵轴0.2位置书写文字,画黄色
    当满足条件涨停量>30时,在横轴0.08纵轴0.2位置书写文字,画黄色
    当满足条件涨停量>30时,在横轴0.03纵轴0.2位置书写文字,画黄色
    当满足条件涨停量>30时,在横轴0.03纵轴0.1位置书写文字,画黄色
    当满足条件涨停量>30时,在横轴0.03纵轴0位置书写文字,画黄色
    当满足条件涨停量>30时,在横轴0.08纵轴0位置书写文字,画黄色
    涨停量▇赋值:(统计主动买量/统计主动卖量)*40,线宽为2,NODRAW,画红色
    当满足条件20<涨停量▇<30时,在横轴0.04纵轴0.3位置书写文字,画红色
    当满足条件20<涨停量▇<30时,在横轴0.05纵轴0.3位置书写文字,画红色
    当满足条件20<涨停量▇<30时,在横轴0.06纵轴0.3位置书写文字,画红色
    当满足条件20<涨停量▇<30时,在横轴0.07纵轴0.3位置书写文字,画红色
    当满足条件20<涨停量▇<30时,在横轴0.08纵轴0.3位置书写文字,画红色
    当满足条件20<涨停量▇<30时,在横轴0.04纵轴0.4位置书写文字,画红色
    当满足条件20<涨停量▇<30时,在横轴0.05纵轴0.4位置书写文字,画红色
    当满足条件20<涨停量▇<30时,在横轴0.06纵轴0.4位置书写文字,画红色
    当满足条件20<涨停量▇<30时,在横轴0.07纵轴0.4位置书写文字,画红色
    当满足条件20<涨停量▇<30时,在横轴0.08纵轴0.4位置书写文字,画红色
    当满足条件20<涨停量▇<30时,在横轴0.04纵轴0.5位置书写文字,画红色
    当满足条件20<涨停量▇<30时,在横轴0.05纵轴0.5位置书写文字,画红色
    当满足条件20<涨停量▇<30时,在横轴0.06纵轴0.5位置书写文字,画红色
    当满足条件20<涨停量▇<30时,在横轴0.07纵轴0.5位置书写文字,画红色
    当满足条件20<涨停量▇<30时,在横轴0.08纵轴0.5位置书写文字,画红色
    OBV赋值:(收盘价的500日指数移动平均-1日前的收盘价的500日指数移动平均)/1日前的收盘价的500日指数移动平均*100,COLORSTICK
    主力赋值:(收盘价的500日指数移动平均-1日前的收盘价的500日指数移动平均)/1日前的收盘价的500日指数移动平均*100的120日指数移动平均-0.0004,线宽为5,画洋红色
    散户赋值:(收盘价的500日指数移动平均-1日前的收盘价的500日指数移动平均)/1日前的收盘价的500日指数移动平均*100的200日指数移动平均,线宽为5,画绿色
    当满足条件OBV的120日指数移动平均-0.0004上穿OBV的200日指数移动平均时,在OBV的200日指数移动平均*1位置画27号图标

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。