网友求助:
请老师帮忙把主力雷达写个主力雷达的交易公式
LC:=REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
卖点雷达:CROSS(85,RSI1)*30;
DRAWTEXT(CROSS(85,RSI1),80,"顶");
买点雷达:CROSS(RSI1,25)*30;
DRAWTEXT(CROSS(RSI1,25),-100,"底");
主力:EMA( (CLOSE-MA(CLOSE,7))/MA(CLOSE,7)*480,2)*5,colorred;
散户:EMA( (CLOSE-MA(CLOSE,11))/MA(CLOSE,11)*480,7)*5,coloryellow;
DRAWTEXT(CROSS(主力,散户) AND 主力<-10,-60,"升");
DRAWICON(CROSS(主力,散户) AND 主力<-10 AND 散户>REF(散户,1) OR CROSS(主力,散户) AND 散户<-35 ,-15,2);
DRAWTEXT(CROSS(RSI1,20)AND 散户<-20 AND 买点雷达 ,-60,"底");
解答如下:
LC:=REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
卖点雷达:=CROSS(85,RSI1)*30;
DRAWTEXT(CROSS(85,RSI1),H,'顶');
买点雷达:=CROSS(RSI1,25)*30;
DRAWTEXT(CROSS(RSI1,25),L,'底');
主力:=EMA( (CLOSE-MA(CLOSE,7))/MA(CLOSE,7)*480,2)*5;
散户:=EMA( (CLOSE-MA(CLOSE,11))/MA(CLOSE,11)*480,7)*5;
DRAWTEXT(CROSS(主力,散户) AND 主力<-10,L*0.97,'升');
DRAWICON(CROSS(主力,散户) AND 主力<-10 AND 散户>REF(散户,1) OR CROSS(主力,散户) AND 散户<-35 ,L,'buy');
DRAWTEXT(CROSS(RSI1,20)AND 散户<-20 AND 买点雷达 ,L,'底');