Var1:=1;
Var2:=(2*CLOSE+HIGH+LOW)/4;
天: 80, POINTDOT;
人: 20;
Var3:=IF(YEAR>=2099 AND MONTH>2,0,1);
Var4:=LLV(LOW,5);
Var5:=HHV(HIGH,4);
散戶: EMA((Var2-Var4)/(Var5-Var4)*100,4)*Var3*Var1;
莊家: EMA(0.667*REF(散戶,1)+0.333*散戶,2)*Var3*Var1;
Var6:=(HHV(HIGH,4)-Var2)/(HHV(HIGH,4)-LLV(LOW,4))*100-72;
Var7:=(Var2-LLV(LOW,4))/(HHV(HIGH,4)-LLV(LOW,4))*100;
倒影: SMA(Var6,4,1)*Var1;
Var8:=SMA(Var7,2,1);
黃山: SMA(Var8,2,1)*Var1;
地平線: 12;
DRAWTEXT(CROSS(散戶,莊家) AND 散戶<50 AND 29<散戶,20,'短進(jìn)'),COLOR00FF00;
DRAWTEXT(CROSS(莊家,散戶) AND 散戶>40 AND 71>散戶,50,'短出'),COLOR00FFFF;
DRAWTEXT(CROSS(散戶,莊家) AND 散戶<30,0,'逢低吸'),COLOR3399CC;
DRAWTEXT(CROSS(莊家,散戶) AND 散戶>70,75,'逢高減'),COLORFFFF33;
DRAWICON(CROSS(散戶,莊家) AND 散戶<30,20,1);
DRAWICON(CROSS(莊家,散戶) AND 散戶>70,80,2);
Var9:=CLOSE-REF(CLOSE,5);
VarA:=EMA(EMA(Var9,5),5)/EMA(EMA(ABS(Var9),5),5)*100;
VarB:=EMA(EMA(Var9,10),10)/EMA(EMA(ABS(Var9),10),10)*100;
VarC:=EMA(EMA(Var9,20),20)/EMA(EMA(ABS(Var9),20),20)*100;
賣(mài)出: IF(VarA>0 AND CROSS(VarC,VarA),-40,0);
DRAWTEXT(賣(mài)出,-30,'反彈 減倉(cāng)!'),COLOR0033FF;
DRAWICON(賣(mài)出<0,-25,2);
大智慧主圖公式----金睛波段[原碼]
MA1:MA(CLOSE,P1);
MA2:MA(CLOSE,P2);
MA3:MA(CLOSE,P3);
MA4:MA(CLOSE,P4);
賣(mài)出線:=98;
階段賣(mài):=96;
趨勢(shì):=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;
買(mǎi)入警戒:stickline(趨勢(shì)<=10,high,low,0.5,0),linethick2,color00ff00;
stickline(趨勢(shì)<=10,open,close,5,1),linethick2,color00ff00;
賣(mài)出警戒:stickline(趨勢(shì)>=階段賣(mài),high,low,0.5,0),coloryellow;
stickline(趨勢(shì)>=階段賣(mài),open,close,6,1),linethick2,coloryellow;
DRAWTEXT((CROSS(趨勢(shì),底部)),(LOW * 0.96),'買(mǎi)入'),coloryellow;DRAWTEXT((CROSS(趨勢(shì),底部)),(LOW * 0.99),'●'),color4440FF;
{參數(shù);P1 1.00 300.00 5.00 P2 1.00 300.00 10.00 P3 1.00 300.00 20.00 P4 1.00 300.00 30.00}