指標修改謝謝優化一下 [文華財經]
-
咨詢內容:
?
N:=10;
SJ:=211201;//時間限制
H3:=HHV(H,0);
L4:=0;
STICKLINE1(DATE>SJ,H3,L4,1000000,0),COLORRED;
FXA:=MA(((SLOPE(C,20)*5)+C),20);?
C1:=(C+O+H+L)/4;
CA:=EMA(C1,1);
CB:=EMA(C1,3);
CC:=EMA(C1,5);
CE:=EMA((VOL*CA),1)/EMA(VOL,1);
CF:=EMA((VOL*(CA+CB+CC)/3),1)/EMA(VOL,1);
DXA:=EMA(EMA(EMA(CE,3),2),1),NODRAW;
DXB:=EMA(EMA(EMA(CF,5),3),1),NODRAW;
??
TY1:=HIGH;
HD1:=FILTER(BACKSET(FILTER(REF(TY1,N)=HHV(TY1,2*N+1),N),N+1),N);
LD1:=FILTER(BACKSET(FILTER(REF(TY1,N)=LLV(TY1,2*N+1),N),N+1),N);
A1:=REF(TY1,BARSLAST(HD1));
B1:=REF(LOW,BARSLAST(LD1));
T1:=BARSLAST(HD1)<BARSLAST(LD1) && NOT(HD1);
T2:=BARSLAST(HD1)>BARSLAST(LD1) && NOT(LD1);
PARTLINE1(T1,A1),RGB(0,255,0),DOT;
PARTLINE1(T2,B1),RGB(255,0,255),DOT;
綠:IF(T1,A1,A1),RGB(0,255,0),NODRAW,PRECIS0;
粉:IF(T2,B1,B1),RGB(255,0,255),NODRAW,PRECIS0;
AAA:=CLOSE>REF(CLOSE,1) && REF(CLOSE,1)>REF(CLOSE,2) && REF(CLOSE,1)<REF(CLOSE,3) && IF(REF(CLOSE,3)<REF(CLOSE,4),1,IF(REF(CLOSE,4)<REF(CLOSE,5),REF(CLOSE,1)<REF(CLOSE,4) || (REF(CLOSE,2)<REF(CLOSE,4) && REF(CLOSE,3)>=REF(CLOSE,5)),IF(REF(CLOSE,5)<REF(CLOSE,6),1,REF(CLOSE,6)<REF(CLOSE,7))));
BBB:=CLOSE<REF(CLOSE,1) && REF(CLOSE,1)<REF(CLOSE,2) && REF(CLOSE,1)>REF(CLOSE,3) && IF(REF(CLOSE,3)>REF(CLOSE,4),1,IF(REF(CLOSE,4)>REF(CLOSE,5),REF(CLOSE,1)>REF(CLOSE,4) || (REF(CLOSE,2)>REF(CLOSE,4) && REF(CLOSE,3)<=REF(CLOSE,5)),IF(REF(CLOSE,5)>REF(CLOSE,6),1,REF(CLOSE,6)>REF(CLOSE,7))));
DRAWICON(AAA && CLOSE>REF(OPEN,2),LOW,'CO4',VALIGN0,FONTSIZE14;DRAWICON(BBB && CLOSE<REF(CLOSE,2),HIGH,'CO5',VALIGN2,FONTSIZE14;
?
上下箭頭 放大 19號? 上下箭頭 出現的時候 有聲音提示
?
?來源:程序化99
-
文華技術人員:
?參考:
N:=10;
SJ:=211201;//時間限制 H3:=HHV(H,0); L4:=0; STICKLINE1(DATE>SJ,H3,L4,1000000,0),COLORRED;
FXA:=MA(((SLOPE(C,20)*5)+C),20);
? C1:=(C+O+H+L)/4; CA:=EMA(C1,1); CB:=EMA(C1,3); CC:=EMA(C1,5); CE:=EMA((VOL*CA),1)/EMA(VOL,1); CF:=EMA((VOL*(CA+CB+CC)/3),1)/EMA(VOL,1); DXA:=EMA(EMA(EMA(CE,3),2),1),NODRAW; DXB:=EMA(EMA(EMA(CF,5),3),1),NODRAW; ?
? TY1:=HIGH; HD1:=FILTER(BACKSET(FILTER(REF(TY1,N)=HHV(TY1,2*N+1),N),N+1),N); LD1:=FILTER(BACKSET(FILTER(REF(TY1,N)=LLV(TY1,2*N+1),N),N+1),N); A1:=REF(TY1,BARSLAST(HD1)); B1:=REF(LOW,BARSLAST(LD1)); T1:=BARSLAST(HD1)<BARSLAST(LD1) && NOT(HD1); T2:=BARSLAST(HD1)>BARSLAST(LD1) && NOT(LD1); PARTLINE1(T1,A1),RGB(0,255,0),DOT; PARTLINE1(T2,B1),RGB(255,0,255),DOT; 綠:IF(T1,A1,A1),RGB(0,255,0),NODRAW,PRECIS0; 粉:IF(T2,B1,B1),RGB(255,0,255),NODRAW,PRECIS0; AAA:=CLOSE>REF(CLOSE,1) && REF(CLOSE,1)>REF(CLOSE,2) && REF(CLOSE,1)<REF(CLOSE,3) && IF(REF(CLOSE,3)<REF(CLOSE,4),1,IF(REF(CLOSE,4)<REF(CLOSE,5),REF(CLOSE,1)<REF(CLOSE,4) || (REF(CLOSE,2)<REF(CLOSE,4) && REF(CLOSE,3)>=REF(CLOSE,5)),IF(REF(CLOSE,5)<REF(CLOSE,6),1,REF(CLOSE,6)<REF(CLOSE,7)))); BBB:=CLOSE<REF(CLOSE,1) && REF(CLOSE,1)<REF(CLOSE,2) && REF(CLOSE,1)>REF(CLOSE,3) && IF(REF(CLOSE,3)>REF(CLOSE,4),1,IF(REF(CLOSE,4)>REF(CLOSE,5),REF(CLOSE,1)>REF(CLOSE,4) || (REF(CLOSE,2)>REF(CLOSE,4) && REF(CLOSE,3)<=REF(CLOSE,5)),IF(REF(CLOSE,5)>REF(CLOSE,6),1,REF(CLOSE,6)>REF(CLOSE,7))));
DRAWTEXT(AAA && CLOSE>REF(OPEN,2),LOW,'',COLORRED,VALIGN0,FONTSIZE19;
DRAWTEXT(BBB && CLOSE<REF(CLOSE,2),HIGH,'',COLORGREEN,VALIGN2,FONTSIZE19;
AAA && CLOSE>REF(OPEN,2),SOUND(''; BBB && CLOSE<REF(CLOSE,2),SOUND('';
有思路,想編寫各種指標公式,交易模型,選股公式,還原公式的朋友
可聯系技術人員 QQ: 262069696 或微信號:cxh99cxh99 進行 有償收費 編寫!
(注:由于人數限制,QQ或微信請選擇方便的一個聯系我們就行,加好友時請簡單備注下您的需求,否則無法通過。謝謝您!)
相關文章
-
沒有相關內容