大家好,共享一个主图
VAR1:=REF(CLOSE,1);
VAR2:=SMA(MAX(CLOSE-VAR1,0),4.1,1)/SMA(ABS(CLOSE-VAR1),4.1,1)*100;
DRAWTEXT(CROSS(VAR2,5)AND VAR2<30 ,L,'买'),COLORRED;
DRAWTEXT(FILTER(EMA(CLOSE,60)-EMA(CLOSE,12)>0 AND EMA(CLOSE,12)/LOW>1.15,5)AND VAR2<30 AND C>O,LOW,'☆'), COLORFF00FF;
VARA:=((AMOUNT)/(VOL))/(100);
VARB:=((3)*(HIGH)+LOW+OPEN+(2)*(CLOSE))/(7);
VARC:=((SUM(AMOUNT,7))/(VARA))/(100);
VARD:=DMA(VARB,(VOL)/(VARC));
VARE:=((CLOSE-VARD)/(VARD))*(100);
VARF:=((CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)))*(100);
VARJ:=MA(VARE,20)+STD(VARE,20);
VAR3:=((CLOSE-MA(CLOSE,18))/(MA(CLOSE,18)))*(100);
VAR4:=SMA(VARF,3,1);
VAR5:=(REF(VAR3,1)>=5) AND CROSS(VARJ,VARE) AND (VAR4>79);
DRAWTEXT(FILTER((REF(VAR3,1)>=5) AND CROSS(VARJ,VARE) AND (VAR4>VAR5),5),H*1.02,'☆'),COLORGREEN;
VAR6:=EMA(HHV(H,1),8);
VAR7:=EMA(CLOSE,8);
VAR8:=EMA(VAR7,30);
VAR9:=(H+L+3*C)/5;
VAR10:=EMA(VAR9,5);
VAR11:=EMA(VAR9,13);
VAR12:=EMA(VAR9,21);
VAR13:=EMA(VAR9,34);
VAR13B:=(VAR10+VAR11+VAR12+VAR13)/4;
本钱调和:=MA(VAR13B,5),COLORRED,LINETHICK1;
持股:STICKLINE(本钱调和>REF(本钱调和,1) , 本钱调和*0.998,本钱调和*1.002,8,0),COLORRED,LINETHICK2;
VAR14:=VAR7<REF(VAR7,1) AND C<VAR7;
当心:STICKLINE(VAR6<REF(VAR6,1) OR VAR14, VAR6*0.998,VAR6*1.003,4,0),COLORBLUE,LINETHICK3;
乌云:STICKLINE(本钱调和<REF(本钱调和,1) , 本钱调和*0.997,本钱调和*1.003,4,0),COLORGRAY,LINETHICK4;
VAR15:=IF((C-REF(C,1))/REF(C,1)>0.025,1,0);
STICKLINE(C>REF(O,BARSLAST(VAR15 =1)),REF(O,BARSLAST(VAR15=1)),REF(O,BARSLAST(VAR15 =1)),10,0),COLOR00FF00;
DRAWTEXT(VAR7>VAR8 AND CROSS(84,VAR2), HIGH*1.02,'卖!'),COLORYELLOW;