|
W姐,这是
主图代码:
N(1,300,20);
keltStdDev(0,10,1.5);
bolBandStdDev(0,10,2);
TR := MAX(MAX((HIGH-LOW),ABS(REF(CLOSE,1)-HIGH)),ABS(REF(CLOSE,1)-LOW));
ATR := MA(TR,N);
highBBChl : MA(C,N) + bolBandStdDev*STD(C,N),coloryellow;
lowBBChl : MA(C,N) - bolBandStdDev*STD(C,N),coloryellow;
centerLine : MA( C, N );
highKeltn : centerLine + keltStdDev * ATR,colorblue;
lowKeltn : centerLine - keltStdDev * ATR,colorblue;
副图代码:
N(1,300,20);
keltStdDev(0,10,1.5);
bolBandStdDev(0,10,2);
momP(1,100,12);
momEMA(1,100,5);
TR := MAX(MAX((HIGH-LOW),ABS(REF(CLOSE,1)-HIGH)),ABS(REF(CLOSE,1)-LOW));
ATR := MA(TR,N);
highBBChl := MA(C,N) + bolBandStdDev*STD(C,N),coloryellow;
lowBBChl := MA(C,N) - bolBandStdDev*STD(C,N),coloryellow;
centerLine := MA( C, N );
highKeltn := centerLine + keltStdDev * ATR,colorblue;
lowKeltn := centerLine - keltStdDev * ATR,colorblue;
AA:=highBBChl - highKeltn;
BB:0,circledot;
DRAWCIRCLE(AA==0,BB),COLORWHITE;
DRAWCIRCLE(AA>0,BB),COLORRED;
DRAWCIRCLE(AA<0,BB),COLORGREEN;
Mom := CLOSE-REF(CLOSE,momP);
MTM : MA(Mom, momEMA),COLORSTICK;
|
|