第一部分 副图公式 手机/电脑
{今天发布的是买入信号的公式,结合昨天发布的卖出信号公式,两个公式可以合并放到一起使用。}
N1:=SUM((EMA((CLOSE + LOW)/(2),2))/(2.98),3);N2:=EMA(N1,21);
CAIH1J:=(2)*(MA((LLV((CLOSE + LOW)/(2),8))*(1.1),13)) - EMA((CLOSE + LOW)/(2),3) - ((CLOSE + LOW)/(2))*(0.1);
CAIH2J:=IF(((EMA((CLOSE + LOW)/(2),3) - CAIH1J)*(5) > 0),(POW((EMA((CLOSE + LOW)/(2),3) - CAIH1J)*(5),2))/(10),(((-1))*(POW((EMA((CLOSE + LOW)/(2),3) - CAIH1J)*(5),2)))/(10));
CAIH3J:=IF((CAIH2J > 0),CAIH2J - 0,(-1));
买入:=CROSS(CAIH3J,0) AND ((CLOSE + LOW)/(2) > MA((CLOSE + LOW)/(2),8));
STICKLINE(买入,130,0,1,1),COLORRED;
DRAWTEXT(买入,90,'买入'),COLORLIRED;
CAIH2P:=REF(LOW,1);
CAIH3P:=SMA(ABS(LOW-CAIH2P),3,1)/SMA(MAX(LOW-CAIH2P,0),3,1)*100;
CAIH4P:=EMA(IF(CLOSE*1.2,CAIH3P*10,CAIH3P/10),3);
CAIH5P:=LLV(LOW,38);
CAIH6P:=HHV(CAIH4P,38);
CAIH7P:=IF(LLV(LOW,90),1,0);
CAIH8P:=EMA(IF(LOW<=CAIH5P,(CAIH4P+CAIH6P*2)/2,0),3)/618*CAIH7P;
趋势:=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;
CAIH1Z1:=(CLOSE-LLV(LOW,45))/(HHV(HIGH,45)-LLV(LOW,45));
CAIH2Z1:=SMA(CAIH1Z1,3,1);
CAIH3Z1:=SMA(CAIH2Z1,3,1);
CAIH4Z1:=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(CAIH4Z1,10) AND CAIH3Z1REF(Y1,1)AND Y2REF(C,1),11);
加仓:=CAIH51;
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 空头 0),(POW((EMA((CLOSE + LOW)/(2),3) - CAIH1J)*(5),2))/(10),(((-1))*(POW((EMA((CLOSE + LOW)/(2),3) - CAIH1J)*(5),2)))/(10));
CAIH3J:=IF((CAIH2J > 0),CAIH2J - 0,(-1));
买入:CROSS(CAIH3J,0) AND ((CLOSE + LOW)/(2) > MA((CLOSE + LOW)/(2),8));
{选股公式二:启动}
CAIH2P:=REF(LOW,1);
CAIH3P:=SMA(ABS(LOW-CAIH2P),3,1)/SMA(MAX(LOW-CAIH2P,0),3,1)*100;
CAIH4P:=EMA(IF(CLOSE*1.2,CAIH3P*10,CAIH3P/10),3);
CAIH5P:=LLV(LOW,38);
CAIH6P:=HHV(CAIH4P,38);
CAIH7P:=IF(LLV(LOW,90),1,0);
CAIH8P:=EMA(IF(LOW<=CAIH5P,(CAIH4P+CAIH6P*2)/2,0),3)/618*CAIH7P;
趋势:=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);
{选股公式三:杀入}
CAIH1Z1:=(CLOSE-LLV(LOW,45))/(HHV(HIGH,45)-LLV(LOW,45));
CAIH2Z1:=SMA(CAIH1Z1,3,1);
CAIH3Z1:=SMA(CAIH2Z1,3,1);
CAIH4Z1:=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(CAIH4Z1,10) AND CAIH3Z1REF(Y1,1)AND Y2REF(C,1),11);
加仓:CAIH51;
{选股公式五:买底}
多头:=(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;
|