大智慧分图时叠加k线指标

2011-03-05 10:30:00来源:本站整理浏览:107

大智慧分图时叠加k线
参数名       缺省     最小        最大
  n         20      5         26
  p         2      0.1       10

MID :  MA(CLOSE,N),POINTDOT,LINETHICK2;
UPPER: MID + P*STD(CLOSE,N),POINTDOT,LINETHICK1;
LOWER: MID - P*STD(CLOSE,N),POINTDOT,LINETHICK1;



STICKLINE(close>=open,open,close,5,1),colorred;
STICKLINE(open>close,close,open,5,0 ),colorgreen;
STICKLINE(close>=open,close,HIGH,0.5 ,1 ),colorred;
STICKLINE(close>=open,open,low,0.5 ,1 ),colorred;
STICKLINE(open>close,close,low,0.5 ,0 ),colorgreen;
STICKLINE(open>close,open,HIGH,0.5 ,0 ),colorgreen;



TY:=C;
A1:=REF(TY,10)=HHV(TY,2*10+1); B1:=FILTER(A1,10); C1:=BACKSET(B1,10+1); HD:=FILTER(C1,10);
A2:=REF(TY,10)=LLV(TY,2*10+1); B2:=FILTER(A2,10); C2:=BACKSET(B2,10+1); LD:=FILTER(C2,10);
A:=REF(C,BARSLAST(HD)); B:=REF(C,BARSLAST(LD));
t1:=BARSLAST(HD)<BARSLAST(LD) AND NOT(HD) ;
t2:=BARSLAST(HD)>BARSLAST(LD) AND NOT(LD);
波峰:IF(t1,A,A),ColorFF00FF,POINTDOT;
STICKLINE(t1,A,A,9,0),Color80FF00;
波谷:IF(t2,B,B),Color80FF00,POINTDOT;
STICKLINE(t2,B,B,9,0),ColorFF00FF;

 

股票公式栏目导航

精品指标推荐

最新热门

本类随机推荐

相关公式