于氏战法之K线语言指标 公式 源码[其他软件公式]
指标公式代码分析及使用参考建议:
根据给出的代码,这段指标似乎是用于股票或期货的技术分析。下面是对指标的分析和建议:
1. 均线:代码中使用了不同周期的均线,如EMA、MA等,用于判断价格的趋势。可以根据均线的交叉和价格相对于均线的位置来判断买入或卖出信号。
2. STICKLINE函数:根据一定条件画出柱状线,用于标识价格上涨或下跌。不同粗细和颜色的柱状线表示不同的条件和信号。
3. 其他指标:代码中还包括其他一些技术指标,如DMA、BIAS、SMA、STD等。这些指标可以用于进一步判断价格的走势和强度。
总结思路:
该指标主要通过均线和其他技术指标来判断价格的趋势和力量,并且通过柱状线和文本标识来给出买入和卖出的信号。
操作建议:
根据不同的交易策略和风险偏好,可以结合指标给出的信号进行买卖操作。同时需要注意,指标只是辅助分析工具,应结合其他因素一起考虑,如市场趋势、资金管理和风险控制等。建议在模拟账户上进行验证和调整,同时保持谨慎和合理的风险控制。
源码:
DRAWGBK(1,COLORRGB(30,60,150),COLORRGB(255,255,255),1);
CXH1:=EMA(CLOSE,3);
CXH2:=EMA(CLOSE,8);
MA5:=MA(CLOSE,5);
MA21:=EMA(CLOSE,21);
STICKLINE((CXH1 < MA21),CLOSE,OPEN,9,0),colorFF3300;
STICKLINE((CXH1 < MA21),CLOSE,OPEN,6,0),colorFF9900;
STICKLINE((CXH1 < MA21),CLOSE,OPEN,2.4,0),colorFFCC00;
STICKLINE((CXH1 < MA21),CLOSE,OPEN,1,0),colorFFFFFF;
STICKLINE((CXH1 < MA21) ,MAX(OPEN,CLOSE),HIGH,0.8,0),colorFFCC00;
STICKLINE((CXH1 < MA21) ,MIN(OPEN,CLOSE),LOW,0.8,0),colorFFCC00;
STICKLINE((CXH1 > MA21) ,CLOSE,OPEN,9,0),color99;
STICKLINE((CXH1 > MA21) ,CLOSE,OPEN,6,0),colorCC;
STICKLINE((CXH1 > MA21) ,CLOSE,OPEN,2.4,0),colorFF;
STICKLINE((CXH1 > MA21) ,CLOSE,OPEN,1,0),colorFFFFFF;
STICKLINE((CXH1 > MA21) ,MAX(OPEN,CLOSE),HIGH,0.8,0),color33FF;
STICKLINE((CXH1 > MA21) ,MIN(OPEN,CLOSE),LOW,0.8,0),color33FF;
STICKLINE(((CXH1 > CXH2) AND (CXH1 < MA21)) ,CLOSE,OPEN,9,0),color1DBB00;
STICKLINE(((CXH1 > CXH2) AND (CXH1 < MA21)) ,CLOSE,OPEN,6,0),color23E500;
STICKLINE(((CXH1 > CXH2) AND (CXH1 < MA21)) ,CLOSE,OPEN,2.4,0),color3DFF1A;
STICKLINE(((CXH1 > CXH2) AND (CXH1 < MA21)) ,CLOSE,OPEN,1,0),colorB0FFA1;
STICKLINE(((CXH1 > CXH2) AND (CXH1 < MA21)) ,MAX(OPEN,CLOSE),HIGH,0.8,0),colorD4FFCB;
STICKLINE(((CXH1 > CXH2) AND (CXH1 < MA21)) ,MIN(OPEN,CLOSE),LOW,0.8,0),colorD4FFCB;
STICKLINE(((CXH1 < CXH2) AND (CXH1 > MA21)) ,CLOSE,OPEN,9,0),colorFB6EB;
STICKLINE(((CXH1 < CXH2) AND (CXH1 > MA21)) ,CLOSE,OPEN,6,0),color31E4F2;
STICKLINE(((CXH1 < CXH2) AND (CXH1 > MA21)) ,CLOSE,OPEN,2.4,0),color46C9F2;
STICKLINE(((CXH1 < CXH2) AND (CXH1 > MA21)) ,CLOSE,OPEN,1,0),color81DAF6;
STICKLINE(((CXH1 < CXH2) AND (CXH1 > MA21)) ,MAX(OPEN,CLOSE),HIGH,0.8,0),colorBBEBFB;
STICKLINE(((CXH1 < CXH2) AND (CXH1 > MA21)) ,MIN(OPEN,CLOSE),LOW,0.8,0),colorBBEBFB;
MA2:=MA(CLOSE,10);
MA34:=MA(CLOSE,34);
CXHA:=((AMOUNT / VOL) / 100);
CXHB:=(((((3 * HIGH) + LOW) + OPEN) + (2 * CLOSE)) / 7);
CXHC:=((SUM(AMOUNT,7) / CXHA) / 100);
CXHD:=DMA(CXHB,(VOL / CXHC));
CXHE:=(((CLOSE - CXHD) / CXHD) * 100);
CXHF:=(((CLOSE - LLV(LOW,34)) / (HHV(HIGH,34) - LLV(LOW,34))) * 100);
CXHJ:=(MA(CXHE,20) + STD(CXHE,20));
BIAS18:=(((CLOSE - MA(CLOSE,18)) / MA(CLOSE,18)) * 100);
K:=SMA(CXHF,3,1);
顶:=(((REF(BIAS18,1) >= 5) AND CROSS(CXHJ,CXHE)) AND (K > 79));
DRAWTEXT(FILTER(((((REF(BIAS18,1) >= 5) AND CROSS(CXHJ,CXHE))) AND (K > 79)),3),(HIGH * 1.02),'↓S'),colorFFFF;
VCXH1:=(EMA(CLOSE,30) - EMA(CLOSE,17));
VCXH2:=EMA(VCXH1,5);
DRAWTEXT(FILTER(((CROSS(VCXH1,VCXH2) ) AND (TR1OUGHBARS(3,7,1) < 1)),3),(CLOSE * 0.96),'↑B'),colorFFFF;
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'),colorFF;
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'),colorFFFF;
CXH1J:=(((CLOSE - LLV(LOW,9)) / (HHV(HIGH,9) - LLV(LOW,9))) * 100);
CXH2J:=SMA(CXH1J,3,1);
CXH3J:=SMA(CXH2J,3,1);
CXH4J:=(CXH1J * 1.05);
CXH6J:=(((HHV(HIGH,36) - CLOSE) / (HHV(HIGH,36) - LLV(LOW,36))) * 100);
CXH7J:=SMA(CXH6J,5,1);
CXH9J:=(((MA((VOL / CAPITAL),30) * MA(VOL,60)) / 10000) + MA(CLOSE,30));
DRAWTEXT(FILTER((((CROSS(CXH2J,CXH4J) AND (CXH3J > 60))) AND (CXH7J < (CXH9J + 10))),3),(CLOSE * 1.05),'↓S'),colorFFFF;
早晨之星:=((((((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)));
公式导入教程: 【通达信公式源码导入方法教程】 【同花顺公式源码导入方法教程】 【大智慧新一代公式源码导入方法教程】
有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友
可联系技术人员 QQ: 262069696 或微信:cxhjy888 进行 有偿收费 编写!(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
相关文章
-
没有相关内容