找回密码
 立即注册

QQ登录

只需一步,快速开始

广告载入中...
查看: 56481|回复: 2335

通达信的朋友有福了:于氏K线战法公式(测试通过)

   火... [复制链接]
发表于 2010-12-20 16:03 | 显示全部楼层 |阅读模式

马上注册,享用更多功能,让你轻松玩转本论坛。

您需要 登录 才可以下载或查看,没有账号?立即注册

×
VAR1:=EMA(CLOSE,3);
VAR2:=EMA(CLOSE,8);
MA5:=MA(CLOSE,5);
MA21:EMA(CLOSE,21),LINETHICK2,COLORYELLOW;
STICKLINE((VAR1 < MA21),C,O,4,0),COLORGREEN;
STICKLINE((VAR1 > MA21) ,C,O,4,0),COLORRED;
STICKLINE(((VAR1 > VAR2) AND (VAR1 < MA21)) ,C,O,4,0),COLOR1DBB00;
STICKLINE(((VAR1 < VAR2) AND (VAR1 > MA21)) ,C,O,4,0),COLORFB6E0B;
STICKLINE((C < O),L,H,0,0), COLORGREEN;
STICKLINE((C > O),L,H,0,0), COLORRED;
MA2:=MA(CLOSE,10);
MA34:=MA(CLOSE,34);
VARA:=((AMOUNT / VOL) / 100);
VARB:=(((((3 * HIGH) + LOW) + OPEN) + (2 * CLOSE)) / 7);
VARC:=((SUM(AMOUNT,7) / VARA) / 100);
VARD:=DMA(VARB,(VOL / VARC));
VARE:=(((CLOSE - VARD) / VARD) * 100);
VARF:=(((CLOSE - LLV(LOW,34)) / (HHV(HIGH,34) - LLV(LOW,34))) * 100);
VARJ:=(MA(VARE,20) + STD(VARE,20));
BIAS18:=(((CLOSE - MA(CLOSE,18)) / MA(CLOSE,18)) * 100);
K:=SMA(VARF,3,1);
顶:(((REF(BIAS18,1) >= 5) AND CROSS(VARJ,VARE)) AND (K > 79)),NODRAW;
DRAWTEXT(FILTER(((((REF(BIAS18,1) >= 5) AND CROSS(VARJ,VARE))) AND (K > 79)),3),(HIGH * 1.04),'↓S'),COLORGREEN;
VVAR1:=(EMA(CLOSE,30) - EMA(CLOSE,17));
VVAR2:=EMA(VVAR1,5);
DRAWTEXT(FILTER((CROSS(VVAR1,VVAR2) ),3),(CLOSE * 0.96),'↑B'),COLORYELLOW;
DRAWTEXT((FILTER((((((((REF(CLOSE,13) - CLOSE) / REF(CLOSE,13)) * 100) > 15) AND ((SUM((VOL / CAPITAL),13) * 100) < 18)) AND (((VOL / CAPITAL) * 100) < 2.5)) AND ((((REF(CLOSE,1) - CLOSE) / REF(CLOSE,1)) * 100) < 8)),3)),CLOSE * 0.96,'↑B'),COLORLIRED;
TR1:=SUM(MAX(MAX((HIGH - LOW),ABS((HIGH - REF(CLOSE,1)))),ABS((LOW - REF(CLOSE,1)))),7);
HD:=(HIGH - REF(HIGH,1));
LD:=(REF(LOW,1) - LOW);
DMP:=SUM(IF(((HD > 0) AND (HD > LD)),HD,0),7);
DMM:=SUM(IF(((LD > 0) AND (LD > HD)),LD,0),7);
PDI:=((DMP * 100) / TR1);
MDI:=((DMM * 100) / TR1);
ADX:=MA(((ABS((MDI - PDI)) / (MDI + PDI)) * 100),7);
ADXR:=((ADX + REF(ADX,7)) / 2);
DRAWTEXT(FILTER((((COUNT(PDI,4) = 0)) AND ((HHV(HIGH,10) / LLV(LOW,10)) > 1.2)),3),(CLOSE * 0.96),'↑B'),COLORRED;
VAR1J:=(((CLOSE - LLV(LOW,9)) / (HHV(HIGH,9) - LLV(LOW,9))) * 100);
VAR2J:=SMA(VAR1J,3,1);
VAR3J:=SMA(VAR2J,3,1);
VAR4J:=(VAR1J * 1.05);
VAR6J:=(((HHV(HIGH,36) - CLOSE) / (HHV(HIGH,36) - LLV(LOW,36))) * 100);
VAR7J:=SMA(VAR6J,5,1);
VAR9J:=(((MA((VOL / CAPITAL),30) * MA(VOL,60)) / 10000) + MA(CLOSE,30));
DRAWTEXT(FILTER((((CROSS(VAR2J,VAR4J) AND (VAR3J > 60))) AND (VAR7J < (VAR9J + 10))),3),(H * 1.02),'↓S'),COLORBROWN;
早晨之星:((((((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))) ,NODRAW;
黄昏之星:((((((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))) ,NODRAW;
长十字:((CLOSE = OPEN) AND ((HIGH / LOW) > 1.03)),NODRAW;
垂死十字:(((CLOSE = OPEN) AND (CLOSE = LOW)) AND NOT(CLOSE=HIGH)) ,NODRAW;
早晨十字星:((((((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))) ,NODRAW;
黄昏十字星:((((((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))) ,NODRAW;
射击之星:(((MIN(OPEN,CLOSE) = LOW) AND ((HIGH - LOW) > (3 * (MAX(OPEN,CLOSE) - LOW)))) AND (CLOSE > MA(CLOSE,5))) ,NODRAW;
倒转锤头:(((MIN(OPEN,CLOSE) = LOW) AND ((HIGH - LOW) > (3 * (MAX(OPEN,CLOSE) - LOW)))) AND (CLOSE < MA(CLOSE,5))),NODRAW;
锤头:(((HIGH = MAX(OPEN,CLOSE)) AND ((HIGH - LOW) > (3 * (HIGH - MIN(OPEN,CLOSE))))) AND (CLOSE < MA(CLOSE,5))) ,NODRAW;
吊颈:(((HIGH = MAX(OPEN,CLOSE)) AND ((HIGH - LOW) > (3 * (HIGH - MIN(OPEN,CLOSE))))) AND (CLOSE > MA(CLOSE,5))) ,NODRAW;
穿头破脚:(((((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)))),NODRAW;
乌云盖顶:(((((REF(CLOSE,1) / REF(OPEN,1)) > 1.03) AND ((CLOSE / OPEN) < 0.97)) AND (OPEN > REF(CLOSE,1))) AND (CLOSE < REF(CLOSE,1))) ,NODRAW;
曙光初现:(((((REF(CLOSE,1) / REF(OPEN,1)) < 0.97) AND ((CLOSE / OPEN) > 1.03)) AND (OPEN < REF(CLOSE,1))) AND (CLOSE > REF(CLOSE,1))),NODRAW;
身怀六甲:(((((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)))),NODRAW;
十字胎:(((((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)))) ,NODRAW;
平顶:((ABS((HIGH - REF(HIGH,1))) / HIGH) < 0.001) ,NODRAW;
平底:(((ABS((LOW - REF(LOW,1))) / LOW) < 0.001) AND ((ABS((REF(LOW,1) - REF(LOW,2))) / REF(LOW,1)) <= 0.001)),NODRAW;
大阳烛:(((CLOSE / OPEN) > 1.05) AND ((HIGH / LOW) < ((CLOSE / OPEN) + 0.018))) ,NODRAW;
三个白武士:(((((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))) ,NODRAW;
双飞乌鸦:(((REF(CLOSE,1) < REF(OPEN,1)) AND (CLOSE < OPEN)) AND ((CLOSE / OPEN) < 0.98)) ,NODRAW;
孕育线:(((((((((((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))),NODRAW;
多方炮:(((REF(CLOSE,2) > REF(OPEN,2)) AND (REF(CLOSE,1) < REF(OPEN,1))) AND (CLOSE > OPEN)) ,NODRAW;
出水芙蓉:(((((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))) ,NODRAW;
上升三部曲:(((((((((((((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))) ,NODRAW;
下跌三部曲:(((((((((((((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))),NODRAW;
跳空缺口:(HIGH < REF(LOW,1)) OR ((LOW > REF(HIGH,1)) ),NODRAW;
三只乌鸦:(((((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))) ,NODRAW;
光脚阴线:((LOW = CLOSE) AND NOT(HIGH= LOW)) ,NODRAW;
光头阳线:((HIGH = CLOSE) AND NOT(HIGH=LOW)),NODRAW;
分离:((OPEN = REF(OPEN,1)) AND (((CLOSE - OPEN) * (REF(CLOSE,1) - REF(OPEN,1))) < 0)) ,NODRAW;
长下影:(((MIN(CLOSE,OPEN) - LOW) / (HIGH - LOW)) > 0.667) ,NODRAW;
长上影:(((HIGH - MAX(CLOSE,OPEN)) / (HIGH - LOW)) > 0.667) ,NODRAW;
十字星:((CLOSE = OPEN) AND NOT(HIGH=LOW)) ,NODRAW;
大阴烛:(((OPEN / CLOSE) > 1.05) AND ((HIGH / LOW) < ((OPEN / CLOSE) + 0.018))) ,NODRAW;
好友反攻:(((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)) ),NODRAW;
倾盆大雨:(((((REF(CLOSE,1) / REF(OPEN,1)) >= 1.03) AND (OPEN < REF(CLOSE,1))) AND (OPEN > REF(OPEN,1))) AND (CLOSE < REF(OPEN,1))) ,NODRAW;

发表于 2019-3-18 14:52 | 显示全部楼层
错误句 :
孕育线((((((((((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 <= R茸详细信息 : 单语句函数嵌套层次太多!建议分多条语句编写
错误起始位置 : 5576 ; 长度: 4
回复

使用道具 举报

发表于 2014-3-2 20:59 | 显示全部楼层
向你学习,好不好呀,看看

回复

使用道具 举报

发表于 2014-3-14 11:02 | 显示全部楼层
过于复杂,准确性不高
回复

使用道具 举报

 楼主| 发表于 2010-12-20 16:05 | 显示全部楼层
回复

使用道具 举报

 楼主| 发表于 2010-12-20 16:07 | 显示全部楼层
【K线语言解盘】部分可放在“用法注释”中
倾盆大雨,'K线形态分析:倾盆大雨,见顶信号;
大阴烛,'K线形态分析:大阴烛,后市向淡,发生逆转;
好友反攻,'K线形态分析:好友反攻,底部反转;
跳空缺口,'K线形态分析:跳空缺口,注意向上还是向下跳空;
光脚阴线,'K线形态分析:光脚阴线,空方抛压的坚决势态,具体力度的的大小要根据阴线实体的大小来定,下跌信号;
光头阳线,'K线形态分析:光头阳线,说明多方积极上攻态势,具体力度的的大小要根据阳线实体的大小来定,后市看涨;
三只乌鸦,'K线形态分析:三只乌鸦,行情开始疲软,更趋加速下降的象征,可能见顶回落;
分离,'K线形态分析:分离,注意看涨分离和看跌分离;
长下影,'K线形态分析:长下影,持续下跌后出现,有可能止跌回升;在升势末期出现,须多加留意;
长上影,'K线形态分析:长上影,表明行情上档压力沉重,升势受阻;
下跌三部曲,'K线形态分析:下跌三部曲,下跌信号;
上升三部曲,'K线形态分析:上升三部曲,上涨信号;
早晨之星,'K线形态分析:早晨之星,见底回升;
黄昏之星,'K线形态分析:黄昏之星,见顶回落;
十字星,'K线形态分析:十字星,重要的警告信号,原趋势停顿或反转,有转向意味,注意股价位置在顶部还是底部;
长十字,'K线形态分析:长十字,注意在顶部还是底部;
垂死十字,'K线形态分析:垂死十字,下跌信号;
早晨十字星,'K线形态分析:早晨十字星,上涨信号,见底回升;
黄昏十字星,'K线形态分析:黄昏十字星,下跌信号,见顶回落;
射击之星,'K线形态分析:射击之星,可能见顶回落,可靠性低;
倒转锤头,'K线形态分析:倒转锤头,可能见底回升;
锤头,'K线形态分析:锤头,可能见底回升,如有量配合,信号强烈;
吊颈,'K线形态分析:吊颈,上升行情中见顶回落,顶部出现,见顶信号;
平顶,'K线形态分析:平顶,温和的反转;
穿头破脚,'K线形态分析:穿头破脚,顶部出现,见顶回落信号;
乌云盖顶,'K线形态分析:乌云盖顶,见顶回落信号;
曙光初现,'K线形态分析:曙光初现,后市见底回升;
身怀六甲,'K线形态分析:身怀六甲,出现在底部,是见底回升信号;出现在顶部,是见顶回落信号;
十字胎,'K线形态分析:十字胎;
平底,'K线形态分析:平底,温和的反转;
大阳烛,'K线形态分析:大阳烛,,看涨;
三个白武士,'K线形态分析:三个白武士,每日收盘价上移,表示可能见底回升;
双飞乌鸦,'K线形态分析:双飞乌鸦,行情将见顶回落;
孕育线,'K线形态分析:孕育线,注意股价位置;
多方炮,'K线形态分析:多方炮,在底部出现有上涨以为,在中间出现有可能是上涨中继,顶部出现是复合见顶信号;
出水芙蓉,'K线形态分析:出水芙蓉,见底回升;
回复

使用道具 举报

发表于 2010-12-20 16:14 | 显示全部楼层
回复

使用道具 举报

发表于 2010-12-20 16:54 | 显示全部楼层
谢谢楼主分享。。。
回复

使用道具 举报

发表于 2010-12-20 16:58 | 显示全部楼层
DDDDDDDDDDDDDDDD
回复

使用道具 举报

发表于 2010-12-20 17:20 | 显示全部楼层
看看,多学习。
回复

使用道具 举报

发表于 2010-12-20 17:25 | 显示全部楼层
谢谢楼主分享。。。
回复

使用道具 举报

发表于 2010-12-20 17:28 | 显示全部楼层
,'K线形态分析:乌云盖顶,见顶回落信号;
曙光初现,'K线形态
回复

使用道具 举报

发表于 2010-12-20 17:29 | 显示全部楼层
非常感谢分享!!!
回复

使用道具 举报

发表于 2010-12-20 17:29 | 显示全部楼层
谢谢楼主分享。。。
回复

使用道具 举报

发表于 2010-12-20 17:53 | 显示全部楼层
好的看一下
回复

使用道具 举报

发表于 2010-12-20 18:17 | 显示全部楼层
看看  谢谢楼主
回复

使用道具 举报

发表于 2010-12-20 18:24 | 显示全部楼层
谢谢楼主分享。。。
回复

使用道具 举报

发表于 2010-12-20 18:26 | 显示全部楼层
00000000000000000000000000
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|股海明灯官网 ( 京ICP备18020431号 )

GMT+8, 2024-11-24 04:31 , Processed in 0.133263 second(s), Total 15, Slave 13 queries , Gzip On, MemCached On.

Powered by Discuz! X3.5

Copyright © 2001-2024 Tencent Cloud.

快速回复 返回顶部 返回列表