指标修改 [文华财经]
-
咨询内容:
HH1:=IF(H<REF(H,2) AND REF(H,1)<REF(H,2),REF(H,2),0);LL1:=IF(L>REF(L,2) AND REF(L,1)>REF(L,2),REF(L,2),0);HH2:=VALUEWHEN(HH1>0,HH1);LL2:=VALUEWHEN(LL1>0,LL1);K1:=IF(CLOSE>HH2,-3,IF(CLOSE<LL2,1,0));K2:=VALUEWHEN(K1<>0,K1);G:IF(K2=1,HH2,LL2),COLOR00FFFF;DRAWNUMBER(ISLASTBAR,G,G,2,COLORYELLOW),ALIGN0;G1:=VALUEWHEN(ISLASTBAR,G);W1:=K2;W2:=OPEN-CLOSE;HT:=IF(OPEN>CLOSE,OPEN,CLOSE);LT:=IF(OPEN<CLOSE,OPEN,CLOSE);AA1:=(EMA((OPEN+HIGH+LOW+CLOSE)/4,3)+EMA((OPEN+HIGH+LOW+CLOSE)/4,6)+EMA((OPEN+HIGH+LOW+CLOSE)/4,9))/3;AA2:=(EMA((OPEN+HIGH+LOW+CLOSE)/4,5)+EMA((OPEN+HIGH+LOW+CLOSE)/4,10)+EMA((OPEN+HIGH+LOW+CLOSE)/4,20))/3;AA3:=(EMA((OPEN+HIGH+LOW+CLOSE)/4,7)+EMA((OPEN+HIGH+LOW+CLOSE)/4,14)+EMA((OPEN+HIGH+LOW+CLOSE)/4,28))/3;AA4:=(EMA((OPEN+HIGH+LOW+CLOSE)/4,9)+EMA((OPEN+HIGH+LOW+CLOSE)/4,18)+EMA((OPEN+HIGH+LOW+CLOSE)/4,36))/3;AA5:=(EMA((OPEN+HIGH+LOW+CLOSE)/4,11)+EMA((OPEN+HIGH+LOW+CLOSE)/4,22)+EMA((OPEN+HIGH+LOW+CLOSE)/4,44))/3;AA6:=(EMA((OPEN+HIGH+LOW+CLOSE)/4,13)+EMA((OPEN+HIGH+LOW+CLOSE)/4,26)+EMA((OPEN+HIGH+LOW+CLOSE)/4,52))/3;AA7:=(EMA((OPEN+HIGH+LOW+CLOSE)/4,21)+EMA((OPEN+HIGH+LOW+CLOSE)/4,34)+EMA((OPEN+HIGH+LOW+CLOSE)/4,68))/3;VAR1:=FORCAST(AA1,6);VAR2:=FORCAST(AA2,6);VAR3:=FORCAST(AA3,6);VAR4:=FORCAST(AA4,6);VAR5:=FORCAST(AA5,6);VAR6:=FORCAST(AA6,6);VAR7:=FORCAST(AA7,6);/*IF(VAR1>REF(VAR1,1),VAR1,NULL),POINTDOT,COLORFF00FF;IF(VAR1<REF(VAR1,1),VAR1,NULL),POINTDOT,COLOR00FF00;IF(VAR2>REF(VAR2,1),VAR2,NULL),POINTDOT,COLORFF00FF;IF(VAR2<REF(VAR2,1),VAR2,NULL),POINTDOT,COLOR00FF00;IF(VAR3>REF(VAR3,1),VAR3,NULL),POINTDOT,COLORFF00FF;IF(VAR3<REF(VAR3,1),VAR3,NULL),POINTDOT,COLOR00FF00;IF(VAR4>REF(VAR4,1),VAR4,NULL),POINTDOT,COLORFF00FF;IF(VAR4<REF(VAR4,1),VAR4,NULL),POINTDOT,COLOR00FF00;IF(VAR5>REF(VAR5,1),VAR5,NULL),POINTDOT,COLORFF00FF;IF(VAR5<REF(VAR5,1),VAR5,NULL),POINTDOT,COLOR00FF00;IF(VAR6>REF(VAR6,1),VAR6,NULL),POINTDOT,COLORFF00FF;IF(VAR6<REF(VAR6,1),VAR6,NULL),POINTDOT,COLOR00FF00;*/TOWERC:=FORCAST(EMA((3*CLOSE+2*OPEN+HIGH+LOW)/7,3),6);DIRECTIONMAX:=MAX(REF(TOWERC,1),REF(TOWERC,1));DIRECTIONMIN:=MIN(REF(TOWERC,1),REF(TOWERC,1));//STICKLINE(TOWERC>=REF(TOWERC,1),TOWERC,DIRECTIONMAX,4,0),COLOR0000FF;//ICKLINE(TOWERC<REF(TOWERC,1),TOWERC,DIRECTIONMIN,4,0),COLOR00FF00;DD:=CROSS(TOWERC>=REF(TOWERC,1),0.5);GG:=CROSS(TOWERC<REF(TOWERC,1),0.5);//STICKLINE1(DD,H,H,7,0),COLORRED;//STICKLINE1(GG,L,L,7,0),COLORGREEN;//VERTLINE(TIME=900||DAYBARPOS=1,COLORYELLOW),DOT;MA5:=MA(C,2);MA20:=MA(C,3);//DRAWCOLORLINE(MA5>MA20,MA20,COLORRED,COLORGREEN);ZF:=(C-REF(C,1))/REF(C,1)*100;A1:=ZF>=0.2;A2:=ZF<=-0.2;A:=C>MA(C,3)&&(MA5>MA20)&&A1;B:=C<MA(C,3)&&(MA5<MA20)&&A2;//DRAWTEXT(A&&EXIST(B,SUMBARS(A,2)),L-1,'.'),COLORRED,ALIGN2,VALIGN0;//DRAWTEXT(B&&EXIST(A,SUMBARS(B,2)),H+1,'?'),COLORGREEN,ALIGN1;//DRAWNUMBER(A&&EXIST(B,SUMBARS(A,2)),L-1,COUNT(A,BARSLAST(CROSS(MA5>MA20,0.5))+1),0,COLORRED),VALIGN0;CC1:=(EMA((OPEN+HIGH+LOW+CLOSE)/4,3)+EMA((OPEN+HIGH+LOW+CLOSE)/4,6)+EMA((OPEN+HIGH+LOW+CLOSE)/4,9))/3;CC2:=(EMA((OPEN+HIGH+LOW+CLOSE)/4,5)+EMA((OPEN+HIGH+LOW+CLOSE)/4,10)+EMA((OPEN+HIGH+LOW+CLOSE)/4,20))/3;A3:=(EMA((OPEN+HIGH+LOW+CLOSE)/4,7)+EMA((OPEN+HIGH+LOW+CLOSE)/4,14)+EMA((OPEN+HIGH+LOW+CLOSE)/4,28))/3;A4:=(EMA((OPEN+HIGH+LOW+CLOSE)/4,9)+EMA((OPEN+HIGH+LOW+CLOSE)/4,18)+EMA((OPEN+HIGH+LOW+CLOSE)/4,36))/3;A5:=(EMA((OPEN+HIGH+LOW+CLOSE)/4,11)+EMA((OPEN+HIGH+LOW+CLOSE)/4,22)+EMA((OPEN+HIGH+LOW+CLOSE)/4,44))/3;A6:=(EMA((OPEN+HIGH+LOW+CLOSE)/4,13)+EMA((OPEN+HIGH+LOW+CLOSE)/4,26)+EMA((OPEN+HIGH+LOW+CLOSE)/4,52))/3;A7:=(EMA((OPEN+HIGH+LOW+CLOSE)/4,21)+EMA((OPEN+HIGH+LOW+CLOSE)/4,34)+EMA((OPEN+HIGH+LOW+CLOSE)/4,68))/3;VAR11:=FORCAST(A1,6);VAR12:=FORCAST(A2,6);VAR13:=FORCAST(A3,6);VAR14:=FORCAST(A4,6);VAR15:=FORCAST(A5,6);VAR16:=FORCAST(A6,6);VAR17:=FORCAST(A7,6);/*IF(VAR1>REF(VAR1,1),VAR1,NULL),POINTDOT,COLORFF00FF;IF(VAR1<REF(VAR1,1),VAR1,NULL),POINTDOT,COLOR00FF00;IF(VAR2>REF(VAR2,1),VAR2,NULL),POINTDOT,COLORFF00FF;IF(VAR2<REF(VAR2,1),VAR2,NULL),POINTDOT,COLOR00FF00;IF(VAR3>REF(VAR3,1),VAR3,NULL),POINTDOT,COLORFF00FF;IF(VAR3<REF(VAR3,1),VAR3,NULL),POINTDOT,COLOR00FF00;IF(VAR4>REF(VAR4,1),VAR4,NULL),POINTDOT,COLORFF00FF;IF(VAR4<REF(VAR4,1),VAR4,NULL),POINTDOT,COLOR00FF00;IF(VAR5>REF(VAR5,1),VAR5,NULL),POINTDOT,COLORFF00FF;IF(VAR5<REF(VAR5,1),VAR5,NULL),POINTDOT,COLOR00FF00;IF(VAR6>REF(VAR6,1),VAR6,NULL),POINTDOT,COLORFF00FF;IF(VAR6<REF(VAR6,1),VAR6,NULL),POINTDOT,COLOR00FF00;*/TOWERC1:=FORCAST(EMA((3*CLOSE+2*OPEN+HIGH+LOW)/7,3),6);DIRECTIONMAX1:=MAX(REF(TOWERC,1),REF(TOWERC,1));DIRECTIONMIN1:=MIN(REF(TOWERC,1),REF(TOWERC,1));//STICKLINE(TOWERC>=REF(TOWERC,1),TOWERC,DIRECTIONMAX,4,0),COLOR0000FF;//STICKLINE(TOWERC<REF(TOWERC,1),TOWERC,DIRECTIONMIN,4,0),COLOR00FF00;DDD:=CROSS(TOWERC>=REF(TOWERC,1),0.5);GGG:=CROSS(TOWERC<REF(TOWERC,1),0.5);AA:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));买量:=IF(CLOSE>OPEN,AA*(HIGH-LOW),IF(CLOSE<OPEN,AA*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)),NODRAW,COLORRED;卖量:=IF(CLOSE>OPEN,0-AA*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-AA*(HIGH-LOW),0-VOL/2)),NODRAW,COLORCYAN;进出量:=买量+卖量,COLOR00FFFF;五日内净流入:=SUM(进出量,5),LINETHICK1,COLORLIGHTBLUE;N:=5;M:=8;N1:=4;RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;//收盘价与N周期最低值做差,N周期最高值与N周期最低值做差,两差之间做比值。K:=SMA(RSV,3,1);//RSV的移动平均值D:=SMA(K,3,1);//K的移动平均值J:=3*K-2*D;TYP := (HIGH + LOW + CLOSE)/3;CCC1:=(TYP-MA(TYP,M))/(0.015*AVEDEV(TYP,M)),COLORFF00FF;C1:=SMA(CC1,3,1);C2:=SMA(C1,3,1);C3:=3*C1-2*C2;CB1:=EMA(C3,5);LC := REF(CLOSE,1);RSI1:=SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100;RSI:=(RSI1-50)*5;R1A:=SMA(RSI,3,1);D1:=SMA(R1A,3,1);J1:=3*R1A-2*D1;RR1:=EMA(J1,5);RR2:=REF(RR1,1);RR:=RR1>RR2;卖出:=REF(RR,1)=1 AND NOT(RR) AND CB1>100;R1:=(CLOSE-LLV(LOW,30))/(HHV(HIGH,30)-LLV(LOW,30))*200;R2:=EMA((CLOSE-(LLV(LOW,5)))/((HHV(HIGH,5))-(LLV(LOW,5)))*100,4)*2;R3:=EMA(0.618*REF(R2,1)+0.382*R2,2);R4:=POW(MA(CLOSE,5),2)+MA(CLOSE,5);R5:=POW(MA(LOW,5),2)+MA(LOW,5);R6:=POW(MA(HIGH,5),2)+MA(HIGH,5);R7:=(R4-LLV(R5,64))/(HHV(R6,64)-LLV(R5,64))*150+65-10;R8:=SMA((SMA(R7,3,1)*1.5-100),3,1);R9:=3*(SMA(R7,3,1)*1.5-100)-2*R8;R10:=(HIGH+LOW+CLOSE*2)/4;R11:=(R10-(EMA(R10,13)))*100/(STD(R10,13));R12:=EMA((EMA(R11,5)),13)+200-100;R13:=(SMA(R1,3,1))+R2+(SMA(R7,3,1)*1.5-100)+R12;R14:=(SMA((SMA(R1,3,1)),3,1))+R3+R8+(EMA(R12,10));R15:=(3*(SMA(R1,3,1))-2*(SMA((SMA(R1,3,1)),3,1)))+(3*R12-2*(EMA(R12,10)))+R9+(3*R12-2*(EMA(R12,10)));R16:=(HIGH+LOW+CLOSE)/3;R17:=(R16-MA(R16,34))/(0.015*AVEDEV(R16,34));R18:=(HIGH+LOW+CLOSE+R16)/4;R19:=(R18-(EMA(R18,24)))/(STD(R18,24))*100;R20:=(R16-MA(R16,24))/(0.015*AVEDEV(R16,24));R21:=(((EMA(R19,5))+R20+R17)/3+165)/4;R22:=(R13+R14+R15*30)/32/5-15;买卖: =EMA(((R21+R22)/2/1.1),1);阻力:=MA(买卖,3),COLORWHITE,LINETHICK2;//IF(买卖< 阻力,买卖,NULL),COLORGREEN,LINETHICK2;//IF(买卖>=阻力,买卖,NULL),COLORRED,LINETHICK2;预知:=(CLOSE-MA(CLOSE,5))/MA(CLOSE,5)*250,PRECIS3, COLORYELLOW,LINETHICK2;//DRAWICON(CROSS(预知<0.01,0.5),预知,1);金牛狂飙:=IF(CROSS(预知,0) AND CROSS(买卖,阻力) AND 阻力>0 AND 阻力>REF(阻力,1) AND 五日内净流入>0 AND 五日内净流入>REF( 五日内净流入,1),10,0),COLORRED;//STICKLINE1(CROSS(预知,0) AND CROSS(买卖,阻力) AND 阻力>0 AND 阻力>REF(阻力,1) AND 五日内净流入>0 AND 五日内净流入>REF( 五日内净流入,1),22.8,0,1,0),COLORRED;VAR2W:=REF(LOW,1);VAR3W:=SMA(ABS(LOW-VAR2W),3,1)/SMA(MAX(LOW-VAR2W,0),3,1)*100;VAR4W:=EMA(IF(CLOSE*1.3,VAR3W*10,VAR3W/10),3);VAR5W:=LLV(LOW,3);VAR6W:=HHV(VAR4W,30);VAR7W:=IF(MA(CLOSE,5),1,0);VAR8W:=EMA(IF(LOW<=VAR5W,(VAR4W+VAR6W*2)/2,0),3)/618*VAR7W;VAR9W:=IF(VAR8W>100,100,VAR8W);底部吸筹指标:=(CLOSE-MA(CLOSE,10))/MA(CLOSE,10)*100;可能放量拉升:=IF(CROSS(底部吸筹指标,-24),1,0);
COND1:=CROSSDOWN(预知,0);COND2:=CROSS(预知,0);N10:=BARSLAST(COND1)+1;N20:=BARSLAST(COND2)+1;//DRAWICON(CROSS(COUNT(CROSSDOWN(预知,0),N20),0.5),L,'ICO5'),VALIGN0;//DRAWICON(CROSS(COUNT(CROSS(预知,0),N10),0.5),H,'ICO4');AA10:=MOD(COUNT(CROSS(预知,0),BARPOS),2)=0;AA11:=MOD(COUNT(CROSS(预知,0),BARPOS),2)=1;AA20:=MOD(COUNT(CROSSDOWN(预知,0),BARPOS),2)=0;AA21:=MOD(COUNT(CROSSDOWN(预知,0),BARPOS),2)=1;DRAWTEXT(AA10&&CROSS(COUNT(CROSS(预知,0),N10),0.5),H,'B'),FONTSIZE20;DRAWTEXT(AA20&&CROSS(COUNT(CROSSDOWN(预知,0),N20),0.5),L,'B'),FONTSIZE20;DRAWTEXT(AA11&&CROSS(COUNT(CROSS(预知,0),N10),0.5),H,'A'),FONTSIZE20;DRAWTEXT(AA21&&CROSS(COUNT(CROSSDOWN(预知,0),N20),0.5),L,'A'),FONTSIZE20;//DRAWTEXT(AA11&&CROSS(COUNT(CROSS(预知,0),N10),0.5),L,Ƈ'),FONTSIZE15;//DRAWTEXT(AA21&&CROSS(COUNT(CROSSDOWN(预知,0),N20),0.5),H,Ƈ'),FONTSIZE15;//DRAWTEXT(AA10&&CROSS(COUNT(CROSS(预知,0),N10),0.5),L,ƈ'),FONTSIZE15;//DRAWTEXT(AA20&&CROSS(COUNT(CROSSDOWN(预知,0),N20),0.5),H,ƈ'),FONTSIZE15;老师在线之下阴线信号标记上绿色箭头,在线之上阳线信号标记上红色箭头。
来源:程序化99
-
文华技术人员:
DRAWICON(AA10&&CROSS(COUNT(CROSS(预知,0),N10),0.5)&&C>G&&ISUP,H,4),FONTSIZE20;
DRAWICON(AA20&&CROSS(COUNT(CROSSDOWN(预知,0),N20),0.5)&&C<G&&ISDOWN,L,5),FONTSIZE20;
DRAWICON(AA11&&CROSS(COUNT(CROSS(预知,0),N10),0.5)&&C>G&&ISUP,H,4),FONTSIZE20;
DRAWICON(AA21&&CROSS(COUNT(CROSSDOWN(预知,0),N20),0.5)&&C<G&&ISDOWN,L,5),FONTSIZE20;
来源: WWW.CXH99.COM
-
文华客服:
隐藏A和B
-
网友回复:
您源码最后四句删除就行了:
DRAWTEXT(AA10&&CROSS(COUNT(CROSS(预知,0),N10),0.5),H,'',FONTSIZE20;DRAWTEXT(AA20&&CROSS(COUNT(CROSSDOWN(预知,0),N20),0.5),L,'',FONTSIZE20;DRAWTEXT(AA11&&CROSS(COUNT(CROSS(预知,0),N10),0.5),H,'',FONTSIZE20;DRAWTEXT(AA21&&CROSS(COUNT(CROSSDOWN(预知,0),N20),0.5),L,'',FONTSIZE20; - 网友回复: 把绿色箭头往下一点 ,线的数值调小一点在哪里
有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友
可联系技术人员 QQ: 262069696 或微信号:cxh99cxh99 进行 有偿收费 编写!
(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
相关文章
-
没有相关内容