逃頂指標
Q2:=(CLOSE-LLV(LOW, 18))/(HHV(HIGH, 18)-LLV(LOW, 18))*100;
Q3:=SMA(Q2, 9, 1);
Q4:=SMA(Q3, 3, 1);
長趨勢:3*Q3-2*Q4,colorwhite,LINETHICK3;
趨勢線:EMA(Q3, 3),colorred,LINETHICK3;
DRAWTEXT(CROSS(趨勢線, 長趨勢) AND REF(長趨勢,1)>80,REF(長趨勢,3), '*頂'),colorred,LINETHICK5;
★逢低買入: DRAWTEXT(REF(CROSS(趨勢線,長趨勢),82) AND 趨勢線>1.3*長趨勢,長趨勢,'★<<-逢低買入'),LINETHICK1;
★低買: DRAWTEXT(REF(CROSS(長趨勢,趨勢線),1) AND 長趨勢>1.3*趨勢線,趨勢線,'★低買'),colorred,LINETHICK1;
VAR3:=PEAKBARS(3,15,1)<10;
VAR5:=IF(VAR3=1,2,0);
頂:= IF(VAR5=2,2,0);
頂A:IF(頂>REF(頂,1),50,0),colorgreen;
DRAWTEXT(頂A=50,45,'快走'),COLOR00FF00;
抄底一
趨勢:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);
見底:=10;
短期底部:CROSS(趨勢,見底);
抄底二
HLM1:=MA(HHV(H,500),13);
HLM2:=MA(HHV(H,250),13);
HLM3:=MA(HHV(H,89),13);
HLM4:=MA(LLV(L,500),13);
HLM5:=MA(LLV(L,250),13);
HLM6:=MA(LLV(L,89),13);
HLM7:=MA((HLM1*0.558+HLM2*0.558+HLM3*0.558+HLM4*0.96+HLM5*0.96+HLM6*0.96)/6,17);
HLM8:=MA((HLM1*0.55+HLM2*0.55+HLM3*0.65+HLM4*1.25+HLM5*1.23+HLM6*1.2)/6,17);
HLM9:=MA((HLM1*0.68+HLM2*0.68+HLM3*0.68+HLM4*1.3+HLM5*1.3+HLM6*1.3)/6,17);
HLM10:=MA((HLM7*3+HLM8*2+HLM9)/6*1.738,17);
HLM11:=SMA(ABS(L-REF(L,1)),3,1)/SMA(MAX(L-REF(L,1),0),3,1)*100;
HLM12:=MA(IF(C*1.35<=HLM10,HLM11*10,HLM11/10),3);
HLMH:=HHV(HLM12,30);
關注:MA(IF(L<=LLV(L,42),(HLMH+HLM11*2)/3,0),3)/200;
DRAWBAND(關注,RGB(255,255,50),0.00001,RGB(0,100,50));
STICKLINE(CROSS(3.8,關注) AND 關注<REF(關注,1),0,3.8,1,0),COLORFF00FF;
DRAWTEXT(CROSS(3.8,關注) AND 關注<REF(關注,1),3.8,'買底'),COLORFF00FF;
STICKLINE(CROSS(10,關注) AND 關注<REF(關注,1),0,10,2,0),COLORyellow;
DRAWTEXT(CROSS(10,關注) AND 關注<REF(關注,1),10,'金山'),COLORyellow;
STICKLINE(CROSS(62,關注) AND 關注<REF(關注,1),0,18,4,0),COLORred;
DRAWTEXT(CROSS(38,關注) AND 關注<REF(關注,1),18,'傾買'),COLORred;
JS:=LAST(關注>0.618,3,1) AND (COUNT(CROSS(0.618,關注) OR CROSS(62,關注),21)>=2);
stickline(FILTER(JS,13),15,0,4,0),COLORRED;