神龙线:=MA(CLOSE,240),RGB(255,128,0),LINETHICK2;
DRAWCOLORLINE(神龙线>REF(神龙线,1),神龙线,COLORRED,COLORGREEN),ALIGN1,LINETHICK2;

MA60:MA(C,60),PRECIS1,RGB(128,128,255);
MA5:=MA(C,5),COLORWHITE;
MA10:MA(C,10),PRECIS1;
MA20:=MA(C,20),RGB(172,86,0),PRECIS1;
MA30:=MA(C,30);
DRAWCOLORLINE(MA60>REF(MA60,1),MA60,RGB(255,128,128),RGB(128,128,255)),LINETHICK2;

//10日操盘线
PARTLINE(MA10>REF(MA10,1),MA10,RGB(255,128,128) ),LINETHICK1;
PARTLINE(MA10<REF(MA10,1),MA10,COLORGREEN ),LINETHICK1;

A:=MA5>MA10 AND MA10>MA20 AND MA20>MA30 AND MA30>MA60 AND C>MA10 AND MA60>REF(MA60,1);
B:=MA5<MA10 AND MA10<MA20 AND MA20<MA30 AND MA30<MA60 AND C<MA10 AND MA60<REF(MA60,1);//均线空头排列
DRAWLINE3(A,MA10,0,1,REF(MA10,1),1,0),COLORMAGENTA,LINETHICK1;
DRAWLINE3(B,MA10,0,1,REF(MA10,1),1,0),COLORBLUE,LINETHICK1;
//涨跌平仓
TR := MAX(MAX((HIGH-LOW),ABS(REF(CLOSE,1)-HIGH)),ABS(REF(CLOSE,1)-LOW));
ATR:= MA(TR,26),NODRAW;
QS:=(H-L)>ATR*1.9&&(C-O)>(H-C)*1.5&&C>O;
RS:=(H-L)>ATR*1.9&&(O-C)>(C-L)*1.5&&C<O;
HH1:=IFELSE(H<REF(H,1) && REF(H,1)<REF(H,2),REF(H,2),0);
LL1:=IFELSE(L>REF(L,1) && REF(L,1)>REF(L,2),REF(L,2),0);
HH2:=VALUEWHEN(HH1>0,HH1);
LL2:=VALUEWHEN(LL1>0,LL1);
K1:=IFELSE(CLOSE>HH2,-3,IFELSE(CLOSE<LL2,1,0));
K2:=VALUEWHEN(K1<>0,K1);
W1:=K2;
BAA:=1;
HH:=HHV(HIGH,5)*BAA;
LL:=LLV(LOW,5)*BAA;
H1:=IFELSE(CLOSE>REF(HH,1),1,0)*BAA;
L1:=IFELSE(CLOSE<REF(LL,1),-1,0)*BAA;
P7:=H1+L1*BAA;
P8:=IFELSE(P7=0,REF(P7,1),P7)*BAA;
P9:=IFELSE(P8=0,REF(P8,1),P8)*BAA;
P10:=IFELSE(P9=0,REF(P9,1),P9)*BAA;
P11:=IFELSE(P10=0,REF(P10,1),P10)*BAA;
P12:=IFELSE(P11=0,REF(P11,1),P11)*BAA;
P13:=IFELSE(P12=0,REF(P12,1),P12)*BAA;
P14:=IFELSE(P13=0,REF(P13,1),P13)*BAA;
P15:=IFELSE(P14=0,REF(P14,1),P14)*BAA;
P16:=IFELSE(P15=0,REF(P15,1),P15)*BAA;
P17:=IFELSE(P16=0,REF(P16,1),P16)*BAA;
P18:=IFELSE(P17=0,REF(P17,1),P17)*BAA;
P19:=IFELSE(P18=0,REF(P18,1),P18)*BAA;
P20:=IFELSE(P19=0,REF(P19,1),P19)*BAA;
P21:=IFELSE(P20=0,REF(P20,1),P20)*BAA;
P22:=IFELSE(P21=0,REF(P21,1),P21)*BAA;
P23:=IFELSE(P22=0,REF(P22,1),P22)*BAA;
P24:=IFELSE(P23=0,REF(P23,1),P23)*BAA;
P25:=IFELSE(P24=0,REF(P24,1),P24)*BAA;
P26:=IFELSE(P25=0,REF(P25,1),P25)*BAA;
P27:=IFELSE(P26=0,REF(P26,1),P26)*BAA;
P28:=IFELSE(P27=0,REF(P27,1),P27)*BAA;
P29:=IFELSE(P28=0,REF(P28,1),P28)*BAA;
P30:=IFELSE(P29=0,REF(P29,1),P29)*BAA;
T:=IFELSE(P30=0,REF(P30,1),P30)*BAA;
DD:=BARSLAST(CROSS(T=1,0.5));
KK:=BARSLAST(CROSS(T=-1,0.5));
N1:=7;
N2:=14;
LC:=REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100;
RSI2:=SMA(MAX(CLOSE-LC,0),N2,1)/SMA(ABS(CLOSE-LC),N2,1)*100;
SHORT:=12;
LONG:=26;
M:=9;
DIFF:=EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);
DEA:=EMA(DIFF,M);
KD1:=CROSS(T=1,0.5) && W1=-3 && DD<KK;
KD2:=(W1=-3 && DD<KK && DIFF>DEA && RSI1>RSI2);
PK1:=CROSS(T=-1,0.5) && W1=1 && KK<DD;
PK2:=W1=1 && KK<DD && DIFF<DEA && RSI1<RSI2;
KDD:=BARSLAST(CROSS(W1=-3 && DD<KK,0.5))+1;
PKK:=BARSLAST(CROSS(W1=1 && KK<DD,0.5))+1;
D10151:=BARSLAST((CROSS(COUNT(KD1 || KD2,KDD)=1,0.5) || KD2) && C>MA20);
K10152:=BARSLAST((CROSS(COUNT(PK1 || PK2,PKK)=1,0.5) || PK2) && C<MA20);
K10152P:=BARSLAST(NOT(W1=1 && KK<DD));
D10151P:=BARSLAST(NOT(W1=-3 && DD<KK));
DRAWTEXT(CROSS(D10151<D10151P,0.5)&&C>神龙线,L,’涨’),COLORRED,FONTSIZE26,VALIGN0,ALIGN1;//多开仓
DRAWTEXT(CROSS(D10151>D10151P,0.5)&&C>神龙线,AVPRICE,’,×’),VALIGN2,ALIGN1,COLORGRAY,FONTSIZE25;//平多
DRAWTEXT(CROSS(K10152>K10152P,0.5)&&C<神龙线,AVPRICE,’×’),VALIGN0,ALIGN1,COLORMAGENTA,FONTSIZE25;//平空
DRAWTEXT(CROSS(K10152<K10152P,0.5)&&C<神龙线,H*1.0001,’跌’),COLORLIGHTGREEN,FONTSIZE26,VALIGN2,ALIGN1;//空开单

神龙多空线 涨跌买卖点提示 变色均线交易策略主图指标公式源码

指标下载声明:1、指标下载前请认真阅读详情内容,不提供具体使用方法,自行学习研究;2、您已下载代表对本指标认可,虚拟物品不予退款和调换;3、下载后如需修改或者定制编写指标,另收取费用;4、指标仅是分析辅助工具,不可依赖,理性使用,盈亏自负! 转载文章声明:本网站转载文章仅为传播更多期货行业信息,并不代表本网站赞同其观点,本网站也不保证文章内容的真实性、准确性和可靠性、完整性。 文章解释权归原作者所有,依次操作,所有后果自行承担,与本站无任何关系。如该文章涉及作品内容、版权或禁止转载的,请及时联系,我们将在第一时间处理。