副图公式源码 支持: 手机/电脑
{今天发布的是买入信号的公式,结合上次发布的卖出信号公式,两个公式可以合并放到一起使用。}
N1:=SUM((EMA((CLOSE + LOW)/(2),2))/(2.98),3);N2:=EMA(N1,21);
GUP1J:=(2)*(MA((LLV((CLOSE + LOW)/(2),8))*(1.1),13)) – EMA((CLOSE + LOW)/(2),3) – ((CLOSE + LOW)/(2))*(0.1);
GUP2J:=IF(((EMA((CLOSE + LOW)/(2),3) – GUP1J)*(5) > 0),(POW((EMA((CLOSE + LOW)/(2),3) – GUP1J)*(5),2))/(10),(((-1))*(POW((EMA((CLOSE + LOW)/(2),3) – GUP1J)*(5),2)))/(10));
GUP3J:=IF((GUP2J > 0),GUP2J – 0,(-1));
买入:=CROSS(GUP3J,0) AND ((CLOSE + LOW)/(2) > MA((CLOSE + LOW)/(2),8));
STICKLINE(买入,130,0,1,1),COLORRED;
DRAWTEXT(买入,90,’买入’),COLORLIRED;
GUP2P:=REF(LOW,1);
GUP3P:=SMA(ABS(LOW-GUP2P),3,1)/SMA(MAX(LOW-GUP2P,0),3,1)*100;
GUP4P:=EMA(IF(CLOSE*1.2,GUP3P*10,GUP3P/10),3);
GUP5P:=LLV(LOW,38);
GUP6P:=HHV(GUP4P,38);
GUP7P:=IF(LLV(LOW,90),1,0);
GUP8P:=EMA(IF(LOW<=GUP5P,(GUP4P+GUP6P*2)/2,0),3)/618*GUP7P;
趋势:=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);
启动:=CROSS(趋势,10);
STICKLINE(启动,130,0,1,1),COLORRED;
DRAWTEXT(启动,50,’启动’),COLORLIRED;
GUP1Z1:=(CLOSE-LLV(LOW,45))/(HHV(HIGH,45)-LLV(LOW,45));
GUP2Z1:=SMA(GUP1Z1,3,1);
GUP3Z1:=SMA(GUP2Z1,3,1);
GUP4Z1:=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);
杀入:=CROSS(GUP4Z1,10) AND GUP3Z1<12;
STICKLINE(杀入,130,0,1,1),COLORRED ;
DRAWTEXT(杀入,40,’杀入’),COLORLIRED;
Y1:=EMA(EMA(C,5),5);Y2:=HHV(MA(H,13),13);
GUP51:=FILTER(Y1>REF(Y1,1)AND Y2<REF(Y2,1)AND C>REF(C,1),11);
加仓:=GUP51;
STICKLINE(加仓,130,0,1,1),COLORRED;
DRAWTEXT(加仓,30,’加仓’),COLORLIRED;
多头:=(7*SMA((CLOSE- LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1)-3*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1),3,1)-SMA(SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1),3,1),2,1));
空头:= EMA(MA(多头,5),7);
买底:=CROSS(多头,空头) AND 空头<35;
STICKLINE(买底,130,0,1,1),COLORRED;
DRAWTEXT(买底,10,’买底’),COLORLIRED;
选股公式源码
{选股公式一:买入}
N1:=SUM((EMA((CLOSE + LOW)/(2),2))/(2.98),3);N2:=EMA(N1,21);
GUP1J:=(2)*(MA((LLV((CLOSE + LOW)/(2),8))*(1.1),13)) – EMA((CLOSE + LOW)/(2),3) – ((CLOSE + LOW)/(2))*(0.1);
GUP2J:=IF(((EMA((CLOSE + LOW)/(2),3) – GUP1J)*(5) > 0),(POW((EMA((CLOSE + LOW)/(2),3) – GUP1J)*(5),2))/(10),(((-1))*(POW((EMA((CLOSE + LOW)/(2),3) – GUP1J)*(5),2)))/(10));
GUP3J:=IF((GUP2J > 0),GUP2J – 0,(-1));
买入:CROSS(GUP3J,0) AND ((CLOSE + LOW)/(2) > MA((CLOSE + LOW)/(2),8));
{选股公式二:启动}
GUP2P:=REF(LOW,1);
GUP3P:=SMA(ABS(LOW-GUP2P),3,1)/SMA(MAX(LOW-GUP2P,0),3,1)*100;
GUP4P:=EMA(IF(CLOSE*1.2,GUP3P*10,GUP3P/10),3);
GUP5P:=LLV(LOW,38);
GUP6P:=HHV(GUP4P,38);
GUP7P:=IF(LLV(LOW,90),1,0);
GUP8P:=EMA(IF(LOW<=GUP5P,(GUP4P+GUP6P*2)/2,0),3)/618*GUP7P;
趋势:=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);
启动:CROSS(趋势,10);
{选股公式三:杀入}
GUP1Z1:=(CLOSE-LLV(LOW,45))/(HHV(HIGH,45)-LLV(LOW,45));
GUP2Z1:=SMA(GUP1Z1,3,1);
GUP3Z1:=SMA(GUP2Z1,3,1);
GUP4Z1:=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);
杀入:CROSS(GUP4Z1,10) AND GUP3Z1<12;
{选股公式四:加仓}
Y1:=EMA(EMA(C,5),5);Y2:=HHV(MA(H,13),13);
GUP51:=FILTER(Y1>REF(Y1,1)AND Y2<REF(Y2,1)AND C>REF(C,1),11);
加仓:GUP51;
{选股公式五:买底}
多头:=(7*SMA((CLOSE- LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1)-3*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1),3,1)-SMA(SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1),3,1),2,1));
空头:= EMA(MA(多头,5),7);
买底:CROSS(多头,空头) AND 空头<35;
暂无评论内容