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

轻松寻牛了记指标 公式 源码[其他软件公式]

指标公式代码分析及使用说明建议:

根据给定的代码和指标,我们可以得出以下分析指标和操作建议:

1. 图表形态:
   - 通过绘制柱状图(STICKLINE)来显示阳线和阴线的情况。
   - 通过绘制图标来表示收盘价高于开盘价或低于开盘价的情况。

2. 均线系统:
   - 使用指数移动平均线(EMA)和简单移动平均线(SMA)计算多条均线,如M2、M3、M4。
   - 当均线之间的关系发生变化时,可以判断买入、持股或卖出的时机。

3. 动量指标:
   - 使用RSI、KD等指标来衡量市场的超买超卖情况,并结合价格走势进行判断。例如,通过计算SK和SD指标来判断买进信号。

4. 主力资金和散户资金分析:
   - 分析主力资金和散户资金的比例关系,如通过计算主力资金比例(主力)和散户资金比例(散户)。
   - 当主力资金比例高于散户资金比例时,可以判断市场呈现积极的走势。

5. 资金流向:
   - 使用成交量、主力资金和散户资金等指标来分析资金的流入流出情况。
   - 当资金流入量较大时,可以判断市场看多情绪较高。

总体建议:
根据以上指标和分析,可以得出以下操作建议:
- 当价格突破均线系统形成的多头排列时,可以考虑买入或持股。
- 当价格跌破均线系统形成的空头排列时,可以考虑卖出或观望。
- 注意动量指标的变化,避免盲目追涨杀跌。
- 紧密关注主力资金和散户资金的流入流出情况,以把握市场趋势。
- 结合日常财务数据和市场板块情况,做出更准确的判断。

请注意,以上建议仅供参考,投资有风险,需谨慎决策。

源码:

 

input:N(20,1,111),N1(8,1,111),N2(73,1,111);
DRAWBKBMP(CLOSE>0,'0-19.bmp');
M2:EMA(CLOSE,8),colorCC6600;
M3:EMA(M2,12),LINETHICK2,colorCC99FF;
M4:EMA(M2,45),colorFFFF00;
CXH1:=EMA(M3,45);
FILLRGN((M2 >= M3),M2,M3),colorCC99FF;
FILLRGN((M2 < M3),M2,M3),colorCC6600;
A1:=MA(CLOSE,13);
ZX:=REF(A1,13/2+1);
CXH1111:=FORCAST(CLOSE,5);
CXH1:=1;

