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

瑞亭成交量 改造的指标 公式 源码[其他软件公式]

指标公式代码分析及使用参考建议:

 

这段代码看起来是股票交易的技术指标计算公式,包括了换手率、均价、买盘卖盘力量、RSV指标、MFI促进指数等多个指标的计算。根据这些指标,可以进行股票交易的技术分析。

总体来说,这些指标可以用于判断股票的交易活跃度、价格走势和买卖力量的对比,有助于辅助投资者做出交易决策。例如,通过换手率和均价可以了解市场的活跃程度和成交价格的平均水平;买卖盘力量和RSV指标可以帮助判断买卖双方的力量对比;而MFI促进指数则可以反映市场的买卖活跃度。

在使用这些指标进行股票交易时,建议结合其他分析方法一起使用,同时也要注意市场的整体趋势,避免盲目跟风操作。另外,对于每个指标的具体涵义和使用方法,最好还是参考相关领域的专业书籍或者资深投资者的经验分享,以获得更加全面和深入的理解。

 

源码:

EV:=VOL;
预计换手:IF(DYNAINFO(7)=CLOSE AND DYNAINFO(10)=AMOUNT,MAX(VOL,DYNAINFO(17)*REF(MA(VOL,5),1))/CAPITAL*100,0);
STICKLINE(DYNAINFO(7)=CLOSE AND DYNAINFO(10)=AMOUNT,VOL,MAX(VOL,DYNAINFO(17)*REF(MA(VOL,5),1)),7,-21),color66cccc;
今日:EV,LINETHICK0,colorFF;
STICKLINE(VOL>0,VOL,0,6,1),colorFF00;
YE:=(HIGH+LOW+CLOSE)/3;
YE1:=IF(HIGH=LOW,1,HIGH-MAX(OPEN,CLOSE));
YE2:=IF(HIGH=LOW,1,MAX(CLOSE,OPEN)-YE);
YE3:=IF(HIGH=LOW,1,MIN(OPEN,CLOSE)-LOW);
YE4:=IF(HIGH=LOW,1,YE-MIN(CLOSE,OPEN));
YE5:=VOL/(IF(HIGH=LOW,4,HIGH-LOW));
YE6:=SUM(YE1*YE5,1);
YE7:=SUM(YE2*YE5,1);
YE8:=SUM(YE3*YE5,1);
YE9:=SUM(YE4*YE5,1);
均价:AMOUNT/100/VOL,PRECISION2,colorAAFF;
买盘:YE9+YE8,LINETHICK0,PRECISION2,colorFFFF;
STICKLINE(YE9+YE8>0,YE9+YE8,0,8,0),colorAA;
STICKLINE(YE6+YE7>0,YE6+YE7+YE9+YE8,YE9+YE8,8,0),color998855;
STICKLINE(YE9+YE8>0,YE9+YE8,0,5,0),colorCC;
STICKLINE(YE9+YE8>0,YE9+YE8,0,3,0),colorDD;
STICKLINE(YE9+YE8>0,YE9+YE8,0,1,0),colorFF;
STICKLINE(YE6+YE7>0,YE6+YE7+YE9+YE8,YE9+YE8,5,0),colorBBAA77;
STICKLINE(YE6+YE7>0,YE6+YE7+YE9+YE8,YE9+YE8,3,0),colorDDCC99;
STICKLINE(YE6+YE7>0,YE6+YE7+YE9+YE8,YE9+YE8,1,0),colorFFEEBB;
卖盘:=(YE6+YE7)*(-1),LINETHICK0,PRECISION2,colorFF00;
买卖差:YE9+YE8-(YE6+YE7),LINETHICK0,PRECISION2,colorFF00FF;
今日换手:VOL/CAPITAL*100,LINETHICK0,PRECISION2;
HSS:=VOL/CAPITAL*100;
十日换手:SUM(HSS,10),PRECISION2,colorFFBE00;
五日:MA(VOL,5),LINETHICK2,PRECISION2,colorFFFFFF;
十日:MA(VOL,10),LINETHICK2,PRECISION2,colorFF;
二十日:MA(VOL,20),LINETHICK2,PRECISION2,colorFF00FF;
STICKLINE(买卖差>0,0,买卖差,8,0),colorAAAA;
STICKLINE(买卖差>0,0,买卖差,5,0),colorCCCC;
STICKLINE(买卖差>0,0,买卖差,3,0),colorEEEE;
STICKLINE(买卖差>0,0,买卖差,1,0),colorFFFF;
STICKLINE(买卖差<0,买卖差,0,8,0),colorBB7100;
STICKLINE(买卖差<0,买卖差,0,5,0),colorFF7100;
STICKLINE(买卖差<0,买卖差,0,3,0),colorFF9000;
STICKLINE(买卖差<0,买卖差,0,1,0),colorFFBE00;
V1:=HIGH-LOW;
V2:=ABS(OPEN-CLOSE);
V3:=HIGH-(IF(CLOSE>OPEN,CLOSE,OPEN));
V4:=(IF(CLOSE>OPEN,OPEN,CLOSE))-LOW;
V5:=V2/V1*VOL;
V6:=V3/V1*VOL;
V7:=V4/V1*VOL;
追涨:IF(V5>MA(VOL,5)*2 AND V5>=V6 AND V5>=V7 AND CLOSE>OPEN OR VOL>MA(VOL,5)*3,VOL/2,0),LINETHICK2,colorFFFF;
DRAWTEXTEX(CLOSE,1,850,60,' 瑞亭制作 '),colorFFFF;
RSV1:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K1:=SMA(RSV1,3,1);
D1:=SMA(K1,3,1);
J1:=3*K1-2*D1;
RSV:=(CLOSE-LLV(LOW,26))/(HHV(HIGH,26)-LLV(LOW,26))*100;
K:=SMA(RSV,6,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
LC:=REF(CLOSE,1);
XA:=(IF(CROSS(J1,J) AND J<20,-1,0))+(IF(CROSS(J,J1) AND J>80,1,0));
TYP:=(HIGH+LOW+CLOSE)/3;
CCJ:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14))/2;
RSI1:=(SMA(MAX(CLOSE-LC,0),6,1))/(SMA(ABS(CLOSE-LC),6,1))*100;
K2:=EMA((CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100,9);
XB:=(IF(CCJ>100 AND K2>50 AND CLOSE>OPEN,0.5,0))+(IF(RSI1>80 AND K2>50 AND CLOSE>OPEN,0.5,0));
RSV3:=(CLOSE-LLV(LOW,100))/(HHV(HIGH,100)-LLV(LOW,100))*100;
K13:=SMA(RSV3,21,1);
D13:=SMA(K1,3,1);
J13:=3*K13-2*D13;
XC:=IF(J13>80 AND RSI1>85,0.5,0);
逃顶:VOL*(XA+XB+XC>0),LINETHICK2,PRECISION0,colorFF00;
AA:=VOL/((HIGH-LOW)*2-(ABS(CLOSE-OPEN)));
主动买盘:=IF(CLOSE>OPEN,AA*(HIGH-LOW),IF(CLOSE<OPEN,AA*(HIGH-OPEN+CLOSE-LOW),VOL/2));
主动卖盘:=IF(CLOSE>OPEN,-AA*(HIGH-CLOSE+OPEN-LOW),IF(CLOSE<OPEN,-AA*(HIGH-LOW),-VOL/2));
促进指数MFL:(HIGH-LOW)*1000000/VOL,LINETHICK0,colorFF;
MFI:=(HIGH-LOW)*1000000/VOL;
绿灯:=MFI>=REF(MFI,1) AND VOL>=REF(VOL,1);
衰退:=MFI<=REF(MFI,1) AND VOL<=REF(VOL,1);
伪装:=MFI>=REF(MFI,1) AND VOL<=REF(VOL,1);
蛰伏:=MFI<=REF(MFI,1) AND VOL>=REF(VOL,1);
卖盘:VOL-主动买盘,LINETHICK0,PRECISION2,colorFF00;
卖盘大:=(卖盘-主动买盘)/卖盘>0.6;
买盘大:=(主动买盘-卖盘)/主动买盘>0.6;
WJ:=(HIGH+LOW+CLOSE)/3;
VD1:=IF(HIGH=LOW,1,HIGH-MAX(OPEN,CLOSE));
VD2:=IF(HIGH=LOW,1,MAX(CLOSE,OPEN)-WJ);
VD3:=IF(HIGH=LOW,1,MIN(OPEN,CLOSE)-LOW);
VD4:=IF(HIGH=LOW,1,WJ-MIN(CLOSE,OPEN));
VD5:=VOL/(IF(HIGH=LOW,4,HIGH-LOW));
VD6:=VD1*VD5;
VD7:=VD2*VD5;
VD8:=VD3*VD5;
VD9:=VD4*VD5;
买入量:=VD9+VD8;
卖出量:=-VD6+VD7;
卖量:=VOL-买入量;
卖量大:=(卖量-买入量)/卖量>0.4;
买量大:=(买入量-卖量)/买入量>0.4;
EXPLAIN(1=1,' 【买卖盘解量】'),colorFFFF;
EXPLAIN(绿灯,'[绿灯]+实计交易量增加。+MFI促进指数增加。'),colorFF;
EXPLAIN(衰退,'[衰退]-实计交易量减少。-MFI促进指数减少。'),colorFF00;
EXPLAIN(伪装,'[伪装]-实计交易量减少。+MFI促进指数增加。'),color9900;
EXPLAIN(蛰伏,'[蛰伏]+实计交易量增加。-MFI促进指数减少。'),colorFFFF;
EXPLAIN(卖盘大,'主动卖盘大于主动买盘60%以上;'),color9900;
EXPLAIN(买盘大,'主动买盘大于主动卖盘60%以上;'),colorFFFF;
EXPLAIN(卖量大,'☆卖出量大于买入量40%以上;'),color9900;
EXPLAIN(买量大,'☆买入量大于卖出量40%以上;'),colorFFFF;
EXPLAIN(1=1,' 【控盘情况】'),colorFFFF;
EXPLAINEX(1=1,'当日主动买卖盘(手)=',VOL,2,0),colorFFCCFF;YANG:=CLOSE>=OPEN;//陽線
YING:=CLOSE<OPEN; //陰線
{陽線上下影}
STICKLINE(YANG,L,H,0,0),,COLOR5555FF;
{陽K線}
STICKLINE(YANG,C,O,8,0),COLOR5555FF;
STICKLINE(YANG,C,O,7,0),COLOR6666FF;
STICKLINE(YANG,C,O,6,0),COLOR7777FF;
STICKLINE(YANG,C,O,5,0),COLOR8888FF;
STICKLINE(YANG,C,O,4,0),COLOR9999FF;
STICKLINE(YANG,C,O,3,0),COLORAAAAFF;
STICKLINE(YANG,C,O,2,0),COLORBBBBFF;
STICKLINE(YANG,C,O,1,0),COLORCCCCFF;
{陰線上下影}
STICKLINE(YING,L,H,0,0),,COLORFFFF55;
{陰K線}
STICKLINE(YING,C,O,8,0),COLORFFFF55;
STICKLINE(YING,C,O,7,0),COLORF0FF66;
STICKLINE(YING,C,O,6,0),COLOREEFF77;
STICKLINE(YING,C,O,5,0),COLORDDFF88;
STICKLINE(YING,C,O,4,0),COLORCCFF99;
STICKLINE(YING,C,O,3,0),COLORCCFFAA;
STICKLINE(YING,C,O,2,0),COLORBBFFBB;
STICKLINE(YING,C,O,1,0),COLORAAFFCC;
{跳空情況}
STICKLINE(LOW>REF(HIGH,1) OR HIGH<REF(LOW,1),HIGH,LOW,1,1),COLOR00FF00; //跳空
STICKLINE(OPEN<=CLOSE AND LOW>REF(HIGH,1) AND CLOSE>=REF(CLOSE,1),OPEN,CLOSE,8,1),COLOR00FF00; //跳空上漲收陽
STICKLINE(OPEN>CLOSE AND LOW>REF(HIGH,1) AND CLOSE>=REF(CLOSE,1),OPEN,CLOSE,8,0),COLOR00FF00;//跳空上漲收陰
STICKLINE(OPEN<=CLOSE AND HIGH<REF(LOW,1) AND CLOSE< REF(CLOSE,1),OPEN,CLOSE,8,1),COLOR00FF00; //跳空下跌收陽
STICKLINE(OPEN>CLOSE AND HIGH<REF(LOW,1) AND CLOSE< REF(CLOSE,1),OPEN,CLOSE,8,0),,COLOR00FF00; //跳空下跌收陰{程序化交易 www.cxh99.com }

 

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

 

 

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

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

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

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

 


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

相关文章

    没有相关内容