龙听期货论坛's Archiver

龙听 发表于 2019-1-3 14:27

主图指标公式指标公式公式、源码[大智慧公式]

[code]
TY:=C;
Aa1:=REF(TY,10)=HHV(TY,2*10+1); B1:=FILTER(Aa1,10); C1:=BACKSET(B1,10+1); HD:=FILTER(C1,10);
Aa2:=REF(TY,10)=LLV(TY,2*10+1); B2:=FILTER(Aa2,10); C2:=BACKSET(B2,10+1); LD:=FILTER(C2,10);
A:=REF(TY,BARSLAST(HD)); B:=REF(LOW,BARSLAST(LD));
T1:=BARSLAST(HD)<BARSLAST(LD) AND NOT(HD) ;
T2:=BARSLAST(HD)>BARSLAST(LD) AND NOT(LD);
顶:(IF(T1,A,A)),COLORgreen,pointdot,linethick2;
底:(IF(T2,B,B)),COLOR999999,pointdot,linethick2;

CY:=CYC(5);
PARTLINE(CY,CY>=REF(CY,1) ,RGB(255,255,0),CY<REF(CY,1),RGB(0,0,255)),linethick1;

a:=(3*c+l+o+h)/6;
aa:=(20*a+19*ref(a,1)+18*ref(a,2)+17*ref(a,3)+16*ref(a,4)+15*ref(a,5)+
14*ref(a,6)+13*ref(a,7)+12*ref(a,8)+11*ref(a,9)+10*ref(a,10)+9*ref(a,11)+8*ref(a,12)
+7*ref(a,13)+6*ref(a,14)+5*ref(a,15)+4*ref(a,16)+3*ref(a,17)+2*ref(a,18)+
ref(a,20))/210;
PARTLINE(AA,AA>=REF(AA,1),RGB(255,255,0),AA<REF(AA,1),RGB(0,0,200)),linethick2;
[/code]
[attach]6229[/attach]

页: [1]