HH:=HHV(HIGH,10);
LL:=LLV(LOW,10);
AA:=SMA(CLOSE,13,2);DRAWTEXT(ISLASTBAR=1 AND AA>REF(AA,1) AND REF(AA,1)<REF(AA,2) AND REF(AA,2)<REF(AA,3),HH,'激进买入'),COLORRED;
DRAWTEXT(ISLASTBAR=1 AND AA>REF(AA,1) AND REF(AA,1)>REF(AA,2),HH,'激进持股'),COLOR0066FF;
DRAWTEXT(ISLASTBAR=1 AND AA<REF(AA,1) AND REF(AA,1)>REF(AA,2),HH,'激进卖出'),COLORGREEN;{http://www.cxh99.com}
A1:=MA(CLOSE,13);ZX:=REF(A1,13/2+1);
DRAWTEXT(ISLASTBAR=1 AND CROSS(CLOSE,ZX),LL,'稳健买入'),COLORRED;
DRAWTEXT(ISLASTBAR=1 AND CLOSE>ZX AND REF(CLOSE,1)>REF(ZX,1),LL,'稳健持股'),COLOR0066FF;
DRAWTEXT(ISLASTBAR=1 AND CLOSE<ZX AND REF(CLOSE,1)>REF(ZX,1),LL,'稳健卖'),COLORGREEN;{http://www.cxh99.com}
CXH1111:=FORCAST(CLOSE,5);
CXH1:=1;平衡线:=(EMA(EMA(EMA(HIGH,3),3),1) * CXH1);
CXH2:=(平衡线 * 0.85);
临界线:WMA(CLOSE,10),LINETHICK2;
CXH1:=POW((CLOSE - 临界线),1);
CXH2:=MA(CXH1,3);
CXH3:=SQRT(CXH2);
支撑线:=(临界线 - (1.96 * CXH3));
PARTLINE((临界线 < REF(临界线,1)),临界线),LINETHICK2,colorFF00;
CXH1Z:=(((CLOSE - OPEN) / OPEN) * 100);
CXH2Z:=REF(CLOSE,1);
CXH3Z:=((SMA(MAX((CLOSE - CXH2Z),0),6,1) / SMA(ABS((CLOSE - CXH2Z)),6,1)) * 100);
CXH4Z:=(COUNT((CXH3Z < 20),20) >= 1);
DRAWTEXT(((CXH1Z > 9) AND CXH4Z),LOW,'屠龙'),LINETHICK4,colorFFFF;
JJJ:=(((CLOSE + HIGH) + LOW) / 3);
AA:=EMA(JJJ,3);
BB:=REF(AA,1);
持股:DRAWICON((AA > BB),BB,12);
CXH3:=REF(CLOSE,1);
CXH4:=REF(CLOSE,2);
CXH5:=REF(CLOSE,3);
CXH6:=REF(CLOSE,9);
CXH7:=HHV(CLOSE,9);
CXH8:=LLV(CLOSE,9);
CXHC:=(((CXH3 = CXH8) AND (CLOSE >= CXH4)) OR ((((CXH4 = CXH8) AND (CXH3 <= CXH5)) AND (CXH4 < CXH6)) AND (CLOSE >= CXH3)));
黄s买入:STICKLINE(CXHC,(CXH3 * 0.94),(CXH4 * 0.94),25,16),colorFFFF;
CXH1:=((REF(HIGH,1) + REF(LOW,1)) / 2);
CXH2:=((REF(HIGH,1) + REF(LOW,1)) / 2);
CXH3:=(MA(CLOSE,N) + (2 * STD(CLOSE,N)));
DRAWICON(CROSS(CXH2,CXH3),(HIGH * 1.035),3);
DRAWTEXT(CROSS(CXH2,CXH3),(HIGH * 1.02),'卖出1'),colorFF00;
CXH4:=REF(CLOSE,1);
CXH5:=((SMA(MAX((CLOSE - CXH4),0),N1,1) / SMA(ABS((CLOSE - CXH4)),N1,1)) * 100);
CXH6:=CROSS(N2,CXH5);
CXH7:=FILTER(CXH6,4);
A7:=((((2 * CLOSE) + HIGH) + LOW) / 4);
CXH10:=LLV(LOW,34);
CXH11:=HHV(HIGH,34);
SK:=EMA((((A7 - CXH1) / (CXH2 - CXH1)) * 100),7);
SD:=EMA(((0.667 * REF(SK,1)) + (0.333 * SK)),5);
DRAWTEXT(IF((((((COUNT((CLOSE < REF(CLOSE,1)),8) / 8) > (6 / 10)) AND (VOL >= (1.5 * MA(VOL,5)))) AND COUNT((SK >= SD),3)) AND (REF(LOW,1) = LLV(LOW,120))),1,0),LOW,'●买进1'),color99FF;
DRAWTEXT(IF((((((((((COUNT((CLOSE < REF(CLOSE,1)),13) / 13) > (6 / 10)) AND COUNT((SK > SD),6)) AND (REF(LOW,5) = LLV(LOW,120))) AND REF((CLOSE >= OPEN),4)) AND REF((CLOSE > OPEN),3)) AND REF((CLOSE > OPEN),2)) AND REF((OPEN > CLOSE),1)) AND (OPEN > REF(CLOSE,1))),1,0),LOW,'●买进2'),colorFFFF;
CXH12:=(MA(CLOSE,80) - (MA(CLOSE,10) / 3));
DRAWTEXT(IF(((((CLOSE < CXH12) AND ((VOL / 240) > (MA(VOL,5) / 240))) AND (CLOSE > (REF(CLOSE,1) * 1.08))) AND (CLOSE < (MA(CLOSE,13) * 1.3))),1,0),LOW,'●抄底'),colorFFFF;
CXH11:=(((((2 * CLOSE) + OPEN) + HIGH) + LOW) / 5);
M8:=VOL;
主力:=(SUM((CXH11 * M8),3) / SUM(M8,3));
散户:=主力;
M1:=LLV(散户,5);
CXH11:=(((((2 * CLOSE) + OPEN) + HIGH) + LOW) / 5);
M8:=VOL;
M5:=(SUM((CXH11 * M8),1) / SUM(M8,1));
M13:=(SUM((CXH11 * M8),5) / SUM(M8,5));
M21:=(SUM((CXH11 * M8),13) / SUM(M8,13));
主力:=(SUM((CXH11 * M8),3) / SUM(M8,3));
Y:=(SUM((CXH11 * M8),21) / SUM(M8,21));
U1:=M5;
U3:=M13;
散户:=主力;
XX1:=M21;
C5:=((U3 > 散户) AND (散户 > XX1));
C8:=IF((C5 > 0),LLV(U3,5),HHV(散户,5));
C13:=IF((C5 > 0),LLV(散户,8),HHV(散户,5));
CXH1118:=IF((C5 > 0),LLV(XX1,13),HHV(散户,5));
M1:=LLV(散户,20);
DRAWTEXT((M1 = REF(M1,1)),M1,'┬'),LINETHICK5,colorCC33FF;
DRAWTEXT(((REF(M1,1) < REF(M1,2)) AND (M1 = REF(M1,1))),M1,''),colorFF;
STICKLINE((CLOSE < OPEN),HIGH,LOW,1,0),color8800;
STICKLINE((CLOSE < OPEN),HIGH,LOW,0,0),colorFF00;
STICKLINE((CLOSE < OPEN),CLOSE,OPEN,8,0),color8800;
STICKLINE((CLOSE < OPEN),CLOSE,OPEN,7,0),color9900;
STICKLINE((CLOSE < OPEN),CLOSE,OPEN,6,0),colorAA00;
STICKLINE((CLOSE < OPEN),CLOSE,OPEN,5,0),colorBB00;
STICKLINE((CLOSE < OPEN),CLOSE,OPEN,4,0),colorCC00;
STICKLINE((CLOSE < OPEN),CLOSE,OPEN,3,0),colorDD00;
STICKLINE((CLOSE < OPEN),CLOSE,OPEN,2,0),colorEE00;
STICKLINE((CLOSE < OPEN),CLOSE,OPEN,1,0),colorFF00;
STICKLINE((CLOSE >= OPEN),HIGH,LOW,1,0),colorFF;
STICKLINE((CLOSE >= OPEN),HIGH,LOW,0,0),colorEEFF;
STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,8,0),colorFF;
STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,7,0),color22FF;
STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,6,0),color44FF;
STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,5,0),color66FF;
STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,4,0),color88FF;
STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,3,0),colorAAFF;
STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,2,0),colorCCFF;
STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,1,0),colorEEFF;
CXH22:=((LLV(LOW,3) = LLV(LOW,3)) AND (CLOSE >= (OPEN * 1.04)));
CXH333:=(CLOSE > ((REF(HIGH,1) + REF(LOW,1)) / 2));
CXH44:=(CXH22 AND CXH333);
CXH55:=BARSLAST(CXH333);
CXH66:=BARSLAST(CXH44);
CXH77:=IF((CXH66 > 0),(((CLOSE - REF(CLOSE,1)) / REF(CLOSE,1)) * 100),0);
CXH88:=SUM(CXH77,1);
CXH93:=IF((CXH55 > 3),(0 - 2),0);
DRAWICON(((REF(CXH93,1) = (0 - 2)) AND (CXH93 = 0)),LOW,1),colorFF;
DRAWICON(((REF(CXH93,1) = (0 - 2)) AND (CXH93 = 0)),LOW,8),colorFF;
DRAWTEXTEX(SYSPARAM(3)=BARPOS,0,10,8,'【代码:'+STKLABEL+' 名称:'+STKNAME+'】'),Colorcyan;
DRAWTEXT((BARPOS = SYSPARAM(2)),HIGH,('所属板块:' + BLKNAME)+ '\n')ALIGN4,colorred;
BB:=BARPOS=SYSPARAM(1);
CXHiable: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),colorRED;
DRAWTEXT(BARPOS=p,HIGH*1.12,str1),ALIGN2,coloryellow,;
DRAWTEXT(SYSPARAM(2)=BARPOS,CLOSE,
'收益:'+ NUMTOSTR(FINANCE(33),2)+'\n'
+'净资:'+NUMTOSTR(FINANCE(34),2 )+'\n'
+'流通:'+ NUMTOSTR(FINANCE(7)/10000,2)+'亿'+'\n'
+'流通:'+NUMTOSTR(FINANCE(7)/FINANCE(1)*100 ,0)+' %'+'\n'
+'权益:'+NUMTOSTR(FINANCE(36),0 )+' %'+'\n'
+'主营:'+NUMTOSTR(FINANCE(53),0 )+' %'+'\n'
+'利润:'+NUMTOSTR(FINANCE(54),0 )+' %'+'\n'
+'主营:'+NUMTOSTR(FINANCE(20)/10000,1 )+'亿'+'\n'
),COLORccffcc,ALIGN4;

v1:EMA(CLOSE,5);
v2:EMA(EMA(CLOSE,90)*1.01,10),;
DRAWTEXT(CROSS(v1,v2),v1+0.05,'追牛'),color00ff00,LINETHICK2;
CXH1:=LLV(LOW,21);
CXH2:=HHV(HIGH,21);
AK1:=EMA((((CLOSE - CXH1) / (CXH2 - CXH1)) * 100),5);
AK:=EMA((((CLOSE - CXH1) / (CXH2 - CXH1)) * 50),13);

 

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

 

 

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

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

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

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

 


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

相关文章

    没有相关内容