通达信顶天立地副图公式
{STICKLINE(C>0,0,100,10,0),COLORBB0000;}
VAR3:=MA(CLOSE,13);
VAR4:=100-ABS(((CLOSE-VAR3)/(VAR3))*(100));
VAR5:=LLV(LOW,75);
VAR6:=HHV(HIGH,75);
VAR7:=(VAR6-VAR5)/(100);
VAR8:=SMA((CLOSE-VAR5)/(VAR7),20,1);
VAR9:=SMA((OPEN-VAR5)/(VAR7),20,1);
VARA:=(3)*(VAR8)-(2)*(SMA(VAR8,15,1));
VARB:=(3)*(VAR9)-(2)*(SMA(VAR9,15,1));
VARC:=100-VARB;
VARD:=(REF(LOW,1))*(0.89999997);
VARE:=(LOW)*(0.89999997);
VAR11:=CLOSE-REF(CLOSE,1);
VAR12:=MAX(VAR11,0);
VAR13:=ABS(VAR11);
VAR14:=((SMA(VAR12,7,1))/(SMA(VAR13,7,1)))*(100);
VAR15:=((SMA(VAR12,13,1))/(SMA(VAR13,13,1)))*(100);
VAR16:=BARSCOUNT(CLOSE);
VAR17:=((SMA(MAX(VAR11,0),6,1))/(SMA(ABS(VAR11),6,1)))*(100);
VAR18:=(((-200))*(HHV(HIGH,60)-CLOSE))/(HHV(HIGH,60)-LLV(LOW,60))+100;
VAR19:=((CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15)))*(100);
VAR1A:=SMA((SMA(VAR19,4,1)-50)*(2),3,1);
VAR1B:=((INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14)))*(100);
VAR1C:=SMA(VAR1B,4,1);
VAR1D:=SMA(VAR1C,3,1);
VAR1E:=((HHV(HIGH,30)-CLOSE)/(CLOSE))*(100);
VAR1F:=((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27)))*(100);
VAR20:=REVERSE(VAR1F);
VAR21:=SMA(VAR1F,3,1);
趋势:SMA(VAR21,3,1),COLOR0000FF,LINETHICK2;
人气:SMA(趋势,3,1),COLORYELLOW,LINETHICK2;
出击:IF(CROSS(趋势,人气) AND (趋势<30),20,0),COLOR0000FF,LINETHICK2;
DRAWTEXT(CROSS(趋势,人气) AND 趋势<30,25,'立地 '),COLORWHITE;
短卖:IF(CROSS(人气,趋势) AND (人气>75),85,100),COLOR008000,LINETHICK3;
DRAWTEXT(CROSS(趋势, 人气) AND REF(人气,1)>80, REF(人气,3), '顶'),COLORRED,LINETHICK5;
逢低买:DRAWTEXT(REF(CROSS(人气,趋势),82) AND 人气>1.2*趋势,85,'逢低买'),LINETHICK1;
买: DRAWTEXT(REF(CROSS(人气,趋势),1) AND 人气>1.2*趋势,85,'买'),COLORRED,LINETHICK1;
{金叉:IF(CROSS(趋势,人气),20,0);}
DRAWTEXT(CROSS(趋势,人气),人气,'★'),COLORRED;
AA:=LLV(LOW,36);
BB:=HHV(HIGH,30);
云:=80,COLORFF00FF;
天:=87.5,COLOR00FF00;
DD:=(EMA(((CLOSE-AA)/(BB-AA))*(4),4))*(25);
股神:DD,COLORLIBLUE,LINETHICK1;
STICKLINE(CROSS(股神,人气),40,65,0.2,0),COLORMAGENTA;
DRAWTEXT(CROSS(股神,人气),70,'股神'),COLORWHITE;
DRAWICON(CROSS(股神,天) AND 人气<云,95,2),COLORWHITE;
牛牛指标:=(((DD-LLV(DD,21))/(HHV(DD,21)-LLV(DD,21)))*(4))*(25);
注意:IF(CROSS(牛牛指标,90) AND (股神<40),70,0),COLORFFFF00;
DRAWTEXT(CROSS(牛牛指标,90) AND (股神<40),70,'注意'),COLORRED;
跟踪:=10,COLOR0000FF;
神偷:IF((COUNT((股神>REF(股神,1)),1)=1) AND (REF(股神,1)<
REF(REF(股神,1),1)) AND (股神<跟踪),50,0),COLORYELLOW;
DRAWTEXT((COUNT((股神>REF(股神,1)),1)=1) AND (REF(股神,1)<
REF(REF(股神,1),1)) AND (股神<跟踪),50,'神偷'),COLORYELLOW;
RSV:=(((CLOSE - LLV(LOW,29)) / (HHV(HIGH,29) - LLV(LOW,29))) * 100);
K:=MA(RSV,5);
D:=MA(K,2);
J:=((3 * K) - (2 * D));
明天涨:IF((J < 5),50,0),COLORMAGENTA;
DRAWTEXT((J < 5),60,'明天涨'),COLORRED;
V11:=LLV(LOW,10);
V12:=HHV(H,25);
价位线:=EMA((C-V11)/(V12-V11)*4,4);
DRAWTEXT(CROSS(价位线,0.3),20+4,'●买'),COLORRED;
DRAWTEXT(LAST(MA(C,5)<MA(C,10),5,0) AND "CCI.CCI">REF("CCI.CCI",1) AND CROSS("CCI.CCI",-100),10,'C买点'),COLORYELLOW;
突破:IF(LAST((H-L)/REF(C,1)<0.1,20,0) AND VOL>REF(VOL,1)*2 AND C>REF(C,1)*1.03
AND "DMI.PDI">"DMI.MDI" AND "DMI.ADX">"DMI.ADXR" AND"DMI.ADXR">"DMI.MDI"
AND "DMI.PDI">"DMI.ADX",20,0),COLORLIMAGENTA,LINETHICK2;
DRAWTEXT(LAST((H-L)/REF(C,1)<0.1,20,0) AND VOL>REF(VOL,1)*2 AND C>REF(C,1)*1.03
AND "DMI.PDI">"DMI.MDI" AND "DMI.ADX">"DMI.ADXR" AND"DMI.ADXR">"DMI.MDI"
AND "DMI.PDI">"DMI.ADX",20,'横盘突破'),COLORLIMAGENTA;
R:=RSI;
MAR:=MA(R,3);
F:=100*(C-REF(C,1))/REF(C,1);
HHH:=EMA(R,25)+6,COLORBLUE;
GAODIAN:=REF(R,1)>REF(R,2) AND REF(R,1)>R;
DIDIAN:=(REF(R,1)<REF(R,2) AND REF(R,1)<R) OR (REF(R,1)=REF(R,2) AND REF(R,1)<R AND REF(R,2)<REF(R,3));
BIAOJI:=CROSS(HHH,R);
JIN:STICKLINE(REF(R,2)>REF(R,3) AND REF(R,2)>REF(R,1) AND R>REF(R,1)
AND MAR>REF(MAR,1)+1 AND REF(MAR,2)-REF(MAR,1)>-1
AND REF(R,1)<REF(MAR,1) AND REF(R,2)-REF(MAR,2)>-3
AND REF(R,1)<38 AND R<HHH AND F<8,85,99,1,0),COLORRED;
DRAWTEXT((REF(R,2)>REF(R,3) AND REF(R,2)>REF(R,1) AND R>REF(R,1)
AND MAR>REF(MAR,1)+1 AND REF(MAR,2)-REF(MAR,1)>-1
AND REF(R,1)<REF(MAR,1) AND REF(R,2)-REF(MAR,2)>-3
AND REF(R,1)<38 AND R<HHH AND F<8),75,'★买'),COLORRED;
645244567.png
|