投股票网 www.tou18.cn [今日股市行情 股市在线查询 股票大盘行情] 股市有风险 投资需谨慎 手机APP下载 | 手机访问 | 加入收藏 | 保存到桌面
投股票网
今日股市行情 股市在线查询 股票大盘行情
个股查询: 资金行情 DDX查询 大智慧超赢 同花顺DDE 千股千评 最新提示 股票公告 投资要点 评级查询 大小非 股东 增发配股 股权 高管 股票概况
当前位置: 投股票网 > 股市公式下载 > 公式问题
股市公式查询:

将老憨解盘和老憨解码主副图指标改成选股

2020/2/21 18:53:15

公式编写说明:

老憨解盘JL01:=MA(C,3);LJL07:=(3*C+L+O+H)/6;牛线:(20*LJL07+19*REF(LJL07,1)+18*REF(LJL07,2)+17*REF(LJL07,3)+16*REF(LJL07,4)+15*REF(LJL07,5)+14*REF(LJL07,6)+13*REF(LJL07,7)+12*REF(LJL07,8)+11*REF(LJL07,9)+10*REF(LJL07,10)+9*REF(LJL07,11)+8*REF(LJL07,12)+7*REF(LJL07,13)+6*REF(LJL07,14)+5*REF(LJL07,15)+4*REF(LJL07,16)+3*REF(LJL07,17)+2*REF(LJL07,18)+REF(LJL07,20))/210,COLORRED;马线:MA(牛线,6),COLORYELLOW,LINETHICK4,POINTDOT;上限:马线+3*STD(CLOSE,20),COLORMAGENTA,CROSSDOT;下限:马线-2.9*STD(CLOSE,20),COLORGREEN,CROSSDOT;买:马线-2*STD(CLOSE,20),LINETHICK2,COLORWHITE;卖:马线+2*STD(CLOSE,20),LINETHICK2,COLORYELLOW;等待:IF(JL01<=牛线,马线,DRAWNULL),COLORRED,LINETHICK4,POINTDOT;VAR1:=(C>REF(C,1) AND C>REF(C,2));VAR2:=(REF(VAR1,1) AND C<=REF(C,1) AND C>=REF(C,2));VAR3:=(REF(VAR2,1) AND C>=REF(C,1) AND C<=REF(C,2));VAR4:=(REF(VAR3,1) AND C<=REF(C,1) AND C>=REF(C,2));VAR5:=(REF(VAR4,1) AND C>=REF(C,1) AND C<=REF(C,2));VAR6:=(REF(VAR5,1) AND C<=REF(C,1) AND C>=REF(C,2));VAR7:=(REF(VAR6,1) AND C>=REF(C,1) AND C<=REF(C,2));VAR8:=(REF(VAR7,1) AND C<=REF(C,1) AND C>=REF(C,2));VAR9:=(REF(VAR8,1) AND C>=REF(C,1) AND C<=REF(C,2));VARA:=(REF(VAR9,1) AND C<=REF(C,1) AND C>=REF(C,2));VARB:=(REF(VARA,1) AND C>=REF(C,1) AND C<=REF(C,2));VARC:=(REF(VARB,1) AND C<=REF(C,1) AND C>=REF(C,2));持股:IF(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VARA OR VARB OR VARC,牛线,DRAWNULL),COLORRED,LINETHICK1;VARD:=(C<REF(C,1) AND C<REF(C,2));VARE:=(REF(VARD,1) AND C>=REF(C,1) AND C<=REF(C,2));VARF:=(REF(VARE,1) AND C<=REF(C,1) AND C>=REF(C,2));VAR10:=(REF(VARF,1) AND C>=REF(C,1) AND C<=REF(C,2));VAR11:=(REF(VAR10,1) AND C<=REF(C,1) AND C>=REF(C,2));VAR12:=(REF(VAR11,1) AND C>=REF(C,1) AND C<=REF(C,2));VAR13:=(REF(VAR12,1) AND C<=REF(C,1) AND C>=REF(C,2));VAR14:=(REF(VAR13,1) AND C>=REF(C,1) AND C<=REF(C,2));VAR15:=(REF(VAR14,1) AND C<=REF(C,1) AND C>=REF(C,2));VAR16:=(REF(VAR15,1) AND C>=REF(C,1) AND C<=REF(C,2));VAR17:=(REF(VAR16,1) AND C<=REF(C,1) AND C>=REF(C,2));VAR18:=(REF(VAR17,1) AND C>=REF(C,1) AND C<=REF(C,2));持币:IF(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,牛线,DRAWNULL),COLORGREEN,LINETHICK1;GJ:=(C+H+L+O)/4;明日阻力:=L+(GJ-L)+(C-L);明日支撑:=L+(C-GJ);今日支撑:REF(明日支撑 , 1),COLORMAGENTA,NODRAW;今日阻力:REF(明日阻力 , 1),COLORYELLOW,NODRAW;STICKLINE(C>=O,C,O,3,0),COLOR000045;STICKLINE(C>=O,C,O,2.5,0),COLOR000065;STICKLINE(C>=O,C,O,2,0),COLOR000085;STICKLINE(C>=O,C,O,1.5,0),COLOR0000A5;STICKLINE(C>=O,C,O,1,0),COLOR0000C5;STICKLINE(C>=O,C,O,0.5,0),COLOR0000E5;STICKLINE(C>=O,H,L,0,0),COLOR0000F5;STICKLINE(C<O,C,O,3,0),COLOR353500;STICKLINE(C<O,C,O,2.5,0),COLOR454500;STICKLINE(C<O,C,O,2,0),COLOR555500;STICKLINE(C<O,C,O,1.5,0),COLOR656500;STICKLINE(C<O,C,O,1,0),COLOR757500;STICKLINE(C<O,C,O,0.5,0),COLOR858500;STICKLINE(C<O,H,L,0,0),COLOR959500;A007:=(HIGH+LOW+CLOSE)/3;A008:=((A007-MA(A007,14))/(0.015*AVEDEV(A007,14)))/2;A009:=(A008+(EMA(((0-(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;DRAWTEXT(FILTER(KKMD,30),L,'最佳买入时机★'),COLOR00FFFF;DRAWTEXT(FILTER(KKML,30),H,'最佳卖出时机'),COLORFFFF00;DRAWTEXT(FILTER(KKMQ,30),C,'持仓区'),COLOR00FF00;DRAWTEXT(FILTER(KKAL,30),H,'空仓区'),COLORFF8080;DRAWTEXT(FILTER(CLOSE/REF(CLOSE,1)>INDEXC/REF(INDEXC,1),30),L*0.95,'该股强于大盘'),COLORFF00FF;DRAWTEXT(CROSS(MA(CLOSE,5),MA(CLOSE,10)),L*0.92,'可出手'),COLORFF00FF;DRAWTEXT(CROSS(MA(CLOSE,10),MA(CLOSE,5)),H*1.08,'收手了'),COLORFF0000;DRAWTEXT(FILTER(KKM>EMA(KKM,4) AND KKM>REF(KKM,1),30),L*0.98,'快速介入');DRAWTEXT(FILTER(KKM<EMA(KKM,4) AND KKM<REF(KKM,1),30),H*1.02,'风险较大');DRAWTEXT(FILTER(KKM>EMA(KKM,4) AND KKM<REF(KKM,1),30),H,'休息观望~'),COLORAA8800;DRAWTEXT(FILTER(KKM<EMA(KKM,4) AND KKM>REF(KKM,1),30),L,'有防御能力'),COLORAA00AA;老憨解码 VAR01:=LLV(L,10); VAR02:=HHV(H,25); 趋势线:=EMA((C-VAR01)/(VAR02-VAR01)*4,4); 价:=EMA(MA((((C-REF(C,1))+(H-REF(H,1))+(L-REF(L,1)))/3)/C,5),1); 价5:=MA(价,5); 量:=EMA(MA((V-REF(V,1))/V,5),1); 量5:=MA(量,5); 角:=1>(ATAN((C/REF(C,1)-1)*100)*180/3.14115926)>-1; W:=(C/REF(C,1))>1.01; 横盘:=REF(((HHV(价,3)-LLV(价,3))/LLV(价,3)),1)<=(0.00/100) AND REF(((HHV(价5,3)-LLV(价5,3))/LLV(价5,3)),1)<=(0.00/100); 量横盘:=REF(((HHV(量,3)-LLV(量,3))/LLV(量,3)),1)<=(0.00/100) AND REF(((HHV(量5,3)-LLV(量5,3))/LLV(量5,3)),1)<=(0.00/100); 量比:=((量+REF(量,1)+REF(量,2))/(量5+REF(量5,1)+REF(量5,2)))>0.5; A:=COUNT(0.00<=价<=0.02 AND 0.00<=价5<=0.02,CROSS(价,价5))=1 AND W ,COLORYELLOW; ABB:=COUNT(0.00<=价<=0.02 AND 0.00<=价5<=0.02,横盘 AND 量比 AND 量横盘 AND 角)=1 AND W ,COLORRED; 逃顶高手:=A AND ABB; 地量一:=MA(V,3)/MA(V,20)<0.4; 地量二:=COUNT(V/(V,20)<0.4,3)=3; 地量三:=V/MA(V,30)<0.5 AND V/HHV(V,30)<0.2; AA:=SUMBARS(VOL,CAPITAL); 地量四:=VOL<MA(VOL,AA)/3; 地量选股:=(地量一 OR 地量二 OR 地量三 OR 地量四)=1 AND (REF(地量一,1) OR REF(地量二,1) OR REF(地量三,1) OR REF(地量四,1))=0; P1:=5; P2:=4; VARAB:=LLV(LOW,P1); VARBB:=HHV(HIGH,P1); KA1:=MA((CLOSE-VARAB)/(VARBB-VARAB)*100,P2),COLORRED; DA1:=MA(0.667*REF(KA1,1)+0.333*KA1,2),COLORWHITE; 庄家:=KA1; 散户:=DA1; 低吸:=CROSS(庄家,散户) AND 庄家<30; VAR2D:=(2*CLOSE+HIGH+LOW)/4; VAR03:=IF(YEAR>=2099 AND MONTH>2,0,1); VAR04:=LLV(LOW,5); VAR05:=HHV(HIGH,4); 庄家1:= EMA((VAR2D-VAR04)/(VAR05-VAR04)*100,4)*VAR03; 散户1:= EMA(0.667*REF(庄家1,1)+0.333*庄家1,2)*VAR03; 短进1:=CROSS(庄家1,散户1) AND 庄家1<50 AND 29<庄家1; 低吸1:=CROSS(庄家1,散户1) AND 庄家1<30; 买入:=逃顶高手 AND 低吸 AND (短进1 OR 低吸1) AND 趋势线>REF(趋势线,1); {短线买入立柱图} STICKLINE(买入,0,6,3,0),COLORRED; DRAWICON(买入,5,5)COLORFF00FF ; DRAWTEXT(逃顶高手 AND 地量选股,2,'地量'),COLORYELLOW; DRAWTEXT(买入,4.5,'短线买入'),COLORYELLOW; VAR21:=REF(CLOSE,1); VAR22:=((SMA(MAX((CLOSE - VAR21),0),6,1) / SMA(ABS((CLOSE - VAR21)),6,1) * 100)); 短期顶部:CROSS(+80,VAR22) *8,COLORWHITE,LINETHICK2,STICK; LC:=REF(CLOSE,1); RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100; 卖点:=CROSS(85,RSI1)*30,COLOR00FF00,LINETHICK2; 卖:IF(卖点,6.5,0),STICK,COLORGREEN,LINETHICK4; 洗钱A:=(CLOSE-LLV(LOW,32))/(HHV(HIGH,32)-LLV(LOW,32))*1.2*CLOSE; 量1:=EMA(洗钱A,3); 量2:=EMA(洗钱A,5); 量3:=EMA(洗钱A,7); STICKLINE(量1>量2,量3,量1,3,1),COLORRED; STICKLINE(量1<量2,量3,量1,2,0),COLORCYAN; T1:=量2>量3 AND 量1<REF(量1,1); T2:=量2<量3 AND 量1>REF(量1,1); STICKLINE(T1,量1,量3,2,0),COLORYELLOW; STICKLINE(T2,量1,量3,3,1),COLORFF00FF; 洗钱B:=SMA(洗钱A,13,1); 分水岭:SMA(洗钱B,2.5,1.5),LINETHICK2,COLORWHITE; 牛线:3*洗钱B-2*分水岭,LINETHICK2,COLORFF00FF ; 熊线:4*分水岭-3*洗钱B,LINETHICK2,COLORFF6633; DIF1:=EMA(C,12)-EMA(C,26); DEA1:=EMA(DIF1,9); MACD1:=2*(DIF1-DEA1); QZQ:=BARSLAST(REF(MACD,1)<0 AND MACD>0); QM:=LLVBARS(MACD1,QZQ+20); MQDZ:=IF(QM>QZQ,REF(MACD1,QM),0); QF:=LLVBARS(DIF1,QZQ+20); DQDZ:=IF(QF>QZQ,REF(DIF1,QF),0); XG1:=MACD1<0 AND MACD1>MQDZ AND DIF1<0 AND DIF1>DQDZ AND C=LLV(C,QZQ+20) AND MQDZ<0 AND DQDZ<0; XG:REF(XG1,1)=1 AND MACD1>REF(MACD1,1); VAR21A:=(REF(HIGH,1)+REF(LOW,1))/2; VAR61:=REF(CLOSE,1); VAR70A:=SMA(MAX(CLOSE-VAR61,0),6,1)/SMA(ABS(CLOSE-VAR61),6,1)*100; DRAWICON(CROSS(90,VAR70A),H*0.8.04,9); MTM1:=C-REF(C,1); 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; DRAWTEXT(FILTER(KKMD,30),L*0.05,'▲短买'),COLOR00FFFF; VAR06:=REF(C,1); VAR07:=SMA(MAX(C-VAR06,0),6,1)/SMA(ABS(C-VAR06),6,1)*100; DRAWTEXT(CROSS(82,VAR07),H*0.9,'◤减仓'),COLORGREEN; RSVB:=(C-LLV(L,25))/(HHV(HIGH,25)-LLV(L,25))*100; K:=SMA(RSVB,3,1); D:=SMA(K,3,1); J:=3*K-2*D; VARA6:=(2*C+H+L)/3; VARA7:=EMA(EMA(EMA(VARA6,4),4),4); VARA8:=(VARA7-REF(VARA7,1))/REF(VARA7,1)*100; VARA9:=MA(VARA8,3)+0.03; VARA10:=MA(VARA8,1); DRAWICON(CROSS(VARA9,VARA10) AND J>90,H*0.96,12),COLORGREEN; DRAWTEXT(CROSS(VARA9,VARA10) AND J>90,H*1.02,'卖'),COLORCYAN; LCD:=REF(CLOSE,1); RSI:=SMA(MAX(CLOSE-LCD,0),4.1,1)/SMA(ABS(CLOSE-LCD),4.1,1)*100; 建仓:CROSS(RSI,11)*10,COLORRED;

公式源码回答:

 看看是不是你要的最佳买入时机选股,试着弄了一个:A007:=(HIGH+LOW+CLOSE)/3;

A008:=((A007-MA(A007,14))/(0.015*AVEDEV(A007,14)))/2;
A009:=(A008+(EMA(((0-(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);
最佳买入时机:A016-A017>1 AND A016<30 AND A017<30;
    还请高手指点!!!!!

投股票 网 www.tou18.c n

股市公式下载推荐
投股票网股市查询:资金行情查询 实时DDX查询 大智慧超赢 千股千评 最新提示 股票公告 投资要点 评级查询 股东查询 增发配股查询 股权结构查询
华业香料 300886+3.30% 评股 实时DDX 大智慧 最新消息 题材分析 股权
神州泰岳 300002+3.30% 评股 实时DDX 大智慧 最新消息 题材分析 股权
征和工业 003033+3.28% 评股 实时DDX 大智慧 最新消息 题材分析 股权
丹化科技 600844+3.28% 评股 实时DDX 大智慧 最新消息 题材分析 股权
佰仁医疗 688198+3.27% 评股 实时DDX 大智慧 最新消息 题材分析 股权
奥泰生物 688606+3.27% 评股 实时DDX 大智慧 最新消息 题材分析 股权
康强电子 002119+3.26% 评股 实时DDX 大智慧 最新消息 题材分析 股权
博迁新材 605376+3.25% 评股 实时DDX 大智慧 最新消息 题材分析 股权
联瑞新材 688300+3.25% 评股 实时DDX 大智慧 最新消息 题材分析 股权
彤程新材 603650+3.25% 评股 实时DDX 大智慧 最新消息 题材分析 股权
联系我们:nmsy8@hotmail.com 友情链接 要求相关的财经股票网站 今日股市行情在线查询
本站不推荐任何股票,站内广告不代表投股票网的观点,由此引起的一切法律责任均与本站无关,请网民自行判断真假,谨防网上股票预测诈骗!
本站所有内容仅供参考,不构成投资建议,据此操作,风险自担。本站不为所提供数据的错误或因依此信息所采取的任何行为负责。
手机版(手机访问当前页面) | 手机APP下载 | 电脑端(适合电脑或大屏用户) | 备案号:沪ICP备2024045114号-120