顶卖底买公式下穿时加信号及下穿时做个选股公式
更多金钻指标股票技术讨论QQ群:966329692 技术讨论QQ群:220302856 技术讨论QQ群:39652085 如群满可换一个
编写要求:
请老师对顶卖底买公式下穿时加信号及下穿时做个选股公式。1.请老师对顶卖底买公式当红色趋势线下穿探底线时加个信号,跟上穿时一样的信号;2.当红色趋势线下穿探底线穿时做个选股公式。谢谢老师看明白了,第一个请求是在原公式上加信号,第二个要求是做选股公式。谢谢。买线:=EMA(C,2);卖线:=EMA(SLOPE(C,21)*20+C,42);STICKLINE(买线>=卖线,REFDATE(HHV(30,0),DATE),REFDATE(LLV(10,0),DATE),6,0),COLOR001050;STICKLINE(买线<卖线,REFDATE(HHV(30,0),DATE),REFDATE(LLV(10,0),DATE),6,0),COLOR404050;主力持仓:EMA(100*(CLOSE-LLV (LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)),3), COLORFF00FF,LINETHICK1;顶部线:100,COLORRED;强势线:80,DOTLINE,COLORFF849D;强弱界:60,DOTLINE,COLORFF7600;探底线:10,COLORBLUE;信号:=CROSS(主力持仓,探底线);上穿:IF(信号,20,0),LINETHICK1,COLORLIBLUE;H1:=C>EXPMA(CLOSE,18) AND HREF(EXPMA(CLOSE,18),1) AND REF(H,1)[REF(EXPMA(CLOSE,18),2) AND REF(H,2)][REF(EXPMA(CLOSE,18),3) AND REF(H,3)][REF(EXPMA(CLOSE,18),4) AND REF(H,4)]解答:
买线:=ema(c,2);
卖线:=ema(slope(c,21)*20+c,42);
stickline(买线>=卖线,refdate(hhv(30,0),date),refdate(llv(10,0),date),6,0),color001050;
stickline(买线<卖线,refdate(hhv(30,0),date),refdate(llv(10,0),date),6,0),color404050;
主力持仓:ema(100*(close-llv (low,34))/(hhv(high,34)-llv(low,34)),3), colorff00ff,linethick1;
顶部线:100,colorred;
强势线:80,dotline,colorff849d;
强弱界:60,dotline,colorff7600;
探底线:10,colorblue;
信号:=cross(主力持仓,探底线);
信号1:=cross(探底线,主力持仓);
上穿:if(信号,20,0),linethick1,colorliblue;
下穿:if(信号1,20,0),linethick1,colorred;
h1:=c>expma(close,18) and h<expma(close,18)*1.06;
h2:=ref(c,1)>ref(expma(close,18),1) and ref(h,1)<ref(expma(close,18),1)*1.06;
h3:=ref(c,2)>ref(expma(close,18),2) and ref(h,2)<ref(expma(close,18),2)*1.06;
h4:=ref(c,3)>ref(expma(close,18),3) and ref(h,3)<ref(expma(close,18),3)*1.06;
h5:=ref(c,4)>ref(expma(close,18),4) and ref(h,4)<ref(expma(close,18),4)*1.06;
l6:=ref(c,7)<ref(expma(close,18),7)
and ref(c,8)<ref(expma(close,18),8)
and ref(c,9)<ref(expma(close,18),9)
and ref(c,10)<ref(expma(close,18),10);
d:=ref(expma(close,18),10)<ref(expma(close,18),20);
d2:=ref(expma(close,18),20)<ref(expma(close,18),30);
xh:=d and d2;
红5:=h1 and h2 and h3 and h4 and h5 and l6 and xh;
红5日: if(红5,30,0),coloryellow;
0,colorgreen;
下穿选:cross(10,ema(100*(close-llv (low,34))/(hhv(high,34)-llv(low,34)),3));
选股票看什么指标最好 >股票指标网
精彩评论