以下是特别准的底部三角形突破选股指标公式源码和使用说明
特别准的底部三角形突破选股指标公式源码:
N:=10;MA1:=MA(REF(CLOSE,1),5);MA2:=MA(REF(CLOSE,1),10);A:=MAX(MA1,MA2);B:=MIN(MA1,MA2);上轨:=MAX(A,MA(REF(CLOSE,1),20));下轨:=MIN(B,MA(REF(CLOSE,1),20));CC:=1000*(上轨/下轨-1)<=25;C1:=COUNT(CLOSE>0,0)>NAND(HHV(REF(CLOSE,1),N)-LLV(REF(CLOSE,1),N))/LLV(REF(CLOSE,1),N)<=(20/100);C2:=DYNAINFO(8)>1ANDCC;C3:=CLOSE/REF(CLOSE,1)>=1.04;XG:C1ANDC2ANDC3ANDCAPITAL<=5000000ANDVOL/CAPITAL*100>=5,COLOR00FF66,COLORLIBLUE,LINETHICK2;
底部三角形:=3*(SMA((SMA(((CLOSE-LLV(LOW,28))/(HHV(HIGH,30)-LLV(LOW,36))*0.6*CLOSE),6.3,1))
,3,1))-1*(SMA(((CLOSE-LLV(LOW,28))/(HHV(HIGH,30)-LLV(LOW,36))*0.6*CLOSE),6.3,1));
突破选股指标:=IF(底部三角形>(3*(SMA(((CLOSE-LLV(LOW,28))/(
HHV(HIGH,30)-LLV(LOW,36))*0.6*CLOSE),6.3,1))
-2.1*(SMA((SMA(((CLOSE-LLV(LOW,28))/(
HHV(HIGH,30)-LLV(LOW,36))*0.6*CLOSE),6.3,1))
,3,1))),(3*(SMA(((CLOSE-LLV(LOW,28))/(
HHV(HIGH,30)-LLV(LOW,36))*0.6*CLOSE),6.3,1))
-2.1*(SMA((SMA(((CLOSE-LLV(LOW,28))/(
HHV(HIGH,30)-LLV(LOW,36))*0.6*CLOSE),6.3,1))
,3,1))),底部三角形)COLOR0090FF,LINETHICK0;
F1:STICKLINE((突破选股指标>=REF(突破选股指标,1)),突破选股指标,突破选股指标,18,9)COLOR0080FF;
F2:STICKLINE((突破选股指标>=REF(突破选股指标,1)),突破选股指标,突破选股指标,10,9)COLOR00009C;
F3:STICKLINE((突破选股指标>=REF(突破选股指标,1)),突破选股指标,突破选股指标,5,9)COLORYELLOW;
F4:STICKLINE((突破选股指标<REF(突破选股指标,1)),突破选股指标,突破选股指标,18,9)COLOR0080FF;
F5:STICKLINE((突破选股指标<REF(突破选股指标,1)),突破选股指标,突破选股指标,10,9)COLOR00009C;
F6:STICKLINE((突破选股指标<REF(突破选股指标,1)),突破选股指标,突破选股指标,5,9)COLORYELLOW;
F1,COLOR0080FF,LINESTICK,LINETHICK9;
F2,COLORGREEN,LINESTICK,LINETHICK6;
F3,COLOR00099C,LINESTICK,LINETHICK4;
vsddd1:IF(突破选股指标>=REF(突破选股指标,1),突破选股指标,DRAWNULL)COLORGREEN,
LINETHICK6;
vsddd3:IF(突破选股指标>=REF(突破选股指标,1),突破选股指标,DRAWNULL)COLOR0080FF,
LINETHICK3;
AAA:=(3*C+H+L+O)/6;
VAR1:=(8*AAA+7*REF(AAA,1)+6*REF(AAA,2)+5*REF(AAA,3)+4*REF(AAA,4)+3*REF(AAA,5)+2*REF(AAA,6)+REF(AAA,8))/36;
VAR2:=(HHV(VAR1,5)+HHV(VAR1,10)+HHV(VAR1,20))/3;
VAR3:=(LLV(VAR1,5)+LLV(VAR1,10)+LLV(VAR1,20))/3;
VAR4:=(HHV(VAR2,5)+HHV(VAR2,10)+HHV(VAR2,20))/3;
VAR5:=(LLV(VAR3,5)+LLV(VAR3,10)+LLV(VAR3,20))/3;
VAR6:=(LLV(VAR1,2)+LLV(VAR1,4)+LLV(VAR1,6))/3;
DRAWBAND(VAR1,RGB(155,50,50),VAR6,RGB(250,250,0));
短线:VAR1,COLORWHITE;
中线:VAR6,COLORYELLOW;
下跌:IF(VAR1=VAR6,VAR6,DRAWNULL),COLORGREEN;
TJ1:=VOL=HHV(VOL,10)ANDVOL>2*REF(VOL,1)ANDCLOSE>VAR1;
立桩量:=FILTER(TJ1,5);
TJ2:=IF(BARSLAST(立桩量)=1ANDCLOSE>REF(HIGH,1),1,IF(BARSLAST(立桩量)=2ANDCLOSE>REF(HIGH,2),1,IF(BARSLAST(立桩量)=3ANDCLOSE>REF(HIGH,3),1,0)));
突破:=TJ2=1;
STICKLINE(CLOSE,REF(HIGH,BARSLAST(立桩量)),REF(HIGH,BARSLAST(立桩量)),1,0),COLORCYAN;
STICKLINE(CLOSE,REF(LOW,BARSLAST(立桩量)),REF(LOW,BARSLAST(立桩量)),1,0),COLORYELLOW;
TJ3:=IF(BARSLAST(立桩量)=1ANDCLOSE>REF(LOW,1),1,IF(BARSLAST(立桩量)=2ANDCLOSE>REF(LOW,2),1,IF(BARSLAST(立桩量)=3ANDCLOSE>REF(LOW,3),1,0)));
三天法则:=TJ3=1;
成立:=三天法则AND突破;
条件成立:=FILTER(成立,3);
DRAWTEXT(条件成立,L*0.99,’成立’),COLORYELLOW;
DRAWTEXT(O<中线ANDC>短线ANDREF(C,1)<下跌,L*0.99,’买入’);
特别准的底部三角形突破选股指标公式截图
评论(0)