获利比:=MA(WINNER(CLOSE)*100,5);
获利均线:=SMA(获利比,3,1); 一天线:=MA(C,1); 快线:MA((3*SMA((C-LLV(L,9))/(HHV(HIGH,9)-LLV(LOW,9))*100,3,1)-2*SMA(SMA((C-LLV(L,9))/(HHV(HIGH,9)-LLV(LOW,9))*100,3,1),3,1)),2),COLORF00FF0; 操盘线:MA(3*SMA((C-LLV(L,21))/(HHV(H,21)-LLV(L,21))*100,5,1)-2*SMA(SMA((C-LLV(L,21))/(HHV(H,21)-LLV(L,21))*100,5,1),3,1),3); 通用操盘线:MA(3*SMA((C-LLV(L,27))/(HHV(H,27)-LLV(L,27))*100,5,1)-2*SMA(SMA((C-LLV(L,27))/(HHV(H,27)-LLV(L,27))*100,5,1),3,1),5),COLORBLUE; Var1:=(C*3+H+L+O)/6; Var2:=SMA(MAX(C-Var1,0),8,1)/SMA(ABS(C-Var1),8,1)*100; Var3:=100*(HHV(H,15)-C)/(HHV(H,13)-LLV(L,13))-45; Var4:=BARSLAST(CROSS(C,MA(C,21))); Var5:=BARSLAST(CROSS(MA(C,21),C)); Var6:=IF(Var4<Var5,Var4+1,0); Var7:=(C-REF(C,Var6))/REF(C,Var6)*100; 买入关注:IF(通用操盘线<5,10,0),COLORGREEN; 卖出关注:IF(通用操盘线>80,90,100),COLORGREEN; IF(COUNT(获利均线<2,10)>=9 AND CROSS(获利比,获利均线),20,0); DRAWTEXT(CROSS(操盘线,通用操盘线)AND 通用操盘线<10,20,'买点'),COLORRED; DRAWICON(CROSS(通用操盘线,操盘线)AND 通用操盘线>90,100,2); DRAWTEXT(CROSS(90,操盘线),90,'跑吧'); DRAWICON(CROSS(Var2,Var3)AND 操盘线<20 AND 获利比>REF(获利比,1),3,1); DRAWTEXT(CROSS(快线,0),10,'金叉'); DRAWTEXT(CROSS(100,快线) AND 操盘线>60 AND 一天线<REF(一天线,1),100,'死叉'); 短线追涨:STICKLINE(REF(Var7,1)=0 AND Var7>0,0,20,6,0); 选股公式 要求3条线(快线,操盘线,通用操盘线)同时向上走的时候做出选股 谢谢了 快线:=MA((3*SMA((C-LLV(L,9))/(HHV(HIGH,9)-LLV(L,9))*100,3,1)-2*SMA(SMA((C-LLV(L,9))/(HHV(HIGH,9)-LLV(L,9))*100,3,1),3,1)),2); 操盘线:=MA(3*SMA((C-LLV(L,21))/(HHV(H,21)-LLV(L,21))*100,5,1)-2*SMA(SMA((C-LLV(L,21))/(HHV(H,21)-LLV(L,21))*100,5,1),3,1),3); 通用操盘线:=MA(3*SMA((C-LLV(L,27))/(HHV(H,27)-LLV(L,27))*100,5,1)-2*SMA(SMA((C-LLV(L,27))/(HHV(H,27)-LLV(L,27))*100,5,1),3,1),5); XG:快线>REF(快线,1) AND 操盘线>REF(操盘线,1) AND 通用操盘线>REF(通用操盘线,1); |
