当前位置:分析家公式网 → 股票公式 → 通达信公式 → 一键转帖:波段操盘手 通达信完全加密公式和谐 源码分享
软件名称:[B]波段操盘手 通达信完全加密公式和谐 源码分享[/B]
软件类型:国产软件
运行环境:Win9X/Win2000/WinXP/Win2003/Win7/
软件语言:简体中文
授权方式:免费版
软件大小:48.0 KB
官方主页:Home Page
更新时间:2018-12-10 05:32:03
软件简介:
{公式名称: 波段操盘手
公式描述:
参数数量: 1
参数1: M1, 最小: 0, 最大: 1000, 缺省: 60
公式类型: 技术指标公式-其他类型
画线方法: 主图叠加
公式版本: 0
显示小数: 缺省位数
坐标线位置: 自动
额外Y轴分界: 无
参数精灵:
请设置计算参数:
M1: Param#0 (0.00--1000.00)
用法注释:无
公式源码:}
VAR1:=240/FROMOPEN;
VAR2:=VAR1;
VAR3:=HIGH-(HIGH-LOW)/3;
VAR4:=LOW+(HIGH-LOW)/3;
VAR5:=CONST(HHV(HIGH,90));
VAR6:=CONST(LLV(LOW,100));
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
VAR7:=CONST(IF(REF(CLOSE,2)/REF(OPEN,2)<0.95 AND REF(OPEN,1)<REF(CLOSE,2) AND ABS(REF(OPEN,1)-REF(CLOSE,1))/REF(CLOSE,1)<0.03 AND CLOSE/OPEN>1.05 AND CLOSE>REF(CLOSE,2),1,0));
VAR8:=CONST(IF(REF(CLOSE,2)/REF(OPEN,2)>1.03 AND REF(OPEN,1)>REF(CLOSE,2) AND ABS(REF(OPEN,1)-REF(CLOSE,1))/REF(CLOSE,1)<0.02 AND CLOSE/OPEN<0.97 AND CLOSE<REF(CLOSE,2),1,0));
VAR9:=CONST(IF(CLOSE=OPEN AND HIGH/LOW>1.03,1,0));
VAR10:=CONST(IF(CLOSE=OPEN AND CLOSE=LOW AND CLOSE!=HIGH,1,0));
VAR11:=CONST(IF(REF(CLOSE,2)/REF(OPEN,2)<0.95 AND REF(OPEN,1)<REF(CLOSE,2) AND REF(OPEN,1)=REF(CLOSE,1) AND CLOSE/OPEN>1.05 AND CLOSE>REF(CLOSE,2),1,0));
VAR12:=CONST(IF(REF(CLOSE,2)/REF(OPEN,2)>1.05 AND REF(OPEN,1)>REF(CLOSE,2) AND REF(OPEN,1)=REF(CLOSE,1) AND CLOSE/OPEN<0.95 AND CLOSE<REF(CLOSE,2),1,0));
VAR13:=CONST(IF(MIN(OPEN,CLOSE)=LOW AND HIGH-LOW>3*(MAX(OPEN,CLOSE)-LOW) AND CLOSE>MA(CLOSE,5),1,0));
VAR14:=CONST(IF(MIN(OPEN,CLOSE)=LOW AND HIGH-LOW>3*(MAX(OPEN,CLOSE)-LOW) AND CLOSE<MA(CLOSE,5),1,0));
VAR15:=CONST(IF(HIGH=MAX(OPEN,CLOSE) AND HIGH-LOW>3*(HIGH-MIN(OPEN,CLOSE)) AND CLOSE<MA(CLOSE,5),1,0));
VAR16:=CONST(IF(HIGH=MAX(OPEN,CLOSE) AND HIGH-LOW>3*(HIGH-MIN(OPEN,CLOSE)) AND CLOSE>MA(CLOSE,5),1,0));
VAR17:=CONST(IF(REF(CLOSE,1)/REF(OPEN,1)>1.03 AND CLOSE/OPEN<0.96 AND CLOSE<REF(OPEN,1) AND OPEN>REF(CLOSE,1) OR (REF(CLOSE,1)/REF(OPEN,1)<0.97 AND CLOSE/OPEN>1.04 AND CLOSE>REF(OPEN,1) AND OPEN<REF(CLOSE,1)),1,0));
VAR18:=CONST(IF(REF(CLOSE,1)/REF(OPEN,1)>1.03 AND CLOSE/OPEN<0.97 AND OPEN>REF(CLOSE,1) AND CLOSE<REF(CLOSE,1),1,0));
VAR19:=CONST(IF(REF(CLOSE,1)/REF(OPEN,1)<0.97 AND CLOSE/OPEN>1.03 AND OPEN<REF(CLOSE,1) AND CLOSE>REF(CLOSE,1),1,0));
VAR20:=CONST(IF(ABS(REF(CLOSE,1)-REF(OPEN,1))/REF(CLOSE,1)>0.04 AND ABS(CLOSE-OPEN)/CLOSE<0.005 AND MAX(CLOSE,OPEN)<MAX(REF(CLOSE,1),REF(OPEN,1)) AND MIN(CLOSE,OPEN)>MIN(REF(CLOSE,1),REF(OPEN,1)),1,0));
VAR21:=CONST(IF(ABS(REF(CLOSE,1)-REF(OPEN,1))/REF(CLOSE,1)>0.04 AND CLOSE=OPEN AND CLOSE<MAX(REF(CLOSE,1),REF(OPEN,1)) AND CLOSE>MIN(REF(CLOSE,1),REF(OPEN,1)),1,0));
VAR22:=CONST(IF(ABS(HIGH-REF(HIGH,1))/HIGH<0.001,1,0));
VAR23:=CONST(IF(ABS(LOW-REF(LOW,1))/LOW<0.001 AND ABS(REF(LOW,1)-REF(LOW,2))/REF(LOW,1)<=0.001,1,0));
VAR24:=CONST(IF(CLOSE/OPEN>1.05 AND HIGH/LOW<CLOSE/OPEN+0.018,1,0));
VAR25:=CONST(IF(REF(CLOSE,2)>REF(OPEN,2) AND REF(CLOSE,1)>REF(OPEN,1) AND CLOSE>OPEN AND REF(CLOSE,1)>REF(CLOSE,2) AND CLOSE>REF(CLOSE,1),1,0));
VAR26:=CONST(IF(REF(CLOSE,1)<REF(OPEN,1) AND CLOSE<OPEN AND CLOSE/OPEN<0.98,1,0));
VAR27:=CONST(IF(REF(CLOSE,2)>REF(OPEN,2) AND (REF(CLOSE,2)-REF(OPEN,2))/REF(OPEN,2)>=2/100 AND REF(OPEN,1)>=REF(CLOSE,1) AND (REF(OPEN,1)-REF(CLOSE,1))/REF(CLOSE,1)<=2/100 AND REF(OPEN,1)<=REF(CLOSE,2) AND REF(CLOSE,1)>=REF(OPEN,2) AND CLOSE>=OPEN AND (CLOSE-OPEN)/OPEN>=2/100 AND CLOSE>=REF(OPEN,1) AND OPEN<=REF(CLOSE,1) AND (MAX(CLOSE,REF(CLOSE,2))-MIN(CLOSE,REF(CLOSE,2)))/MIN(CLOSE,REF(CLOSE,2))<=1/100,1,0));
VAR28:=CONST(IF(REF(CLOSE,2)>REF(OPEN,2) AND REF(CLOSE,1)<REF(OPEN,1) AND CLOSE>OPEN,1,0));
VAR29:=CONST(IF(OPEN<EMA(CLOSE,20) OR OPEN<EMA(CLOSE,40) OR OPEN<EMA(CLOSE,60) AND CLOSE>MAX(EMA(CLOSE,20),MAX(EMA(CLOSE,40),EMA(CLOSE,60))) AND (VOL/MA(VOL,30)>1.2 AND CLOSE/REF(CLOSE,1)>1.049),1,0));
VAR30:=CONST(IF(REF(CLOSE,4)/REF(OPEN,4)>1.03 AND REF(CLOSE,3)<REF(OPEN,3) AND REF(CLOSE,2)<REF(OPEN,2) AND REF(CLOSE,1)<REF(OPEN,1) AND REF(LOW,4)<REF(LOW,3) AND REF(LOW,4)<REF(LOW,2) AND REF(LOW,4)<REF(LOW,1) AND REF(HIGH,4)>REF(HIGH,3) AND REF(HIGH,4)>REF(HIGH,2) AND REF(HIGH,4)>REF(HIGH,1) AND CLOSE/OPEN>1.03 AND CLOSE>REF(CLOSE,4),1,0));
VAR31:=CONST(IF(REF(CLOSE,4)/REF(OPEN,4)<0.97 AND REF(CLOSE,3)>REF(OPEN,3) AND REF(CLOSE,2)>REF(OPEN,2) AND REF(CLOSE,1)>REF(OPEN,1) AND REF(LOW,4)<REF(LOW,3) AND REF(LOW,4)<REF(LOW,2) AND REF(LOW,4)<REF(LOW,1) AND REF(HIGH,4)>REF(HIGH,3) AND REF(HIGH,4)>REF(HIGH,2) AND REF(HIGH,4)>REF(HIGH,1) AND CLOSE/OPEN<0.97 AND CLOSE<REF(CLOSE,4),1,0));
VAR32:=CONST(IF(HIGH<REF(LOW,1) OR LOW>REF(HIGH,1),1,0));
VAR33:=CONST(IF(REF(CLOSE,2)<REF(OPEN,2) AND REF(CLOSE,1)<REF(OPEN,1) AND CLOSE<OPEN AND REF(CLOSE,1)<REF(CLOSE,2) AND CLOSE<REF(CLOSE,1),1,0));
VAR34:=CONST(IF(LOW=CLOSE AND HIGH!=LOW,1,0));
VAR35:=CONST(IF(HIGH=CLOSE AND HIGH!=LOW,1,0));
VAR36:=CONST(IF(OPEN=REF(OPEN,1) AND (CLOSE-OPEN)*(REF(CLOSE,1)-REF(OPEN,1))<0,1,0));
VAR37:=CONST(IF((MIN(CLOSE,OPEN)-LOW)/(HIGH-LOW)>0.667,1,0));
VAR38:=CONST(IF((HIGH-MAX(CLOSE,OPEN))/(HIGH-LOW)>0.667,1,0));
VAR39:=CONST(IF(CLOSE=OPEN AND HIGH!=LOW,1,0));{www.70822.com}
VAR40:=CONST(IF(OPEN/CLOSE>1.05 AND HIGH/LOW<OPEN/CLOSE+0.018,1,0));
VAR41:=CONST(IF(REF(CLOSE,1)<REF(OPEN,1) AND CLOSE>OPEN AND ABS(CLOSE-REF(CLOSE,1))/CLOSE<0.002 OR (REF(CLOSE,1)>REF(OPEN,1) AND CLOSE<OPEN AND ABS(CLOSE-REF(CLOSE,1))/CLOSE<0.002),1,0));
VAR42:=CONST(IF(REF(CLOSE,1)/REF(OPEN,1)>=1.03 AND OPEN<REF(CLOSE,1) AND OPEN>REF(OPEN,1) AND CLOSE<REF(OPEN,1),1,0));
VAR43:=CONST(VOL*VAR2>REF(VOL,1) AND MA(VOL,5)>REF(MA(VOL,5),1));
VAR44:=CONST(VOL*VAR2<REF(VOL,1) AND MA(VOL,5)>REF(MA(VOL,5),1));
VAR45:=CONST(VOL*VAR2>REF(VOL,1) AND MA(VOL,5)<REF(MA(VOL,5),1));
VAR46:=CONST(VOL*VAR2<REF(VOL,1) AND MA(VOL,5)<REF(MA(VOL,5),1));
VAR47:=CONST(IF(CLOSE=OPEN,1,0)+IF(CLOSE>=VAR3,1,0)+IF(CLOSE<=VAR4,1,0)>1);
VAR48:=CONST(AMOUNT/VOL/100>REF(HIGH,1));
VAR49:=CONST(AMOUNT/VOL/100<REF(LOW,1));
VAR50:=IF(VAR7=1,0+0.03,0);
VAR51:=IF(VAR8=1,VAR50+0.03,VAR50);
VAR52:=IF(VAR9=1,VAR51+0.03,VAR51);
VAR53:=IF(VAR10=1,VAR52+0.03,VAR52);
VAR54:=IF(VAR11=1,VAR53+0.03,VAR53);
VAR55:=IF(VAR12=1,VAR54+0.03,VAR54);
VAR56:=IF(VAR13=1,VAR55+0.03,VAR55);
VAR57:=IF(VAR14=1,VAR56+0.03,VAR56);
VAR58:=IF(VAR15=1,VAR57+0.03,VAR57);
VAR59:=IF(VAR16=1,VAR58+0.03,VAR58);
VAR60:=IF(VAR17=1,VAR59+0.03,VAR59);
VAR61:=IF(VAR18=1,VAR60+0.03,VAR60);
VAR62:=IF(VAR19=1,VAR61+0.03,VAR61);
VAR63:=IF(VAR20=1,VAR62+0.03,VAR62);
VAR64:=IF(VAR21=1,VAR63+0.03,VAR63);
VAR65:=IF(VAR22=1,VAR64+0.03,VAR64);
VAR66:=IF(VAR23=1,VAR65+0.03,VAR65);
VAR67:=IF(VAR24=1,VAR66+0.03,VAR66);
VAR68:=IF(VAR25=1,VAR67+0.03,VAR67);
VAR69:=IF(VAR26=1,VAR68+0.03,VAR68);
VAR70:=IF(VAR27=1,VAR69+0.03,VAR69);
VAR71:=IF(VAR28=1,VAR70+0.03,VAR70);