把这个改成选股公式
把这个改成选股公式
编写条件:
编写方法:
网友求助:
请老师在出现“升”字时做个选股公式
A1:=REF(C,1);
A2:=SMA(MAX(C-A1,0),5,1)/SMA(ABS(C-A1),5,1)*1000;
A3:=BARSLAST(REF(CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24)),1));
A4:=A2-LLV(A2,10);
A5:=(MA(A4,2)*3+A4*13)/16;
A6:=IF(A5>13,MA(A5,2),A5)/6;
RSI1:=SMA(MAX(C-A1,0),6,1)/SMA(ABS(C-A1),6,1)*100;
RSI2:=SMA(MAX(C-A1,0),12,1)/SMA(ABS(C-A1),12,1)*100;
RSI3:=SMA(MAX(C-A1,0),24,1)/SMA(ABS(C-A1),24,1)*100;
压力:=HHV(MA(RSI2,3),12);
支撑:=LLV(MA(RSI2,3),12);
趋势:(HHV(MA(RSI2,3),12)+LLV(MA(RSI2,3),12))/2,COLORCYAN,LINETHICK2;
DRAWTEXT(CURRBARSCOUNT=1 AND 趋势>REF(趋势,1),趋势,'←升'),COLORRED;
DRAWTEXT(CURRBARSCOUNT=1 AND 趋势=REF(趋势,1),趋势,'←平');
DRAWTEXT(CURRBARSCOUNT=1 AND 趋势<REF(趋势,1),趋势,'←降'),COLORGREEN;
A1:=REF(C,1);
A2:=SMA(MAX(C-A1,0),5,1)/SMA(ABS(C-A1),5,1)*1000;
A3:=BARSLAST(REF(CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24)),1));
A4:=A2-LLV(A2,10);
A5:=(MA(A4,2)*3+A4*13)/16;
A6:=IF(A5>13,MA(A5,2),A5)/6;
RSI1:=SMA(MAX(C-A1,0),6,1)/SMA(ABS(C-A1),6,1)*100;
RSI2:=SMA(MAX(C-A1,0),12,1)/SMA(ABS(C-A1),12,1)*100;
RSI3:=SMA(MAX(C-A1,0),24,1)/SMA(ABS(C-A1),24,1)*100;
压力:=HHV(MA(RSI2,3),12);
支撑:=LLV(MA(RSI2,3),12);
趋势:(HHV(MA(RSI2,3),12)+LLV(MA(RSI2,3),12))/2,COLORCYAN,LINETHICK2;
DRAWTEXT(CURRBARSCOUNT=1 AND 趋势>REF(趋势,1),趋势,'←升'),COLORRED;
DRAWTEXT(CURRBARSCOUNT=1 AND 趋势=REF(趋势,1),趋势,'←平');
DRAWTEXT(CURRBARSCOUNT=1 AND 趋势<REF(趋势,1),趋势,'←降'),COLORGREEN;
解答如下:
A1:=REF(C,1);
RSI2:=SMA(MAX(C-A1,0),12,1)/SMA(ABS(C-A1),12,1)*100;
趋势:=(HHV(MA(RSI2,3),12)+LLV(MA(RSI2,3),12))/2;
升:CURRBARSCOUNT=1 AND 趋势>REF(趋势,1);
RSI2:=SMA(MAX(C-A1,0),12,1)/SMA(ABS(C-A1),12,1)*100;
趋势:=(HHV(MA(RSI2,3),12)+LLV(MA(RSI2,3),12))/2;
升:CURRBARSCOUNT=1 AND 趋势>REF(趋势,1);
{股票资源馆:www.lixiangluntan.com专业和谐高端炒股软件--公式编写交流--加QQ751161480--}炒股教程
有长下影线的阳K线预警公式
有长下影线的阳K线预警公式