- UID
- 2
- 积分
- 2874674
- 威望
- 1387366 布
- 龙e币
- 1487308 刀
- 在线时间
- 13156 小时
- 注册时间
- 2009-12-3
- 最后登录
- 2024-11-24
|
[大智慧指标] [转载]量红绿灯+长短绿灯大智慧指标(副图,源码,贴图)
量红绿灯
- A:=MAX(MA(VOL,30),MA(VOL,60));
- B:=MIN(MA(VOL,30),MA(VOL,60));
- 绿灯行:VOL>A,COLORGREEN,LINETHICK0,PRECIS0;
- 红灯停:VOL<B,COLORRED,LINETHICK0,PRECIS0;
- 黄灯等:A>=VOL AND VOL>=B,COLORYELLOW,LINETHICK0,PRECIS0 ;
- STICKLINE(VOL>A,0,1,10,0),COLORGREEN,LINETHICK2;
- STICKLINE(VOL<B,0,1,10,0),COLORRED,LINETHICK2;
- STICKLINE(A>=VOL AND VOL>=B,0,1,10,0),COLORYELLOW,LINETHICK2;
复制代码
长短绿灯
- A:=MAX(MA(C,5),MA(C,10));
- B:=MIN(MA(C,5),MA(C,10));
- 绿灯行F5:C>A,COLORGREEN;
- 红灯停F5:=C<B;
- 黄灯观望F5:=C>=B AND C<=A;
- STICKLINE(C>A,3.3,4,10,0),COLORGREEN,LINETHICK2;
- STICKLINE(C<B,3.3,4,10,0),COLORRED,LINETHICK2;
- STICKLINE(C>=B AND C<=A,3.3,4,10,0),COLORYELLOW,LINETHICK2;
- F20A:=MAX(MA(C,10),MA(C,20));
- F20B:=MIN(MA(C,10),MA(C,20));
- 绿灯行F20:C>F20A,COLORGREEN;
- 红灯停F20:=C<F20B;
- 黄灯观望F20:=C>=F20B AND C<=F20A;
- STICKLINE(C>F20A,2.3,3,10,0),COLORGREEN,LINETHICK2;
- STICKLINE(C<F20B,2.3,3,10,0),COLORRED,LINETHICK2;
- STICKLINE(C>=F20B AND C<=F20A,2.3,3,10,0),COLORYELLOW,LINETHICK2;
- F30A:=MAX(MA(C,20),MA(C,30));
- F30B:=MIN(MA(C,20),MA(C,30));
- 绿灯行F30:C>F30A,COLORGREEN;
- 红灯停F30:=C<F30B;
- 黄灯观望F30:=C>=F30B AND C<=F30A;
- STICKLINE(C>F30A,1.3,2,10,0),COLORGREEN,LINETHICK2;
- STICKLINE(C<F30B,1.3,2,10,0),COLORRED,LINETHICK2;
- STICKLINE(C>=F30B AND C<=F30A,1.3,2,10,0),COLORYELLOW,LINETHICK2;
- F60A:=MAX(MA(C,60),MA(C,120));
- F60B:=MIN(MA(C,60),MA(C,120));
- 绿灯行F60:C>F60A,COLORGREEN;
- 红灯停F60:=C<F60B;
- 黄灯观望F60:=C>=F60B AND C<=F60A;
- STICKLINE(C>F60A,0,1,10,0),COLORGREEN,LINETHICK2;
- STICKLINE(C<F60B,0,1,10,0),COLORRED,LINETHICK2;
- STICKLINE(C>=F60B AND C<=F60A,0,1,10,0),COLORYELLOW,LINETHICK2;
-
- 大盘A:=MAX(MA(INDEXC,60),MA(INDEXC,120));
- 大盘B:=MIN(MA(INDEXC,60),MA(INDEXC,120));
- 绿灯行大盘:INDEXC>大盘A,COLORGREEN;
- 红灯停大盘:INDEXC<大盘B,COLORRED;
- 黄灯观望大盘:INDEXC>=大盘B AND INDEXC<=大盘A,COLORYELLOW;
- STICKLINE(INDEXC>大盘A,4.3,5,10,0),COLORGREEN,LINETHICK2;
- STICKLINE(INDEXC<大盘B,4.3,5,10,0),COLORRED,LINETHICK2;
- STICKLINE(INDEXC>=大盘B AND INDEXC<=大盘A,4.3,5,10,0),COLORYELLOW,LINETHICK2;
- XG:( 绿灯行F5 AND 绿灯行F20 AND 绿灯行F30 AND 绿灯行F60) =1;
- DRAWTEXTREL(10,3,'★绿灯行:大盘'),colorwhite,linethick1;
- DRAWTEXTREL(10,203,'★绿灯行:F5'),colorwhite,linethick1;
- DRAWTEXTREL(10,403,'★绿灯行:F20'),colorwhite,linethick1;
- DRAWTEXTREL(10,603,'★绿灯行:F30'),colorwhite,linethick1;
- DRAWTEXTREL(10,803,'★绿灯行:F60'),colorwhite,linethick1;
复制代码
|
论坛官方微信、群(期货热点、量化探讨、开户与绑定实盘)
|