哪位大侠给下列KDJ MACD RSI三背离共振幅图做个选股公式(出现手指),谢谢!
发布网友
发布时间:2022-04-30 02:00
我来回答
共1个回答
热心网友
时间:2023-10-02 03:15
把以上公式中的所有输出“:”后加一个“=”号,再在后面加一句
AG:MACD底背离 AND KDJ底背离 AND RSI底背离;
选股公式只能有一个输出,记住这点自己动手也不会很难的。
DIFZ:=EMA(C,12)-EMA(C,26);
DEAZ:=EMA(DIFZ,9);
MACDZ:=8*(DIFZ-DEAZ);
RSV:=((CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21)))*247.2-123.6;
SQX:=(C-MA(CLOSE,13))*10;
DIF:=EMA(MA(SQX,7),1);
DEA:=EMA(DIF,7);
MACD:=(DIF-DEA)*2;
K:=SMA(SMA( RSV,3,1),3,1),COLORWHITE;
D:=MA(EMA(K,3),3),COLORYELLOW;
J:=3*K-2*D,COLORMAGENTA;
A11:=BARSLAST(REF(CROSS(DIF,DEA),1));
B1:=REF(C,A11+1)>C AND REF(DIF,A11+1)<DIF AND CROSS(DIF,DEA);
A12:=BARSLAST(REF(CROSS("KDJ.K","KDJ.D"),1));
B2:=REF(C,A12+1)>C AND REF("KDJ.K",A12+1)<"KDJ.K" AND CROSS("KDJ.K","KDJ.D");
A13:=BARSLAST(REF(CROSS("RSI.RSI1","RSI.RSI2"),1));
B3:=REF(C,A13+1)>C AND REF("RSI.RSI1",A13+1)<"RSI.RSI1"AND CROSS("RSI.RSI1","RSI.RSI2");
C1:=BARSLAST(REF(CROSS(DEA,DIF),1));
D1:=REF(C,C1+1)<C AND REF(DIF,C1+1)>DIF AND CROSS(DEA,DIF);
C2:=BARSLAST(REF(CROSS("KDJ.D","KDJ.K"),1));
D2:=REF(C,C2+1)<C AND REF("KDJ.K",C2+1)>"KDJ.K" AND CROSS("KDJ.D","KDJ.K");
C3:=BARSLAST(REF(CROSS("RSI.RSI2","RSI.RSI1"),1));
D3:=REF(C,C3+1)<C AND REF("RSI.RSI1",C3+1)>"RSI.RSI1" AND CROSS("RSI.RSI2","RSI.RSI1");
MACD底背:=IF(B1>0,50,0),LINETHICK2,COLORRED;
KDJ底背:=IF(B2>0,65,0),LINETHICK2,COLORFF00FF;
RSI底背:=IF(B3>0,80,0),LINETHICK2,COLORYELLOW;
MACD顶背:=IF(D1>0,-50,0),LINETHICK2,COLOR00FF00;
KDJ顶背:=IF(D2>0,-65,0),LINETHICK2,COLORFFCC66;
RSI顶背:=IF(D3>0,-80,0),LINETHICK2,COLORWHITE;
AG:MACD底背 AND KDJ底背 AND RSI底背;追问能详细点吗?谢谢!
追答把“STICKLINE”,“DRAWTEXT”,"DRAWICON"这三种输出语句删掉。只能有一个输出。这些线条输出,文字输出,符号输出不需要。