• 网站首页
  • 股票知识
  • 股票公式
  • 散户炒股
  • 问答百科
  • 缠中说禅
  • 概念股
  • 【炒股入门知识学习】通达信源码:撑压线,手工预测,两点买入

    发布时间: 2022-05-06 16:35 首页:股票一点通>股票公式>通达信公式> 阅读()
    1、撑压线

    {公式名称: 撑压线

    公式描述:
    参数数量: 1
    参数1: X, 最小: 0, 最大: 1, 缺省: 0
    公式类型: 技术指标公式-其他类型
    画线方法: 主图叠加
    公式版本: 0
    显示小数: 缺省位数
    坐标线位置: 自动
    额外Y轴分界: 无

    参数精灵:
    请设置计算参数:
    X: Param#0 (0.00--1.00)
    用法譯释:无
    公式源码:}

    如果涨10倍:IF(X,CONST(LLV(LOW,250)*10),DRAWNULL);
    STICKLINE(如果涨10倍,如果涨10倍,如果涨10倍*1.1,1,0);
    X_1:=CLOSE/REF(CLOSE,1)>1.095;
    STICKLINE(X_1,OPEN,CLOSE,0.8,0),COLORYELLOW;
    DRAWTEXT_FIX(ISLASTBAR,0,0,0,HYBLOCK);
    DRAWTEXT_FIX(ISLASTBAR,0.05,0,0,DYBLOCK);
    DRAWTEXT_FIX(ISLASTBAR,0.1,0,0,GNBLOCK);
    X_2:=MA(VOL,5);
    X_3:=CONST(PEAKBARS(X_2,50,1));
    X_4:=CONST(PEAKBARS(X_2,50,2));
    X_5:=CONST(PEAKBARS(X_2,50,3));
    X_6:=CONST(PEAKBARS(X_2,50,4));
    X_7:=CONST(PEAKBARS(X_2,50,5));
    X_8:=CONST(PEAKBARS(X_2,50,6));
    X_9:=CONST(TROUGHBARS(X_2,50,1));
    X_10:=CONST(TROUGHBARS(X_2,50,2));
    X_11:=CONST(TROUGHBARS(X_2,50,3));
    X_12:=CONST(TROUGHBARS(X_2,50,4));
    X_13:=CONST(TROUGHBARS(X_2,50,5));
    X_14:=CONST(TROUGHBARS(X_2,50,6));
    X_15:=CONST(FINDLOW(LOW,X_3,X_4-X_3,1));
    X_16:=CONST(FINDLOW(LOW,X_4,X_5-X_4,1));
    X_17:=CONST(FINDLOW(LOW,X_5,X_6-X_5,1));
    X_18:=CONST(FINDLOW(LOW,X_6,X_7-X_6,1));
    X_19:=CONST(FINDLOW(LOW,X_7,X_8-X_7,1));
    DRAWLINE(LOW=X_15 AND CURRBARSCOUNT>X_3,X_15,CURRBARSCOUNT=1,X_15,1),DOTLINE,COLORGREEN;
    DRAWLINE(LOW=X_16 AND CURRBARSCOUNT>X_4,X_16,CURRBARSCOUNT=1,X_16,1),DOTLINE,COLORGREEN;
    DRAWLINE(LOW=X_17 AND CURRBARSCOUNT>X_5,X_17,CURRBARSCOUNT=1,X_17,1),DOTLINE,COLORGREEN;
    DRAWLINE(LOW=X_18 AND CURRBARSCOUNT>X_6,X_18,CURRBARSCOUNT=1,X_18,1),DOTLINE,COLORGREEN;
    DRAWLINE(LOW=X_19 AND CURRBARSCOUNT>X_7,X_19,CURRBARSCOUNT=1,X_19,1),DOTLINE,COLORGREEN;
    X_20:=CONST(FINDHIGH(HIGH,X_9,X_10-X_9,1));
    X_21:=CONST(FINDHIGH(HIGH,X_10,X_11-X_10,1));
    X_22:=CONST(FINDHIGH(HIGH,X_11,X_12-X_11,1));
    X_23:=CONST(FINDHIGH(HIGH,X_12,X_13-X_12,1));
    X_24:=CONST(FINDHIGH(HIGH,X_13,X_14-X_13,1));
    DRAWLINE(HIGH=X_20 AND CURRBARSCOUNT>X_9,HIGH,CURRBARSCOUNT=1,X_20,1),DOTLINE,COLORRED;
    DRAWLINE(HIGH=X_21 AND CURRBARSCOUNT>X_10,HIGH,CURRBARSCOUNT=1,X_21,1),DOTLINE,COLORRED;
    DRAWLINE(HIGH=X_22 AND CURRBARSCOUNT>X_11,HIGH,CURRBARSCOUNT=1,X_22,1),DOTLINE,COLORRED;
    DRAWLINE(HIGH=X_23 AND CURRBARSCOUNT>X_12,HIGH,CURRBARSCOUNT=1,X_23,1),DOTLINE,COLORRED;
    DRAWLINE(HIGH=X_24 AND CURRBARSCOUNT>X_13,HIGH,CURRBARSCOUNT=1,X_24,1),DOTLINE,COLORRED;



    2、手工预测,精算支撑压力

    {公式名称: 手工预测

    公式描述:
    参数数量: 6
    参数1: 最高1, 最小: 1, 最大: 999, 缺省: 5, 日线: 19
    参数2: 最低1, 最小: 1, 最大: 999, 缺省: 5, 日线: 7
    参数3: M1, 最小: 0, 最大: 999, 缺省: 0
    参数4: M2, 最小: 0, 最大: 100, 缺省: 0
    参数5: M3, 最小: 0, 最大: 999, 缺省: 0
    参数6: M4, 最小: 0, 最大: 999, 缺省: 0
    公式类型: 技术指标公式-特色型
    画线方法: 主图叠加
    公式版本: 0
    显示小数: 缺省位数
    坐标线位置: 自动
    额外Y轴分界: 无

    参数精灵:
    请设置计算参数:
    最高1: Param#0 (1.00--999.00)
    最低1: Param#1 (1.00--999.00)
    M1: Param#2 (0.00--999.00)
    M2: Param#3 (0.00--100.00)
    M3: Param#4 (0.00--999.00)
    M4: Param#5 (0.00--999.00)
    用法注释:无
    公式源码:}

    VAR1:=龙头启动.龙头#DAY;
    MA1:MA(CLOSE,M1),COLORWHITE;
    MA2:MA(CLOSE,M2),COLORYELLOW;
    MA3:MA(CLOSE,M3),COLORCYAN;
    MA4:MA(CLOSE,M4),COLORCYAN;
    VAR2:=IF(PERIOD=5,1,0);
    VAR3:=REF(CLOSE,1)*VAR2;
    VAR4:=REF(HIGH,3)=HHV(HIGH,3*3+1);
    VAR5:=FILTER(VAR4,3);
    VAR6:=BACKSET(VAR5,3+1);
    VAR7:=FILTER(VAR6,3);
    VAR8:=REF(LOW,3)=LLV(LOW,3*3+1);
    VAR9:=FILTER(VAR8,3);
    VAR10:=BACKSET(VAR9,3+1);
    VAR11:=FILTER(VAR10,3);
    VAR12:=(REF(LLV(LOW,2*3),1)+REF(HHV(HIGH,2*3),1))/2;
    VAR13:=(HIGH+LOW)/2;
    VAR14:=VAR7 AND NOT(VAR11 AND VAR12>=VAR13) OR BARSTATUS=2 OR BARSCOUNT(CLOSE)=1;
    VAR15:=VAR7 AND NOT(VAR11 AND VAR12>=VAR13);
    VAR16:=VAR11 AND NOT(VAR7 AND VAR12=VAR13);
    VAR17:=REF(BARSLAST(VAR14),1)+1;
    VAR18:=BACKSET(VAR14 AND COUNT(VAR16,VAR17)>0,LLVBARS(IF(VAR16,LOW,10000),VAR17));
    VAR19:=VAR18>REF(VAR18,1);
    VAR20:=BACKSET(VAR19,2);
    VAR21:=VAR20>REF(VAR20,1);
    VAR22:=VAR21 OR BARSTATUS=2 OR BARSCOUNT(CLOSE)=1;
    VAR23:=REF(BARSLAST(VAR22),1)+1;
    VAR24:=BACKSET(VAR22 AND COUNT(VAR15,VAR23)>0,HHVBARS(IF(VAR15,HIGH,0),VAR23));
    VAR25:=VAR24>REF(VAR24,1);
    VAR26:=BACKSET(VAR25,2);
    VAR27:=VAR26>REF(VAR26,1);
    DRAWLINE(VAR21,LOW,VAR27,HIGH,0),COLORYELLOW;
    DRAWLINE(VAR27,HIGH,VAR21,LOW,0),COLORYELLOW;
    VAR28:=BACKSET(BARSTATUS=2,MIN(BARSLAST(VAR27),BARSLAST(VAR21))+1);
    VAR29:=VAR28>REF(VAR28,1);
    VAR30:=HIGH;
    VAR31:=REF(HIGH,REF(BARSLAST(VAR27),1)+1)>REF(HIGH,REF(BARSLAST(VAR27),1)+2+REF(BARSLAST(VAR27),REF(BARSLAST(VAR27),1)+2));
    VAR32:=VAR30 AND VAR31 AND VAR27;
    VAR33:=BACKSET(VAR32,REF(BARSLAST(VAR27),1)+2);
    VAR34:=VAR33>REF(VAR33,1);
    VAR35:=LOW>REF(LOW,REF(BARSLAST(VAR21),1)+1);
    VAR36:=REF(LOW,REF(BARSLAST(VAR21),1)+1);
    VAR37:=VAR35 AND VAR36 AND VAR21;
    VAR38:=BACKSET(VAR37,REF(BARSLAST(VAR21),1)+2);
    VAR39:=VAR38>REF(VAR38,1);
    VAR40:=VAR34 OR BARSTATUS=2 OR BARSCOUNT(CLOSE)=1;
    VAR41:=REF(BARSLAST(VAR40),1)+1;
    VAR42:=BACKSET(VAR40 AND COUNT(VAR39,VAR41)>0,LLVBARS(IF(VAR39,LOW,POW(10,20)),VAR41));
    VAR43:=VAR42>REF(VAR42,1);
    VAR44:=BACKSET(VAR43,2);
    VAR45:=VAR44>REF(VAR44,1);
    VAR46:=VAR45 OR BARSTATUS=2 OR BARSCOUNT(CLOSE)=1;
    VAR47:=REF(BARSLAST(VAR46),1)+1;
    VAR48:=BACKSET(VAR46 AND COUNT(VAR34,VAR47)>0,HHVBARS(IF(VAR34,HIGH,-POW(10,20)),VAR47));
    VAR49:=VAR48>REF(VAR48,1);
    VAR50:=BACKSET(VAR49,2);
    VAR51:=VAR50>REF(VAR50,1);
    VAR52:=BACKSET(BARSTATUS=2,MIN(BARSLAST(VAR51),BARSLAST(VAR45))+1);
    VAR53:=VAR52>REF(VAR52,1);
    VAR54:=BACKSET(BARSTATUS=2,BARSLAST(VAR21)+1);
    VAR55:=VAR54>REF(VAR54,1);
    VAR56:=BACKSET(VAR55,REF(BARSLAST(VAR21),1)+2);
    VAR57:=VAR56>REF(VAR56,1);
    VAR58:=BACKSET(VAR57,REF(BARSLAST(VAR21),1)+2);
    VAR59:=VAR58>REF(VAR58,1);
    VAR60:=BACKSET(BARSTATUS=2,BARSLAST(VAR27)+1);
    VAR61:=VAR60>REF(VAR60,1);
    VAR62:=BACKSET(VAR61,REF(BARSLAST(VAR27),1)+2);
    VAR63:=VAR62>REF(VAR62,1);
    VAR64:=BACKSET(VAR63,REF(BARSLAST(VAR27),1)+2);
    VAR65:=VAR64>REF(VAR64,1);
    VAR66:=BACKSET(VAR65,REF(BARSLAST(VAR27),1)+2);
    VAR67:=VAR66>REF(VAR66,1);
    VAR68:=BARSLAST(VAR63>0);
    VAR69:=BARSLAST(VAR57>0);
    VAR70:=BARSLAST(VAR62>0);
    VAR71:=BARSLAST(VAR55>0);
    VAR72:=BARSLAST(VAR59>0);
    VAR73:=BARSLAST(VAR65>0);
    VAR74:=BARSLAST(VAR67>0);
    VAR75:=REF(LOW,BARSLAST(VAR55));
    VAR76:=REF(HIGH,BARSLAST(VAR61));
    VAR77:=REF(LOW,BARSLAST(VAR57));
    VAR78:=REF(HIGH,BARSLAST(VAR63));
    VAR79:=DRAWLINE(VAR29,IF(VAR27,HIGH,LOW),BARSTATUS=2,IF(BARSLAST(VAR27)>BARSLAST(VAR21),HIGH,LOW),0);
    VAR80:=HIGHVAR81:=HIGHREF(LOW,1);
    VAR82:=HIGH>REF(HIGH,1) AND LOWVAR83:=HIGH>REF(HIGH,1) AND LOW>REF(LOW,1);
    VAR84:=REF(HIGH,2)REF(HIGH,1) AND REF(LOW,2)VAR85:=COUNT(VAR80,3)>=1 AND LLVBARS(LOW,3)=1 AND VAR83;
    VAR86:=COUNT(VAR80,4)>=1 AND LLVBARS(LOW,4)=2 AND VAR84;
    VAR87:=COUNT(VAR80,4)>=1 AND COUNT(VAR81 OR VAR82,4)=1 AND LLVBARS(LOW,4)=1 AND VAR83;
    VAR88:=COUNT(VAR80,5)>=1 AND COUNT(VAR81 OR VAR82,5)=2 AND LLVBARS(LOW,5)=2 AND VAR84;
    VAR89:=VAR85 OR VAR86 OR VAR87 OR VAR88;
    VAR90:=CLOSE>REF(HIGH,1);
    VAR91:=VAR89 AND VAR90;
    最高价格:HHV(REF(HIGH,最高1-1),2),NODRAW;
    最低价格:LLV(REF(LOW,最低1-1),2),NODRAW;
    VAR92:=最高价格/最低价格;
    VAR93:=SQRT(VAR92);
    VAR94:=SQRT(VAR93);
    VAR95:=最低价格*VAR94;
    预测上点:CONST(VAR95),NODRAW;
    VAR96:=最高价格/最低价格;
    VAR97:=SQRT(VAR96);
    VAR98:=最低价格*VAR97;
    预测中点:CONST(VAR98),NODRAW;
    VAR99:=最高价格/最低价格;
    VAR100:=SQRT(VAR99);
    VAR101:=SQRT(VAR100);
    VAR102:=VAR100+VAR101-1;
    VAR103:=最低价格*VAR102;
    预测下点:CONST(VAR103),NODRAW;
    STICKLINE(CURRBARSCOUNT<=最高1,预测下点,预测下点,5,0),COLORWHITE,LINETHICK2;
    STICKLINE(CURRBARSCOUNT<=最高1,预测上点,预测上点,5,0),COLORWHITE,LINETHICK2;
    STICKLINE(CURRBARSCOUNT<=最高1,预测中点,预测中点,5,0),COLORWHITE,LINETHICK2;
    VAR104:=REFDATE(HHV(HIGH,最高1),DATE);
    VAR105:=REFDATE(LLV(LOW,最高1),DATE);
    STICKLINE(CURRBARSCOUNT=最高1,VAR104,VAR105,0,(-1)),COLORYELLOW;
    VAR106:=REFDATE(HHV(HIGH,最低1),DATE);
    VAR107:=REFDATE(LLV(LOW,最低1),DATE);
    STICKLINE(CURRBARSCOUNT=最低1,VAR106,VAR107,0,(-1)),COLORYELLOW;
    DRAWTEXT(CURRBARSCOUNT=最高1,VAR105,77),COLORWHITE;
    DRAWTEXT(CURRBARSCOUNT=最低1,VAR105,78),COLORWHITE;


    {公式名称: 指标}
    核心:1;




    3、两点买入( 顶尖财经 股票学院: )

    {公式名称: 两点买入

    参数数量: 2
    参数1: 最高1, 最小: 1, 最大: 1000, 缺省: 5, 日线: 10
    参数2: 最低1, 最小: 1, 最大: 1000, 缺省: 5, 日线: 39
    公式类型: 技术指标公式-其他类型
    画线方法: 主图叠加
    参数精灵:
    请设置计算参数:
    最高1: Param#0 (1.00--1000.00)
    最低1: Param#1 (1.00--1000.00)
    用法注释:无
    公式源码:}

    最高价格:HHV(REF(HIGH,最高1-1),2),NODRAW;
    最低价格:LLV(REF(LOW,最低1-1),2),NODRAW;
    X_1:=最高价格/最低价格;
    X_2:=SQRT(X_1);
    X_3:=SQRT(X_2);
    X_4:=最高价格/X_3;
    预测上点:CONST(X_4),NODRAW;
    X_5:=最高价格/最低价格;
    X_6:=SQRT(X_5);
    X_7:=最高价格/X_6;
    预测中点:CONST(X_7),NODRAW;
    X_8:=最高价格/最低价格;
    X_9:=SQRT(X_8);
    X_10:=SQRT(X_9);
    X_11:=X_9+X_10-1;
    X_12:=最高价格/X_11;
    预测下点:CONST(X_12),NODRAW;
    STICKLINE(CURRBARSCOUNT<=最高1,预测下点,预测下点,5,0),COLORWHITE,LINETHICK2;
    STICKLINE(CURRBARSCOUNT<=最高1,预测上点,预测上点,5,0),COLORWHITE,LINETHICK2;
    STICKLINE(CURRBARSCOUNT<=最高1,预测中点,预测中点,5,0),COLORWHITE,LINETHICK2;
    X_13:=REFDATE(HHV(HIGH,最高1),DATE);
    X_14:=REFDATE(LLV(LOW,最高1),DATE);
    STICKLINE(CURRBARSCOUNT=最高1,X_13,X_14,0,(-1)),COLORYELLOW;
    X_15:=REFDATE(HHV(HIGH,最低1),DATE);
    X_16:=REFDATE(LLV(LOW,最低1),DATE);
    STICKLINE(CURRBARSCOUNT=最低1,X_15,X_16,0,(-1)),COLORYELLOW;
    DRAWTEXT(CURRBARSCOUNT=最高1,X_14,77),COLORWHITE;
    DRAWTEXT(CURRBARSCOUNT=最低1,X_14,78),COLORWHITE;


    特别声明:文章内容仅供参考,不造成任何投资建议。投资者据此操作,风险自担。

    网站首页-股票知识--股票公式-散户炒股-问答百科--缠中说禅-概念股

    未经本站书面特别授权,请勿转载或建立镜像

    Copyright @ 2020 All Rights Reserved.版权所有 XMl地图
    Baidu
    map