通达信版 左峰梯源码 量学看盘系统主图三指标公式
2018-03-16原创 编 辑:翔博软件
答:只需加微信:396950280申请加入爱公式VIP微信群即可,天天有更新!
公式源码:
{公式名称: 左峰梯
公式描述: 量学看盘系统主图三
无参数
公式类型: 技术指标公式-其他类型
画线方法: 主图叠加
公式版本: 0
显示小数: 缺省位数
坐标线位置: 自动
额外Y轴分界: 无
参数精灵:无
用法注释:无
公式源码:}
X_1:=CONST(HHV(REF(HIGH,1),240));
X_2:=CONST(LLV(REF(LOW,1),240));
X_3:=X_1-X_2;
X_4:=LOW-X_3*0.03;
X_5:=HIGH+X_3*0.03;
X_6:=CLOSE>500;
X_7:=MAX(CLOSE,OPEN);
X_8:=MIN(CLOSE,OPEN);
X_9:=0;
X_10:=1;
X_11:=IF(X_6,HIGH,X_7);
X_12:=IF(X_6,LOW,X_8);
X_13:=IF(CLOSE>OPEN,IF(X_10=0,LOW,X_12),IF(X_10=0,HIGH,X_11));
X_14:=2/1000;
X_15:=CURRBARSCOUNT;
X_16:=120;
X_17:=X_15<=X_16;
X_18:=LOW;
X_19:=IF(X_9=0,X_18,REF(X_9,X_9));
基准价:IF(X_17,CONST(X_19),DRAWNULL),DOTLINE,COLORRED;
X_20:=基准价;
X_21:=X_20*X_14;
X_22:=ABS(LOW-X_20)<=X_21;
X_23:=ABS(OPEN-X_20)<=X_21;
X_24:=ABS(CLOSE-X_20)<=X_21;
X_25:=ABS(HIGH-X_20)<=X_21;
X_26:=X_22 OR X_23 OR X_24 OR X_25 AND X_17 AND X_15!=1;
X_27:=COUNT(X_26,X_16);
精准点个数:IF(X_27>0,X_27+1,0),NODRAW,COLORRED;
X_28:=AMOUNT/VOL/100;
X_29:=CLOSE>OPEN AND REF(CLOSE,1)>X_28 AND CLOSE>X_28 AND CLOSE<300;
STICKLINE(X_29,OPEN,CLOSE,1,0),COLORLICYAN;
X_30:=OPEN>CLOSE AND CLOSE<X_28 AND X_28>REF(CLOSE,1);
STICKLINE(X_30,OPEN,CLOSE,1,0),COLORRED;
X_31:=VOL>REF(VOL,1)*0.95 AND VOL<REF(VOL,1)*1.05;
X_32:=WINNER(CLOSE)-WINNER(OPEN)>=0.2 AND X_31;
STICKLINE(X_32,OPEN,CLOSE,1,0),COLORBLUE;
X_33:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;
X_34:=NAMELIKE(1) OR NAMELIKE(2) OR NAMELIKE(3) AND X_33>=4.945;
X_35:=NAMELIKE(1) OR NAMELIKE(2) OR NAMELIKE(3) AND X_33<=(-4.945);
涨停价:IF(X_34,REF(CLOSE,1)*1.05,REF(CLOSE,1)*1.1),NODRAW,COLORRED;
跌停价:IF(X_35,REF(CLOSE,1)*0.95,REF(CLOSE,1)*0.9),NODRAW,COLORGREEN;
X_36:=REF(CLOSE,1);
X_37:=CLOSE=ZTPRICE(REF(CLOSE,1),0.1);
STICKLINE(X_37,OPEN,CLOSE,2,0),COLORMAGENTA;
STICKLINE(X_37,OPEN,CLOSE,1,0),COLORMAGENTA;
X_38:=CLOSE=DTPRICE(REF(CLOSE,1),0.1);
STICKLINE(X_38,OPEN,CLOSE,2,0),COLORGREEN;
STICKLINE(X_38,HIGH,LOW,0,1),COLORGREEN;
X_39:=CLOSE;
X_40:=REF(X_39,10)=HHV(X_39,2*10+1);
X_41:=FILTER(X_40,10);
X_42:=BACKSET(X_41,10+1);
X_43:=FILTER(X_42,10);
X_44:=REF(X_39,10)=LLV(X_39,2*10+1);
X_45:=FILTER(X_44,10);
X_46:=BACKSET(X_45,10+1);
X_47:=FILTER(X_46,10);
X_48:=REF(CLOSE,BARSLAST(X_47));
X_49:=REF(CLOSE,BARSLAST(X_43));
STICKLINE(CLOSE,X_49,X_49,8,0),COLORMAGENTA;
STICKLINE(CLOSE,X_48,X_48,8,0),COLORRED;
STICKLINE(X_43,CLOSE,OPEN,1,0),COLORBROWN;
STICKLINE(X_43,CLOSE,OPEN,1,0),COLORBROWN;
STICKLINE(X_47,CLOSE,OPEN,1,0),COLORBLUE;
STICKLINE(X_47,CLOSE,OPEN,1,0),COLORBLUE;
X_50:=OPEN-(OPEN-CLOSE)/3;
X_51:=(OPEN+CLOSE)/2;
X_52:=OPEN-2*(OPEN-CLOSE)/3;
STICKLINE((OPEN+CLOSE)/2 AND CLOSE/REF(CLOSE,1)>=1.035 OR REF(CLOSE,1)/CLOSE>=1.035,(OPEN+CLOSE)/2,(OPEN+CLOSE)/2,3,0),COLORBROWN;
X_53:=MAX(CLOSE,OPEN);
X_54:=MIN(CLOSE,OPEN);
X_55:=X_54-0.01>=REF(X_53,1);
流通市值:FINANCE(40)/100000000,NODRAW;
MA5角度:ATAN((MA(CLOSE,5)/REF(MA(CLOSE,5),1)-1)*100)*180/3.142,NODRAW,COLORRED;
循环年位置:(CLOSE-LLV(CLOSE,225))/(HHV(CLOSE,225)-LLV(CLOSE,225))*100,NODRAW,COLORGREEN;
X_56:=HHV(VOL,10);
X_57:=BARSLAST(X_56=VOL);
X_58:=CROSS(REF(MAX(CLOSE,OPEN),X_57),CLOSE);
STICKLINE(X_58,MAX(CLOSE,OPEN)*1.02,MIN(CLOSE,OPEN)*0.98,0,1),COLORRED;
STICKLINE(X_58,(OPEN+CLOSE)/2,(OPEN+CLOSE)/2,10,0),COLORRED;
DRAWICON(OPEN>REF(MAX(CLOSE,OPEN),1) AND CLOSE>OPEN AND CLOSE>REF(CLOSE,1) AND CLOSE>MA(CLOSE,5),LOW*0.97,11);
X_59:=CLOSE<REF(CLOSE,4) AND REF(CLOSE,1)>REF(CLOSE,5);
X_60:=REFX(CLOSE,1)<REF(CLOSE,3) AND REFX(CLOSE,2)<REF(CLOSE,2) AND REFX(CLOSE,3)<REF(CLOSE,1) AND REFX(CLOSE,4)<CLOSE AND REFX(CLOSE,5)<REFX(CLOSE,1) AND REFX(CLOSE,6)<REFX(CLOSE,2) AND REFX(CLOSE,7)<REFX(CLOSE,3) AND REFX(CLOSE,8)<REFX(CLOSE,4);
X_61:=CLOSE<REF(CLOSE,4) AND REF(CLOSE,1)<REF(CLOSE,5) AND REF(CLOSE,2)>REF(CLOSE,6);
X_62:=REFX(CLOSE,1)<REF(CLOSE,3) AND REFX(CLOSE,2)<REF(CLOSE,2) AND REFX(CLOSE,3)<REF(CLOSE,1) AND REFX(CLOSE,4)<CLOSE AND REFX(CLOSE,5)<REFX(CLOSE,1) AND REFX(CLOSE,6)<REFX(CLOSE,2) AND REFX(CLOSE,7)<REFX(CLOSE,3);
X_63:=CLOSE<REF(CLOSE,4) AND REF(CLOSE,1)<REF(CLOSE,5) AND REF(CLOSE,2)<REF(CLOSE,6) AND REF(CLOSE,3)>REF(CLOSE,7);
X_64:=REFX(CLOSE,1)<REF(CLOSE,3) AND REFX(CLOSE,2)<REF(CLOSE,2) AND REFX(CLOSE,3)<REF(CLOSE,1) AND REFX(CLOSE,4)<CLOSE AND REFX(CLOSE,5)<REFX(CLOSE,1) AND REFX(CLOSE,6)<REFX(CLOSE,2);
X_65:=CLOSE<REF(CLOSE,4) AND REF(CLOSE,1)<REF(CLOSE,5) AND REF(CLOSE,2)<REF(CLOSE,6) AND REF(CLOSE,3)<REF(CLOSE,7) AND REF(CLOSE,4)>REF(CLOSE,8);
X_66:=REFX(CLOSE,1)<REF(CLOSE,3) AND REFX(CLOSE,2)<REF(CLOSE,2) AND REFX(CLOSE,3)<REF(CLOSE,1) AND REFX(CLOSE,4)<CLOSE AND REFX(CLOSE,5)<REFX(CLOSE,1);
X_67:=CLOSE<REF(CLOSE,4) AND REF(CLOSE,1)<REF(CLOSE,5) AND REF(CLOSE,2)<REF(CLOSE,6) AND REF(CLOSE,3)<REF(CLOSE,7) AND REF(CLOSE,4)<REF(CLOSE,8) AND REF(CLOSE,5)>REF(CLOSE,9);
X_68:=REFX(CLOSE,1)<REF(CLOSE,3) AND REFX(CLOSE,2)<REF(CLOSE,2) AND REFX(CLOSE,3)<REF(CLOSE,1) AND REFX(CLOSE,4)<CLOSE;
X_69:=CLOSE<REF(CLOSE,4) AND REF(CLOSE,1)<REF(CLOSE,5) AND REF(CLOSE,2)<REF(CLOSE,6) AND REF(CLOSE,3)<REF(CLOSE,7) AND REF(CLOSE,4)<REF(CLOSE,8) AND REF(CLOSE,5)<REF(CLOSE,9) AND REF(CLOSE,6)>REF(CLOSE,10);
X_70:=REFX(CLOSE,1)<REF(CLOSE,3) AND REFX(CLOSE,2)<REF(CLOSE,2) AND REFX(CLOSE,3)<REF(CLOSE,1);
X_71:=CLOSE<REF(CLOSE,4) AND REF(CLOSE,1)<REF(CLOSE,5) AND REF(CLOSE,2)<REF(CLOSE,6) AND REF(CLOSE,3)<REF(CLOSE,7) AND REF(CLOSE,4)<REF(CLOSE,8) AND REF(CLOSE,5)<REF(CLOSE,9) AND REF(CLOSE,6)<REF(CLOSE,10) AND REF(CLOSE,7)>REF(CLOSE,11);
X_72:=REFX(CLOSE,1)<REF(CLOSE,3) AND REFX(CLOSE,2)<REF(CLOSE,2);
X_73:=CLOSE<REF(CLOSE,4) AND REF(CLOSE,1)<REF(CLOSE,5) AND REF(CLOSE,2)<REF(CLOSE,6) AND REF(CLOSE,3)<REF(CLOSE,7) AND REF(CLOSE,4)<REF(CLOSE,8) AND REF(CLOSE,5)<REF(CLOSE,9) AND REF(CLOSE,6)<REF(CLOSE,10) AND REF(CLOSE,7)<REF(CLOSE,11) AND REF(CLOSE,8)>REF(CLOSE,12);
X_74:=REFX(CLOSE,1)<REF(CLOSE,3);
X_75:=CLOSE<REF(CLOSE,4) AND REF(CLOSE,1)<REF(CLOSE,5) AND REF(CLOSE,2)<REF(CLOSE,6) AND REF(CLOSE,3)<REF(CLOSE,7) AND REF(CLOSE,4)<REF(CLOSE,8) AND REF(CLOSE,5)<REF(CLOSE,9) AND REF(CLOSE,6)<REF(CLOSE,10) AND REF(CLOSE,7)<REF(CLOSE,11) AND REF(CLOSE,8)<REF(CLOSE,12) AND REF(CLOSE,9)>REF(CLOSE,13);
X_76:=IF(PERIOD<4,LOW*(1-(PERIOD+1)/10*0.01),LOW*0.98);
X_77:=IF(PERIOD<4,HIGH*(1+(PERIOD+1)/10*0.01),HIGH*1.05);
X_78:=CURRBARSCOUNT-1;
DRAWNUMBER(X_59 AND (X_60 OR X_78=0 OR (X_78=1 AND X_74) OR (X_78=2 AND X_72) OR (X_78=3 AND X_70) OR (X_78=4 AND X_68) OR (X_78=5 AND X_66) OR (X_78=6 AND X_64) OR (X_78=7 AND X_62)),X_76,1),COLORMAGENTA;
DRAWNUMBER(X_61 AND (X_62 OR X_78=0 OR (X_78=1 AND X_74) OR (X_78=2 AND X_72) OR (X_78=3 AND X_70) OR (X_78=4 AND X_68) OR (X_78=5 AND X_66) OR (X_78=6 AND X_64)),X_76,2),COLORMAGENTA;
DRAWNUMBER(X_63 AND (X_64 OR X_78=0 OR (X_78=1 AND X_74) OR (X_78=2 AND X_72) OR (X_78=3 AND X_70) OR (X_78=4 AND X_68) OR (X_78=5 AND X_66)),X_76,3),COLORMAGENTA;
DRAWNUMBER(X_65 AND (X_66 OR X_78=0 OR (X_78=1 AND X_74) OR (X_78=2 AND X_72) OR (X_78=3 AND X_70) OR (X_78=4 AND X_68)),X_76,4),COLORMAGENTA;
DRAWNUMBER(X_67 AND (X_68 OR X_78=0 OR (X_78=1 AND X_74) OR (X_78=2 AND X_72) OR (X_78=3 AND X_70)),X_76,5),COLORMAGENTA;
DRAWNUMBER(X_69 AND (X_70 OR X_78=0 OR (X_78=1 AND X_74) OR (X_78=2 AND X_72)),X_76,6),COLORMAGENTA;
DRAWNUMBER(X_71 AND (X_72 OR X_78=0 OR (X_78=1 AND X_74)),X_76,7),COLORMAGENTA;
DRAWNUMBER(X_73 AND (X_74 OR X_78<1),X_76,8),COLORMAGENTA;
DRAWNUMBER(X_75,X_76,9),COLORGREEN;
X_79:=CLOSE>REF(CLOSE,4) AND REF(CLOSE,1)<REF(CLOSE,5);
X_80:=REFX(CLOSE,1)>REF(CLOSE,3) AND REFX(CLOSE,2)>REF(CLOSE,2) AND REFX(CLOSE,3)>REF(CLOSE,1) AND REFX(CLOSE,4)>CLOSE AND REFX(CLOSE,5)>REFX(CLOSE,1) AND REFX(CLOSE,6)>REFX(CLOSE,2) AND REFX(CLOSE,7)>REFX(CLOSE,3) AND REFX(CLOSE,8)>REFX(CLOSE,4);
X_81:=CLOSE>REF(CLOSE,4) AND REF(CLOSE,1)>REF(CLOSE,5) AND REF(CLOSE,2)<REF(CLOSE,6);
X_82:=REFX(CLOSE,1)>REF(CLOSE,3) AND REFX(CLOSE,2)>REF(CLOSE,2) AND REFX(CLOSE,3)>REF(CLOSE,1) AND REFX(CLOSE,4)>CLOSE AND REFX(CLOSE,5)>REFX(CLOSE,1) AND REFX(CLOSE,6)>REFX(CLOSE,2) AND REFX(CLOSE,7)>REFX(CLOSE,3);
X_83:=CLOSE>REF(CLOSE,4) AND REF(CLOSE,1)>REF(CLOSE,5) AND REF(CLOSE,2)>REF(CLOSE,6) AND REF(CLOSE,3)<REF(CLOSE,7);
X_84:=REFX(CLOSE,1)>REF(CLOSE,3) AND REFX(CLOSE,2)>REF(CLOSE,2) AND REFX(CLOSE,3)>REF(CLOSE,1) AND REFX(CLOSE,4)>CLOSE AND REFX(CLOSE,5)>REFX(CLOSE,1) AND REFX(CLOSE,6)>REFX(CLOSE,2);
X_85:=CLOSE>REF(CLOSE,4) AND REF(CLOSE,1)>REF(CLOSE,5) AND REF(CLOSE,2)>REF(CLOSE,6) AND REF(CLOSE,3)>REF(CLOSE,7) AND REF(CLOSE,4)<REF(CLOSE,8);
X_86:=REFX(CLOSE,1)>REF(CLOSE,3) AND REFX(CLOSE,2)>REF(CLOSE,2) AND REFX(CLOSE,3)>REF(CLOSE,1) AND REFX(CLOSE,4)>CLOSE AND REFX(CLOSE,5)>REFX(CLOSE,1);
X_87:=CLOSE>REF(CLOSE,4) AND REF(CLOSE,1)>REF(CLOSE,5) AND REF(CLOSE,2)>REF(CLOSE,6) AND REF(CLOSE,3)>REF(CLOSE,7) AND REF(CLOSE,4)>REF(CLOSE,8) AND REF(CLOSE,5)<REF(CLOSE,9);
X_88:=REFX(CLOSE,1)>REF(CLOSE,3) AND REFX(CLOSE,2)>REF(CLOSE,2) AND REFX(CLOSE,3)>REF(CLOSE,1) AND REFX(CLOSE,4)>CLOSE;
X_89:=CLOSE>REF(CLOSE,4) AND REF(CLOSE,1)>REF(CLOSE,5) AND REF(CLOSE,2)>REF(CLOSE,6) AND REF(CLOSE,3)>REF(CLOSE,7) AND REF(CLOSE,4)>REF(CLOSE,8) AND REF(CLOSE,5)>REF(CLOSE,9) AND REF(CLOSE,6)<REF(CLOSE,10);
X_90:=REFX(CLOSE,1)>REF(CLOSE,3) AND REFX(CLOSE,2)>REF(CLOSE,2) AND REFX(CLOSE,3)>REF(CLOSE,1);
X_91:=CLOSE>REF(CLOSE,4) AND REF(CLOSE,1)>REF(CLOSE,5) AND REF(CLOSE,2)>REF(CLOSE,6) AND REF(CLOSE,3)>REF(CLOSE,7) AND REF(CLOSE,4)>REF(CLOSE,8) AND REF(CLOSE,5)>REF(CLOSE,9) AND REF(CLOSE,6)>REF(CLOSE,10) AND REF(CLOSE,7)<REF(CLOSE,11);
X_92:=REFX(CLOSE,1)>REF(CLOSE,3) AND REFX(CLOSE,2)>REF(CLOSE,2);
X_93:=CLOSE>REF(CLOSE,4) AND REF(CLOSE,1)>REF(CLOSE,5) AND REF(CLOSE,2)>REF(CLOSE,6) AND REF(CLOSE,3)>REF(CLOSE,7) AND REF(CLOSE,4)>REF(CLOSE,8) AND REF(CLOSE,5)>REF(CLOSE,9) AND REF(CLOSE,6)>REF(CLOSE,10) AND REF(CLOSE,7)>REF(CLOSE,11) AND REF(CLOSE,8)<REF(CLOSE,12);
X_94:=REFX(CLOSE,1)>REF(CLOSE,3);
X_95:=CLOSE>REF(CLOSE,4) AND REF(CLOSE,1)>REF(CLOSE,5) AND REF(CLOSE,2)>REF(CLOSE,6) AND REF(CLOSE,3)>REF(CLOSE,7) AND REF(CLOSE,4)>REF(CLOSE,8) AND REF(CLOSE,5)>REF(CLOSE,9) AND REF(CLOSE,6)>REF(CLOSE,10) AND REF(CLOSE,7)>REF(CLOSE,11) AND REF(CLOSE,8)>REF(CLOSE,12) AND REF(CLOSE,9)<REF(CLOSE,13);
DRAWNUMBER(X_79 AND (X_80 OR X_78=0 OR (X_78=1 AND X_94) OR (X_78=2 AND X_92) OR (X_78=3 AND X_90) OR (X_78=4 AND X_88) OR (X_78=5 AND X_86) OR (X_78=6 AND X_84) OR (X_78=7 AND X_82)),X_77,1),COLORMAGENTA;
DRAWNUMBER(X_81 AND (X_82 OR X_78=0 OR (X_78=1 AND X_94) OR (X_78=2 AND X_92) OR (X_78=3 AND X_90) OR (X_78=4 AND X_88) OR (X_78=5 AND X_86) OR (X_78=6 AND X_84)),X_77,2),COLORMAGENTA;
DRAWNUMBER(X_83 AND (X_84 OR X_78=0 OR (X_78=1 AND X_94) OR (X_78=2 AND X_92) OR (X_78=3 AND X_90) OR (X_78=4 AND X_88) OR (X_78=5 AND X_86)),X_77,3),COLORMAGENTA;
DRAWNUMBER(X_85 AND (X_86 OR X_78=0 OR (X_78=1 AND X_94) OR (X_78=2 AND X_92) OR (X_78=3 AND X_90) OR (X_78=4 AND X_88)),X_77,4),COLORMAGENTA;
DRAWNUMBER(X_87 AND (X_88 OR X_78=0 OR (X_78=1 AND X_94) OR (X_78=2 AND X_92) OR (X_78=3 AND X_90)),X_77,5),COLORMAGENTA;
DRAWNUMBER(X_89 AND (X_90 OR X_78=0 OR (X_78=1 AND X_94) OR (X_78=2 AND X_92)),X_77,6),COLORMAGENTA;
DRAWNUMBER(X_91 AND (X_92 OR X_78=0 OR (X_78=1 AND X_94)),X_77,7),COLORMAGENTA;
DRAWNUMBER(X_93 AND (X_94 OR X_78<1),X_77,8),COLORMAGENTA;
DRAWNUMBER(X_95,X_77,9),COLORGREEN;
通达信电脑版公式导入方法
A:源码导入
1、把要导入的公式(源码)复制下来:方法是用左键先把源码变蓝,之后点右键,点复制;
2、进入主界面,即K线图模式,同时按住CTRL+F,出现公式管理器-->用鼠标左键单击任何一个公式组的名称(选择技术指标公式或者条件选股公式)-->单击其他-->点新建公式-->在出现的公式编辑区的下面的空白处,把刚拷的源码粘贴上,将公式名称复制后粘贴到公式名称栏-->确定-->退出;
3.如有参数的,如:N 1 100 15 之类,则需将这类数据填充到参数表中;
B:文件指标导入
1、先把指标文件复制到桌面(或者你知道的路径);
2、打开通达信,按CTRL+F打开公式管理器点击“导入”按钮;
3、找到桌面上要导入的公式选中”公式“后单击左键,后点击“打开”;
4、把“+”号单击展开,在公式名前的空方框里单击成“勾选”后,在点击下方的“确认”;
5、输入指标名称,回车即可。
【提供服务】
一、新编通达信主图、附图、选股公式
二、主图,附图改选股 预警公式
三、破解通达信指标
特别提示:
选股预警指标编写 ,不同主流行情软件间指标转换。 请联系微信:396950280
一个聚百万原创指标公式圈子