通达信主图公式
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
{通达信主图公式:(喜悦短线寻宝)加太子喜悦主图}
喜悦:(46.18*EMA(CLOSE,10)-31.82*EMA(CLOSE,4))/14.36,COLORGREEN,LINETHICK1; K1:=BACKSET(喜悦>REF(喜悦,1),2);
IF(K1,喜悦,DRAWNULL),COLORLIMAGENTA,LINETHICK1;
J:=SUM(VOL*CLOSE,5)/SUM(VOL,5);
寻宝:EMA(J,2),COLORCY AN,LINETHICK1;
K2:=BACKSET(寻宝>REF(寻宝,1),2);
IF(K2,寻宝,DRAWNULL),COLORRED,LINETHICK1;
DRAWICON((CROSS(寻宝,喜悦)),喜悦,10);
DRAWTEXT((CROSS(寻宝,喜悦)),喜悦*0.95,' ←喜悦介入,'),COLOR00FF00;
买线:=EMA(CLOSE,2);
卖线:=EMA(SLOPE(CLOSE,21)*20+CLOSE,42);
BU:=CROSS(买线,卖线);
SEL:=CROSS(卖线,买线);
STICKLINE(CROSS(买线,卖线) OR CROSS(卖线,买线),OPEN,CLOSE,3,0),COLOR00FFFF;
平衡:=SMA(EMA(SMA((CLOSE+LOW)/2,3,1),3),5,1);
限
制:=EMA((((HIGH+CLOSE)/2+LOW+(CLOSE+LOW)/2)/3-EMA(LLV(((HIGH+CLOSE)/2+L OW+(CLOSE+LOW)/2)/3,89),2))/(EMA(HHV
(((HIGH+CLOSE)/2+LOW+(CLOSE+LOW)/2)/3,21),2)-EMA(LLV(((HIGH+CLOSE)/2+LOW+ (CLOSE+LOW)/2)/3,89),2)),8)*100;
DRAWICON(FILTER(平衡>REF(平衡,1)AND HHV(MA((HIGH+CLOSE)/2,13),10)REF((CLOSE+LOW)/2,1),5)AND 限制<88,LOW*0.98,5);
DRAWTEXT(FILTER(平衡>REF(平衡,1)AND HHV(MA((HIGH+CLOSE)/2,13),10)REF((CLOSE+LOW)/2,1),5)AND 限制<88,LOW*0.95,'←喜悦:大胆放钱追涨抢金子'),,COLORFFFF33;
一剑封喉:=((CROSS(CLOSE,MA(CLOSE,13)) AND CROSS(CLOSE,MA(CLOSE,34))) AND CROSS(CLOSE,MA(CLOSE,55)));
A1:=(((CLOSE - LLV(LOW,22)) / (HHV(HIGH,22) - LLV(LOW,22))) * 100);
A2:=(((CLOSE - LLV(LOW,27)) / (HHV(HIGH,27) - LLV(LOW,27))) * 100);
A:=((3 * SMA(A1,5,1)) - (2 * SMA(SMA(A2,5,1),3,1)));
YNGS:=(一剑封喉AND (A < 30)),LINETHICK0;
DRAWICON((一剑封喉AND (A < 30)),(LOW * 0.99),1);
DRAWTEXT((一剑封喉AND (A < 30)),(LOW * 0.99),' ←喜悦封喉'),COLORYELLOW; LC:=REF(CLOSE,1);
RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
DRAWTEXT(EMA(EMA(CLOSE,13),50)>EMA(EMA(CLOSE,13),50*3) AND CROSS(84,RSI), HIGH*1.02,'←注意风险'),COLOR00FF33;
DRAWTEXT(EMA(EMA(CLOSE,13),50) AAA:=(MA(CLOSE,13)+MA(CLOSE,17))/2; CCC:=(STD(CLOSE,13)+STD(CLOSE,17))/2; BBB:=AAA+2.1*CCC; DDD:=AAA+0.72*CCC; ZZZ:=IF(CCC>1.88,MA(DDD,3),DDD); DRAWTEXT(CLOSE>=1.09*REF(CLOSE,1),CLOSE*0.98,'喜悦:涨停啦,'),COLORYELLOW; SFF:=HIGH/REF(HIGH,1)<1 AND REF(HIGH,1)/REF(HIGH,2)<1 AND LOW/REF(LOW,1)>1 AND REF(LOW,1)/REF(LOW,2)>1 ; DRAWTEXT(SFF,LOW*0.90,'喜悦提醒:准备抢金关注')COLORRED; {太子喜悦主图} MA(C,9),LINETHICK2,COLORYELLOW; MA(C,21),LINETHICK2,COLORRED; IF(MA(C,9) IF(MA(C,21) V AR1:=((((HHV((((EMA(DCLOSE,12)-EMA(DCLOSE,26))-(EMA((EMA(DCLOSE,12)-EMA( DCLOSE,26)),9)))*2),4)<0) AND ((((EMA(DCLOSE,12)-EMA(DCLOSE,26))-(EMA((EMA(DCLOSE,12)-EMA(DCLOSE,26)),9) ))*2)>REF((((EMA(DCLOSE,12)-EMA(DCLOSE,26))-(EMA((EMA(DCLOSE,12)-EMA(DCL OSE,26)),9)))*2),1))) AND (REF((((EMA(DCLOSE,12)-EMA(DCLOSE,26))-(EMA((EMA(DCLOSE,12)-EMA(DCLOSE,2 6)),9)))*2),1) DRAWTEXT(V AR1,L*0.98,'★短线快买'),COLORYELLOW; DRAWTEXT(CROSS(MA(C,3),MA(C,9)) AND C>=REF(C,1) AND C>O,L*0.97,'★加仓'),COLORMAGENTA; MA3:MA(C,3),COLOR886666; MA6:MA(C,6),COLORWHITE,LINETHICK2; MA18:MA(C,18),COLOR0099FF,LINETHICK2; {MA55:MA(C,55),COLORFF0088; MA125:MA(C,125),COLORFFCC66; MA250:MA(C,250),COLORBLUE;} TY:=C; AT1:=REF(TY,10)=HHV(TY,2*10+1); B1:=FILTER(AT1,10); C1:=BACKSET(B1,10+1); HD:=FILTER(C1,10); AT2:=REF(TY,10)=LLV(TY,2*10+1); B2:=FILTER(AT2,10); C2:=BACKSET(B2,10+1);