您现在的位置:程序化交易>> 股票公式>> 其他>> 其他软件公式>>正文内容

控盘系数劲副图 公式 指标[其他软件公式]

相关标签:

 

控盘系数-劲参数:

原理解析:

N赋值:30
P1赋值:3
P2赋值:6
P3赋值:18
P4赋值:250
VAR2赋值:1日前的最低价
VAR3赋值:(最低价-VAR2的绝对值的13日[1日权重]移动平均)/(最低价-VAR2和0的较大值的13日[1日权重]移动平均)*100
VAR4赋值:如果收盘价*1.2,返回VAR3*13,否则返回VAR3/13的13日指数移动平均
VAR5赋值:34日内最低价的最低值
VAR6赋值:34日内VAR4的最高值
VAR7赋值:如果56日内最低价的最低值,返回1,否则返回0
VAR8赋值:(如果最低价<=VAR5,返回(VAR4+VAR6*2)/2,否则返回0的3日指数移动平均)/(618)*VAR7
VAR9赋值:收盘价的5日指数移动平均
VAR10赋值:(收盘价-收盘价的34日简单移动平均)/收盘价的34日简单移动平均*10
VAR11赋值:(如果最低价<=VAR5,返回(VAR4+VAR6*2)/2,否则返回0的3日指数移动平均)/(618)*VAR7*(-1)
VAR12赋值:收盘价的5日指数移动平均*(-1)
筹码估算赋值:VAR10*5
输出控盘力度:筹码估算的N日简单移动平均,线宽为1,COLORFF
输出控盘趋势:2*"SLOWKD.K[取周线数据]"(5,3,12,4)-1*"SLOWKD.D[取周线数据]"(5,3,12,4)-50,线宽为2,COLORFFFF
当满足条件1日前的控盘力度<控盘力度时,在控盘力度位置画10号图标
当满足条件1日前的控盘力度>控盘力度时,在控盘力度位置画11号图标
当满足条件1日前的控盘趋势<控盘趋势时,在控盘趋势位置画4号图标
当满足条件1日前的控盘趋势>控盘趋势时,在控盘趋势位置画5号图标
输出泸【亿】:"SH1A0001$成交额(元)"/100000000,线宽为0,PRECISION2,COLOR91FFEF
输出深【亿】:"SZ399001$成交额(元)"/100000000,线宽为0,PRECISION2,COLOR9CFF7A
输出上涨:大盘的上涨家数,线宽为0
输出下跌:大盘的下跌家数,线宽为0
输出泸A个数:STKCOUNT('上海A股'),线宽为0
输出深A个数:STKCOUNT('深圳A股')+STKCOUNT('中小企业'),线宽为0
BB赋值:BARPOS=SYSPARAM(1)
输出VARIABLE:WDAY[7]='星期六'
赋值:'星期日'
赋值:'星期一'
赋值:'星期二'
赋值:'星期三'
赋值:'星期四'
赋值:'星期五'
FY赋值:年份
FM赋值:月份
FD赋值:日
WD赋值:星期
P赋值:SYSPARAM(1)
STR1赋值:' '+' 今日: '+NUMTOSTR(FY[P],0)+'年'+NUMTOSTR(FM[P],0)+'月'+NUMTOSTR(FD[P],0)+'日 '+WDAY[WD[P]+1]+' '
当满足条件BARPOS=P时,在最高价位置书写文字,ALIGN2,PXUP10,COLORFFEEAA
STR2赋值:' ≦☆⊿一家习作═☆≧'
当满足条件BARPOS=P时,在最高价位置书写文字,ALIGN2,PXUP10,COLOR88FF
当满足条件BARPOS=P时,在最高价位置书写文字,ALIGN2,PXUP9,COLOR88FF
BB赋值:BARPOS=SYSPARAM(1)
输出VARIABLE:WDAY[7]='星期六'
赋值:'星期日'
赋值:'星期一'
赋值:'星期二'
赋值:'星期三'
赋值:'星期四'
赋值:'星期五'
 

源码:

 

 

n:=30;

 

