指标(不太准)奇妙的规避了小波,只做大波,却到达了大赚小赔(根本只赚不赔),熊市不但躲过了风险,还能赢利!
9 _: I3 X; A3 ]* n5 N6 E5 Y简单版源码:粗黄线内做波段,双黄线全仓,单黄线半仓
& Y/ V3 P/ ?2 ? S: R+ \{太阳操盘主图}6 B2 J4 {6 [& _" W6 U
FL:MA(CLOSE,17)+ABS(MA(CLOSE,17)-REF(MA(CLOSE,17),2)),PRECIS2,colorf4e202;* f9 a6 J4 p3 j7 p3 `1 S
FS:MA(CLOSE,17)+MA(CLOSE,17)-REF(MA(CLOSE,17),2),PRECIS2,colorf4e202,linethick1;
/ r$ O! L/ a% p6 sCG:IF(MA(CLOSE,17) 79)),MM,0);
3 E6 [; s/ T& r" D1 F2 BDRAWicon(DB,(HIGH * 1.005),2);% n e. M9 m& d" H9 ~" ]$ l; B9 Q
DRAWTEXT(DB,(HIGH * 1.05),'减仓'),LINETHICK2,colorFF6699;
`8 f! u$ o( n8 C4 m% `. L Q
4 ~+ m7 o/ D1 c' J, q" M# n5 h9 M+ F5 u" h
{太阳仓位副图}/ E3 i6 a: ^% V
{参数1 p1: 5, 2 ,20}, L; D4 V# a, b, m% ?
{参数2 p2: 4, 2 ,20}
: @1 g: M! ^% z* G3 s减仓线:70, POINTDOT,COLOryellow;* Q" v7 Z+ L" @ \% ^; A6 e
增仓线:45, POINTDOT,colorf4e202;
`/ D) T1 O) r% i7 Z% _( evar1:=LLV(LOW,P1);; a; b" e! w7 g: c, {' Z8 t* v
var2:=HHV(HIGH,P1);& j/ _: R& k% W. r6 Y
黄线上穿增: EMA((CLOSE-var1)/(var2-var1)*100,P2),COLOryellow,LINETHICK1;
! m3 |+ H6 F# a& }, D. n黄线下穿减: EMA(0.667*REF(黄线上穿增,1)+0.333*黄线上穿增,2),colorf4e202,LINETHICK1;, x. t2 q V/ r9 w2 Y
FL:=MA(CLOSE,17)+ABS(MA(CLOSE,17)-REF(MA(CLOSE,17),2));
: m8 d5 t, R# i4 g9 YFS:=MA(CLOSE,17)+MA(CLOSE,17)-REF(MA(CLOSE,17),2);
. v5 T3 K5 p, j kCG:=IF(MA(CLOSE,17) |