优化组合卖出指标
更多金钻指标股票技术讨论QQ群:966329692 技术讨论QQ群:220302856 技术讨论QQ群:39652085 如群满可换一个

编写要求:

DIF:EMA(CLOSE,12)-EMA(CLOSE,26)LINETHICK0;DEA:EMA(DIF,9)LINETHICK0;MACD:(DIF-DEA)*2,LINETHICK0;D1:=EMA(C,3)-EMA(C,8);D2:=EMA(O,3)-EMA(O,8);D3:=EMA(H,3)-EMA(H,8);D4:=EMA(L,3)-EMA(L,8);XSH:=MA(HIGH,5)*(1+5/100);B:CROSS(XSH,C),LINETHICK0;DRAWTEXT(B,C*1.1,'◆逃'),ALIGN0,COLORCYAN;你:=MA(CLOSE,1);老:=(LOW+HIGH+CLOSE)/3;板:= MA(老,5);好:= HHV(板,10);急卖奇准:IF(HHV((你<好),5),10,30),colorblue;VAR1:=REF(CLOSE,1);VAR2:=(SMA(MAX(CLOSE-VAR1,0),6,1))/(SMA(ABS(CLOSE-VAR1),6,1))*100;短期顶部:CROSS(80,VAR2)*10,colorFF;DRAWTEXT(CROSS(80,VAR2),10,'★/n短/n期/n升/n势/n中/n止 '),ALIGN4,colorFFFF;月RS:="RSI.RSI1#MONTH";月SI:="RSI.RSI3#MONTH";画图标(交叉函数(月SI,月RS),30,15);DRAWICON(CROSS(DIF,D1) AND DIF>0.1 ,D3+0.1,2),ALIGN0;DRAWTEXT(CROSS(DIF,D1) AND DIF>0.1 ,D4*1.95,'出'),ALIGN0,COLORYELLOW;是大家和我的追求:((REF("RSI.RSI1">80 AND "ROC.ROC"20,1))>0 AND ("RSI.RSI1">80 AND "ROC.ROC"20)=0)*(-3),LINETHICK2,colorFF;DK:(简单移动平均(收盘价,3)+简单移动平均(收盘价,6)+简单移动平均(收盘价,12)+简单移动平均(收盘价,24))/4,LINETHICK0;DK1:简单移动平均(DK,5),LINETHICK0;DK2:简单移动平均(DK,10),LINETHICK0;K2:=BARSLAST(CROSS(DK1,DK)),LINETHICK0;显示文字(交叉函数(DK2,DK) AND K2<3 AND 线性回归斜率(DK1,2)<0 AND 最高值(DK1,5)=最高值(DK1,30),DK*1.005,'↓短线风险!'),ALIGN0,colorFFFF,LINETHICK0;

解答:

 DIF:EMA(CLOSE,12)-EMA(CLOSE,26),NODRAW;

DEA:EMA(DIF,9),NODRAW;
MACD:(DIF-DEA)*2,NODRAW;
D1:=EMA(C,3)-EMA(C,8);
D2:=EMA(O,3)-EMA(O,8);
D3:=EMA(H,3)-EMA(H,8);
D4:=EMA(L,3)-EMA(L,8);
 
XSH:=MA(HIGH,5)*(1+5/100);
B:CROSS(XSH,C),NODRAW;
DRAWTEXT(B,C*1.1,'◆逃'),COLORCYAN;
你:=MA(CLOSE,1);
老:=(LOW+HIGH+CLOSE)/3;
板:= MA(老,5);
好:= HHV(板,10);
急卖奇准:IF(HHV((你<好),5),10,30),COLORBLUE;
VAR1:=REF(CLOSE,1);
VAR2:=(SMA(MAX(CLOSE-VAR1,0),6,1))/(SMA(ABS(CLOSE-VAR1),6,1))*100;
短期顶部:CROSS(80,VAR2)*10,COLOR0000FF;
DRAWTEXT(CROSS(80,VAR2),10,'★短期升势中止'),COLOR00FFFF;
月RS:="RSI.RSI1#MONTH";
月SI:="RSI.RSI3#MONTH";
DRAWICON(CROSS(月SI,月RS),30,15);
DRAWICON(CROSS(DIF,D1) AND DIF>0.1 ,D3+0.1,2);
DRAWTEXT(CROSS(DIF,D1) AND DIF>0.1 ,D4*1.95,'出'),COLORYELLOW;
大家和我的追求:((REF("RSI.RSI1">80 AND "ROC.ROC"<REF("ROC.ROC",1) OR "BIAS.BIAS3">20,1))>0 AND ("RSI.RSI1">80 AND "ROC.ROC"<REF("ROC.ROC",1) OR "BIAS.BIAS3">20)=0)*(-3),LINETHICK2,COLOR0000FF;
DK:(MA(C,3)+MA(C,6)+MA(C,12)+MA(C,24))/4,NODRAW;
DK1:MA(DK,5),NODRAW;
DK2:MA(DK,10),NODRAW;
K2:=BARSLAST(CROSS(DK1,DK)),NODRAW;
DRAWTEXT(CROSS(DK2,DK) AND K2<3 AND SLOPE(DK1,2)<0 AND HHV(DK1,5)=HHV(DK1,30),DK*1.005,'↓短线风险!'),COLOR00FFFF,NODRAW;

选股票看什么指标最好 >股票指标网