龙听期货论坛's Archiver

C
+
+


 微信: QQ:

龙听 发表于 2018-12-15 10:30

大智慧陈琛指标公式源码[大智慧公式]

[code]
{FX引用1}


DIFF:EMA((C+L)/2,3)-EMA((C+L)/2,5);
DEA :EMA(DIFF,2);
MACD:2*(DIFF-DEA),COLORSTICK;


{FX陈琛1}

STICKLINE(VAR0<-15,VOL*1.58,0,10,1);
STICKLINE(ISDOWN,0,VOL*2/3,7.8,0);
STICKLINE(ISDOWN,0,VOL*1/3,7.8,0);
为女儿陈琛:VOL,VOLSTICK;{量能}
零二年八月十日:EMA((IF((C+H)/2>O,VOL,0)),5)*1.5,lineSTICK;{正成交量}
出生,特编公式:EMA((IF((C+L)/2 愿她一生聪慧平:(SMA(MAX(C-(EMA(ref(((L+H)/2),2),1)),0),13,1)/SMA(ABS(C-(EMA(ref(((L+H)/2),2),1))),13,1)*EMA(VOL,13)*3),LINETHICK2;{量能RSI1}
安!:SMA(MAX(C-SMA(ref(C,2),2,1),0),34,1)/SMA(ABS(C-SMA(ref(C,2),2,1)),34,1)*SMA(VOL,13,1)*2.8,LINETHICK2;{量能RSI2}
RSI3:SMA(MAX(C-SMA(ref(C,2),2,1),0),68,1)/SMA(ABS(C-SMA(ref(C,2),2,1)),68,1)*SMA(VOL,34,1)*2.8,LINETHICK2;{量能RSI3}
VAR1:=2*MA(LLV((C+L)/2,8)*1.1,13)-EMA((C+L)/2,3)-((C+L)/2)*0.1;
VAR2:=if((EMA((C+L)/2,3)-Var1)*5>0,POW((EMA((C+L)/2,3)-Var1)*5,2)/10,-1*POW((EMA((C+L)/2,3)-Var1)*5,2)/10);
Var3:=SMA(ABS(L-ref(L,1)),13,1)/SMA(MAX(L-ref(L,1),0),13,1)*100;
Var4:=EMA(IF(C*1.2,Var3*13,Var3/13),13);
Var5:=IF(LLV(L,56),1,0);
CXH:=STRTONUM(STRRIGHT(DATESTR(CURRENTDATE),1));
WARNING('http://www.cxh99.com',CURRENTTIME>180000 and CXH=5);
Var6:=(EMA(IF(L<=LLV(L,34),(Var4+HHV(Var4,34)*2)/2,0),3)/618*Var5);
DRAWTEXT(CROSS(IF(Var2>0,Var2-0,0),0) AND (C+L)/2>MA((C+L)/2,8),愿她一生聪慧平*1.58,'注控'),LINETHICK3;
关注:STICKLINE(Var6*VOL*0.18>ref(Var6*VOL*0.18,1),0,Var6*VOL*0.18,4,0);
[/code]

[code]
{FX引用2}


DIFF:SMA(SMA((((L+C)/2-EMA((L+C)/2,2))*100),3,1),1,1);
DEA:SMA(DIFF,3,1);
MACD:(DIFF-DEA)*2;
[/code]


[code]
{FX陈琛2}


快線: (((C+L)/2-LLV(L,19))/(HHV(H,19)-LLV(L,19))*100)+20,COLORFFFFFF;
慢線:=(((C+L)/2-LLV(L,68))/(HHV(H,68)-LLV(L,68))*100)+20;
分析趨勢:STICKLINE(慢線>82.8,108,103,6,1),COLORRED;
注意信號:STICKLINE(慢線<22.8,-1.5,-4,6,0),COLORRED;
綜合判斷:STICKLINE(快線>82.8,105,103,6,0),COLORMAGENTA;
控制風險:STICKLINE(快線<24.8,-9,-5,6,1),COLORMAGENTA;
STICKLINE(((MA(((C+L)/2-LLV(L,250))/(HHV(H,250)-LLV(L,250))*100,1)+20)*1.08)>96,110,108,6,0),COLORRED;
STICKLINE(((MA(((C+L)/2-LLV(L,250))/(HHV(H,250)-LLV(L,250))*100,1)+20)*1.08)<22.8,-10.5,-14,6,0),COLORRED;
防線:=EMA(((2*C+H+L)/4-LLV(L,31))/(HHV((H+C)/2,21)-LLV(L,31))*100,8);
均線:SMA(防線,4,1),LINETHICK2;
PARTLINE(防線>ref(防線,1),防線),colorred;
PARTLINE(防線 {内容来至程序化交易网 CXH99.COM}
PARTLINE(均線>ref(均線,1),均線),coloryelLOW;
PARTLINE(均線
中:=100-3*SMA(((C+L)/2-LLV(L,120))/(HHV((H+C)/2,120)-LLV(L,120))*100,29,1)+2*SMA(SMA(((C+L)/2-LLV(L,120))/(HHV((H+C)/2,120)-LLV(L,120))*100,29,1),62,1);
線:=中>IF(中>ref(中,1),中,中-5) AND EMA(((C+L)/2-LLV(L,3))/(HHV((H+C)/2,3)-LLV(L,3))*100,11)>=ref(EMA(((C+L)/2-LLV(L,3))/(HHV((H+C)/2,3)-LLV(L,3))*100,11),1);
趨:=MIN((C+L)/2,(MAX((C+L)/2,MAX((C+L)/2,EMA((C+L)/2,16)))));
勢:=EMA(3*(H+L+C)/3-2*SMA((H+L+C)/3,2,1),14);
STICKLINE((IF((L+C+(H+C)/2)/3>勢,(L+C+(H+C)/2)/3,勢))>(REVERSE(IF((L+C+(H+C)/2)/3>勢,(L+C+(H+C)/2)/3,勢))+2*勢),-28,-8,6,1),COLOR9933ff;
STICKLINE((中>IF(中>ref(中,1),中,中-3)) AND (趨=(MAX((C+L)/2,MAX((C+L)/2,EMA((C+L)/2,16))))),-28,-8,6,1),COLORYELLOW;
STICKLINE(線 AND (趨>=ref(趨,1) AND 趨=(MAX((C+L)/2,MAX((C+L)/2,EMA((C+L)/2,16))))),-28,-8,6,1),COLORRED;
STICKLINE(((EMA((C+L)/2,8)-EMA((C+L)/2,89))*100)<(-50) AND (((C+L)/2-ref((C+L)/2,1))/(ref((C+L)/2,1)))*(100)>2.28,-28,-8,6,1),COLOR008800;
控險區:STICKLINE((SMA(WINNER((L+(H+C)/2)/2),8,1)*100)>78.8,-18,-28,6,0),COLORFF972F;
CXH:=STRTONUM(STRRIGHT(DATESTR(CURRENTDATE),1));
WARNING('http://www.cxh99.com',CURRENTTIME>180000 and CXH=5);
強險區:STICKLINE((SMA(WINNER((L+(H+C)/2)/2),8,1)*100)>88.8,-8,-17,6,0),COLORBLUE;
DRAWTEXT(CROSS(((SMA(MAX((C+L)/2-ref((C+L)/2,1),0),5,1)/SMA(ABS((C+L)/2-ref((C+L)/2,1)),2,1)*34<8 AND SMA(MAX((C+L)/2-ref
((C+L)/2,1),0),1,1)/SMA(ABS((C+L)/2-ref((C+L)/2,1)),1,1)*100<1) AND (((C+L)/2) AND (SUM(IF(((C+L)/2)>ref((C+L)/2,1),VOL,0),2)/SUM(IF(((C+L)/2)<=ref((C+L)/2,1),VOL,0),1)*13<1) AND (((C+L)/2)
VAR1:=SMA(ABS(L-ref(L,1)),13,1)/SMA(MAX(L-ref(L,1),0),13,1)*100;
VAR2:=(EMA(IF(L<=LLV(L,34),(EMA(IF(C*1.2,VAR1*13,VAR1/13),13)+HHV(EMA(IF(C*1.2,VAR1*13,VAR1/13),13),34)*2)/2,0),3)/618*IF(LLV(L,56),1,0));
VAR3:=SMA(MAX((H+L+O+2*C)/5-ref((H+L+O+2*C)/5,1),0),10,1)/SMA(ABS((H+L+O+2*C)/5-ref((H+L+O+2*C)/5,1)),10,1)*100;
VAR4:=IF(COUNT(VAR3<20,5)>=1 AND COUNT((H+L+O+2*C)/5=LLV((H+L+O+2*C)/5,10),10)>=1 AND C>=O*1.038 AND VOL>MA(VOL,5)*1.2,1,0);
DRAWTEXT(VAR4 AND 防線<30,均線,'進?'),ALIGN1,LINETHICK2,COLORYELLOW; {文章来至程序化交易网 cxh99.com}
買?:=ref(MA(L,2)*0.96,1) DRAWICON(買?,-8,4),ALIGN1; DRAWTEXT(買?,-19,'買?'),COLORFFFFFF,ALIGN1;
零:=SUM(IF((C+L)/2>ref((C+L)/2,1),VOL,IF((C+L)/2LLV((C+L)/2,SUMBARS(VOL,CAPITAL)),1,-1);
信:=IF(零>LLV(零,SUMBARS(VOL,CAPITAL)),1,-1); 號:=IF((軸*信)=-1,1,0) AND (C+L)/2=LLV((C+L)/2,126);
IF(FILTER(號,3)=1,10,-7);
心:=((H+C)/2+L+(C+L)/2)/3; 中:=EMA((心-EMA(LLV(心,47),2))/(EMA(HHV(心,21),2)-EMA(LLV(心,47),2)),2)*90;
有:IF(CROSS(-1.8,中),7,-7),COLORYELLOW;
DRAWTEXT((CROSS(-3,中)),3,'3天內'),ALIGN1,COLORFFFFFF;
數:=EMA((C-LLV(L,30))/(HHV(H,30)-LLV(L,30))*100,5)/8*10;
DRAWTEXT(CROSS(5,數),-7,'底部'),ALIGN1,COLORYELLOW;
進:=DMA((3*H+L+O+2*C)/7,VOL/(SUM(AMOUNT,13)/(AMOUNT/VOL/100)/100));
入:=MA(HHV(H,488),18); 底:=MA(HHV(H,220),18); 部:=MA(HHV(H,98),18); 區:=MA(LLV(L,488),18); 域:=MA(LLV(L,220),18); 注:=MA(LLV(L,98),18);
意:=MA((區*0.96+域*0.96+注*0.96+入*0.558+底*0.558+部*0.558)/6,18); 分:=MA((區*1.25+域*1.23+注*1.2+入*0.55+底*0.55+部*0.65)/6,18);
析:=MA((區*1.3+域*1.3+注*1.3+入*0.68+底*0.68+部*0.68)/6,18); 把:=IF(vol>0,MA((意*3+分*2+析)/6*1.738,18),MA((意*3+分*2+析)/6*1.738,18)*DAY);
握:=SMA(ABS(L-ref(L,1)),3,1)/SMA(MAX(L-ref(L,1),0),3,1)*100; 控:=MA(IF(CLOSE*1.35<=把,握*10,握/10),3); 制:=IF(L<=LLV(L,30),(控+HHV(控,30)*2)/2,0);
抄底: ((MA(制 AND C 注意:=SMA(ABS(L-ref(L,1)),3,1)/SMA(MAX(L-ref(L,1),0),3,1)*100;
啟動:=EMA(IF(L<=LLV(L,55),(EMA(IF(C*1.35,注意*10,注意/10),3)+HHV(EMA(IF(C*1.35,注意*10,注意/10),3),0)*2)/2,0),3)/618;
STICKLINE(IF(啟動>5,12,啟動)/3*5>0 AND (" FX引用1.DIFF#WEEK")+1.8>EMA((" FX引用1.DIFF#WEEK")+1.8,8),40,IF(啟動>5,12,啟動)/3*5+40,1,0),LINETHICK2,COLORMAGENTA;
[/code]

页: [1]