P1:=3;
P2:=6;
P3:=18;
P4:=250;
VAR2:=REF(LOW,1);
VAR3:=(SMA(ABS(LOW-VAR2),13,1))/(SMA(MAX(LOW-VAR2,0),13,1))*100;
VAR4:=EMA(IF(CLOSE*1.2,VAR3*13,VAR3/13),13);
VAR5:=LLV(LOW,34);
VAR6:=HHV(VAR4,34);
VAR7:=IF(LLV(LOW,56),1,0);
VAR8:=(EMA(IF(LOW<=VAR5,(VAR4+VAR6*2)/2,0),3))/(618)*VAR7;
VAR9:=EMA(CLOSE,5);
VAR10:=(CLOSE-MA(CLOSE,34))/MA(CLOSE,34)*10;
VAR11:=(EMA(IF(LOW<=VAR5,(VAR4+VAR6*2)/2,0),3))/(618)*VAR7*(-1);
VAR12:=EMA(CLOSE,5)*(-1);
筹码估算:=VAR10*5;
控盘力度:MA(筹码估算,N),LINETHICK1,colorFF;
控盘趋势:2*"SLOWKD.K#week"(5,3,12,4)-1*"SLOWKD.D#week"(5,3,12,4)-50,LINETHICK2,colorFFFF;
DRAWICON(REF(控盘力度,1)<控盘力度,控盘力度,10);
DRAWICON(REF(控盘力度,1)>控盘力度,控盘力度,11);
DRAWICON(REF(控盘趋势,1)<控盘趋势,控盘趋势,4);
DRAWICON(REF(控盘趋势,1)>控盘趋势,控盘趋势,5);
泸【亿】:"SH1A0001$AMOUNT"/100000000,LINETHICK0,PRECISION2,color91FFEF;
深【亿】:"SZ399001$AMOUNT"/100000000,LINETHICK0,PRECISION2,color9CFF7A;
上涨:INDEXADV,LINETHICK0;
下跌:INDEXDEC,LINETHICK0;
泸A个数:STKCOUNT('上海A股'),LINETHICK0;
深A个数:STKCOUNT('深圳A股')+STKCOUNT('中小企业'),LINETHICK0;
BB:=BARPOS=SYSPARAM(1);
VARIABLE:WDAY[7]='星期六';
WDAY[1]:='星期日';
WDAY[2]:='星期一';
WDAY[3]:='星期二';
WDAY[4]:='星期三';
WDAY[5]:='星期四';
WDAY[6]:='星期五';
FY:=YEAR;
FM:=MONTH;
FD:=DAY;
WD:=WEEKDAY;
P:=SYSPARAM(1);
STR1:=' '+' 今日: '+NUMTOSTR(FY[P],0)+'年'+NUMTOSTR(FM[P],0)+'月'+NUMTOSTR(FD[P],0)+'日 '+WDAY[WD[P]+1]+' ';
DRAWTEXT(BARPOS=P,HIGH,'\n \n'+STR1),ALIGN2,PXUP10,colorFFEEAA;
STR2:=' ╭☆╯一家习作╰☆╮';
DRAWTEXT(BARPOS=P,HIGH,'\n \n'+STR2),ALIGN2,PXUP10,color88FF;
DRAWTEXT(BARPOS=P,HIGH,'\n \n'+STR2),ALIGN2,PXUP9,color88FF;
BB:=BARPOS=SYSPARAM(1);
VARIABLE:WDAY[7]='星期六';
WDAY[1]:='星期日';
WDAY[2]:='星期一';
WDAY[3]:='星期二';
WDAY[4]:='星期三';
WDAY[5]:='星期四';
WDAY[6]:='星期五';
FY:=YEAR;
FM:=MONTH;
FD:=DAY;
WD:=WEEKDAY;
P:=SYSPARAM(1);
STR1:='今天是:'+NUMTOSTR(FY[P],0)+'年'+NUMTOSTR(FM[P],0)+'月'+NUMTOSTR(FD[P],0)+'日, '+WDAY[WD[P]+1];
EXPLAIN(BARPOS=P,STR1),colorFF;
EXPLAIN(1,STKLABEL+STKNAME+'\n所属板块:'+BLKNAME),colorFFFF80;
EXPLAIN(CLOSE>0,'〓 K 线形态分析 〓 '),colorFFFFFF;
早晨之星:=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);
黄昏之星:=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);
长十字:=CLOSE=OPEN AND HIGH/LOW>1.03;
垂死十字:=CLOSE=OPEN AND CLOSE=LOW AND CLOSE<>HIGH;
早晨十字星:=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);
黄昏十字星:=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);
射击之星:=MIN(OPEN,CLOSE)=LOW AND HIGH-LOW>3*(MAX(OPEN,CLOSE)-LOW) AND CLOSE>MA(CLOSE,5);
倒转锤头:=MIN(OPEN,CLOSE)=LOW AND HIGH-LOW>3*(MAX(OPEN,CLOSE)-LOW) AND CLOSE<MA(CLOSE,5);
锤头:=HIGH=MAX(OPEN,CLOSE) AND HIGH-LOW>3*(HIGH-MIN(OPEN,CLOSE)) AND CLOSE<MA(CLOSE,5);
吊颈:=HIGH=MAX(OPEN,CLOSE) AND HIGH-LOW>3*(HIGH-MIN(OPEN,CLOSE)) AND CLOSE>MA(CLOSE,5);
穿头破脚:=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);
乌云盖顶:=REF(CLOSE,1)/REF(OPEN,1)>1.03 AND CLOSE/OPEN<0.97 AND OPEN>REF(CLOSE,1) AND CLOSE<REF(CLOSE,1);
曙光初现:=REF(CLOSE,1)/REF(OPEN,1)<0.97 AND CLOSE/OPEN>1.03 AND OPEN<REF(CLOSE,1) AND CLOSE>REF(CLOSE,1);
身怀六甲:=(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));
十字胎:=(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));
平顶:=(ABS(HIGH-REF(HIGH,1)))/HIGH<0.001;
平底:=(ABS(LOW-REF(LOW,1)))/LOW<0.001 AND (ABS(REF(LOW,1)-REF(LOW,2)))/REF(LOW,1)<=0.001;
大阳烛:=CLOSE/OPEN>1.05 AND HIGH/LOW<CLOSE/OPEN+0.018;
红三兵:=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);
双飞乌鸦:=REF(CLOSE,1)<REF(OPEN,1) AND CLOSE<OPEN AND CLOSE/OPEN<0.98;
孕育线:=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;
多方炮:=REF(CLOSE,2)>REF(OPEN,2) AND REF(CLOSE,1)<REF(OPEN,1) AND CLOSE>OPEN;
出水芙蓉:=(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;
上升三部曲:=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);
下跌三部曲:=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);
跳空缺口:=HIGH<REF(LOW,1) OR LOW>REF(HIGH,1);
三只乌鸦:=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);
光脚阴线:=LOW=CLOSE AND HIGH<>LOW;
光头阳线:=HIGH=CLOSE AND HIGH<>LOW;
分离:=OPEN=REF(OPEN,1) AND (CLOSE-OPEN)*(REF(CLOSE,1)-REF(OPEN,1))<0;
长下影:=(MIN(CLOSE,OPEN)-LOW)/(HIGH-LOW)>0.667;
长上影:=(HIGH-MAX(CLOSE,OPEN))/(HIGH-LOW)>0.667;
十字星:=CLOSE=OPEN AND HIGH<>LOW;
大阴烛:=OPEN/CLOSE>1.05 AND HIGH/LOW<OPEN/CLOSE+0.018;
好友反攻:=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;
倾盆大雨:=REF(CLOSE,1)/REF(OPEN,1)>=1.03 AND OPEN<REF(CLOSE,1) AND OPEN>REF(OPEN,1) AND CLOSE<REF(OPEN,1);
EXPLAIN(倾盆大雨,'倾盆大雨见顶信号;'),colorFFFF00;
EXPLAIN(大阴烛,'大阴烛后市向淡,发生逆转;'),colorFFFF00;
EXPLAIN(好友反攻,'好友反攻底部反转;'),colorFF;
EXPLAIN(跳空缺口,'跳空缺口注意向上还是向下跳空;'),colorFFFFFF;
EXPLAIN(光脚阴线,'光脚阴线下跌信号;'),colorFFFF00;
EXPLAIN(光头阳线,'光头阳线后市看涨;'),colorFF;
EXPLAIN(三只乌鸦,'三只乌鸦可能见顶回落;'),colorFFFF00;
EXPLAIN(分离,'分离注意看涨分离和看跌分离;'),colorFFFFFF;
EXPLAIN(长下影,'长下影持续下跌后出现,有可能止跌回升;在升势末期
出现,须多加留意;'),colorFF;
EXPLAIN(长上影,'长上影表明行情上档压力沉重,升势受阻;'),colorFFFF00;
EXPLAIN(下跌三部曲,'下跌三部曲下跌信号;'),colorFF;
EXPLAIN(上升三部曲,'上升三部曲上涨信号;'),colorFFFF00;
EXPLAIN(早晨之星,'早晨之星见底回升;'),colorFF;
EXPLAIN(黄昏之星,'黄昏之星见顶回落;'),colorFFFF00;
EXPLAIN(十字星,'十字星有转向意味,注意股价位置在顶部还是底部;
'),colorFFFFFF;
EXPLAIN(长十字,'长十字注意在顶部还是底部;'),colorFFFFFF;
EXPLAIN(垂死十字,'垂死十字下跌信号;'),colorFFFF00;
EXPLAIN(早晨十字星,'早晨十字星上涨信号,见底回升;'),colorFF;
EXPLAIN(黄昏十字星,'黄昏十字星下跌信号,见顶回落;'),colorFFFF00;
EXPLAIN(射击之星,'射击之星可能见顶回落,可靠性低;'),colorFFFF00;
EXPLAIN(倒转锤头,'倒转锤头可能见底回升;'),colorFF;
EXPLAIN(锤头,'锤头可能见底回升,如有量配合,信号强烈;'),colorFF;
EXPLAIN(吊颈,'吊颈上升行情中见顶回落,顶部出现,见顶信号;'),colorFFFF00;
EXPLAIN(平顶,'平顶温和的反转;'),colorFFFF00;
EXPLAIN(穿头破脚,'穿头破脚顶部出现,见顶回落信号;'),colorFFFF00;
EXPLAIN(乌云盖顶,'乌云盖顶见顶回落信号;'),colorFFFF00;
EXPLAIN(曙光初现,'曙光初现后市见底回升;'),colorFF;
EXPLAIN(身怀六甲,'身怀六甲出现在底部,是见底回升信号;出现在顶部
,是见顶回落信号;'),colorFF;
EXPLAIN(十字胎,'十字胎'),colorFF;
EXPLAIN(平底,'平底温和的反转;'),colorFF;
EXPLAIN(大阳烛,'大阳烛看涨;'),colorFF;
EXPLAIN(红三兵,'红三兵每日收盘价上移,表示可能见底回升;'),colorFF;
EXPLAIN(双飞乌鸦,'双飞乌鸦行情将见顶回落;'),colorFFFF00;
EXPLAIN(孕育线,'孕育线注意股价位置;'),colorFFFFFF;
EXPLAIN(多方炮,'多方炮在底部出现有上涨可能,在中间出现有可能是
上涨中继,顶部出现是复合见顶信号;'),colorFF;
EXPLAIN(出水芙蓉,'出水芙蓉见底回升;'),colorFF;
A001:=CLOSE-REF(CLOSE,6);
A002:=MA(A001,6);
A003:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
A004:=SMA(A003,3,1);
A005:=SMA(A004,3,1);
A006:=EMA(3*A004-2*A005,2);
A007:=(HIGH+LOW+CLOSE)/3;
A008:=(A007-MA(A007,14))/(0.015*AVEDEV(A007,14))/2;
A009:=(A008+EMA((-100*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14))+100)/100,3)*200-100)/2;
A010:=A009-REF(A009,14);
A011:=A009-REF(A009,26);
A012:=(A009+A010+A011)/3;
KKM:=EMA(A012,4);
A013:=HHV(HIGH,34);
A014:=(2*CLOSE+HIGH+LOW)/4;
A015:=LLV(LOW,34);
A016:=EMA((A014-A015)/(A013-A015)*100,13);
A017:=EMA(0.667*REF(A016,1)+0.333*A016,2);
KKMD:=A016-A017>1 AND A016<30 AND A017<30;
KKML:=A016-A017<0 AND A016>80 AND A017>80 AND REF(A016-A017,1)>0;
KKMQ:=COUNT(A016-A017>0,2)=2;
KKAL:=A016-A017<0;
生命线:=MA(CLOSE,20);
取舍线:=MA(CLOSE,10);
EXPLAINICON(KKMD,4);
EXPLAINICON(KKAL,1);
EXPLAIN(KKMD,'最佳买入时机');
EXPLAIN(KKML,'最佳卖出时机');
EXPLAIN(KKMQ,'持仓区');
EXPLAIN(KKAL,'空仓区');
EXPLAIN(CLOSE/REF(CLOSE,1)>INDEXC/REF(INDEXC,1),'该股强于大盘');
EXPLAIN(CLOSE/REF(CLOSE,1),'该股强于大盘');
EXPLAIN(CROSS(MA(CLOSE,5),MA(CLOSE,10)),'可出手');
EXPLAIN(CROSS(MA(CLOSE,10),MA(CLOSE,5)),'收手了');
EXPLAIN(KKM>EMA(KKM,4) AND KKM>REF(KKM,1),'快速介入');
EXPLAIN(KKM>EMA(KKM,4) AND KKM<REF(KKM,1),'休息观望~');
EXPLAIN(KKM<EMA(KKM,4) AND KKM>REF(KKM,1),'有防御能力');
EXPLAIN(KKM<EMA(KKM,4) AND KKM<REF(KKM,1),'风险较大');

 

公式导入教程: 【通达信公式源码导入方法教程】 【同花顺公式源码导入方法教程】 【大智慧新一代公式源码导入方法教程

 

 

有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友

可联系技术人员 QQ: 262069696  点击在线交流或微信:cxhjy888 进行 有偿收费 编写!(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)

怎么收费,代编流程等详情请点击查阅!

(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)

 


【字体: 】【打印文章】【查看评论

相关文章

    没有相关内容