通达信YLFS均线主图原码,牛熊市判别
{牛牛指标网提供:www.tdx001.com}
复制内容到剪贴板
- {主图:一路发市 ; YLFS ; 始创及版权属于JIPGEMLING.见凌见};
- {参数:N(-3,3,0) ; N--微调牛熊线带周期};
- {类型:均线,趋势型;牛熊市判别;资金—时间—价值};
- {用法:日,周,月,季线周期适合牛熊市判别,其他周期线未定义};
-
- {1__构造牛熊带};
- N1:=9+N;N2:=36+4*N;N3:=153+20*N;
- E5:=(EMA(CLOSE,4)+EMA(CLOSE,5))/2;
- A5:=(MA(CLOSE,4)+MA(CLOSE,5))/2;
- E9:=EMA(CLOSE,N1);A9:=MA(CLOSE,N1);
- E36:=EMA(CLOSE,N2);A36:=MA(CLOSE,N2);
- E153:=EMA(CLOSE,N3);A153:=MA(CLOSE,N3);
- ZQ:=PERIOD;
- MX:=IF(ZQ=10,A5,IF(ZQ=7,A9,IF(ZQ=6,A36,A153)));
- EX:=IF(ZQ=10,E5,IF(ZQ=7,E9,IF(ZQ=6,E36,E153)));
- NX带_5_9_36_153:DRAWBAND(MX,RGB(16,166,68),EX,RGB(168,18,38));
- JDS:=BARSLAST(CROSS(EX,MX)+CROSS(MX,EX));
- FJTJ:=(ZQ>4)AND (ZQ!=8)AND (ZQ!=9)AND (ZQ!=11);
- 牛红柿子:DRAWICON(CROSS(CLOSE,MX)*FJTJ,LOW*0.998,17);
- 熊绿柿子:DRAWICON(CROSS(MX,CLOSE)*FJTJ,LOW*0.998,16);
- KX:DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
- 变盘预备跑步:DRAWICON(JDS=0,EX,15),COLORGREEN;
- {2__JIPGEMLING.见凌见均线};
- M5:A5,COLORDDDDDD;
- M9:A9,COLOR13EEEE;
- M14:MA(CLOSE,14),COLOREE33EE;
- M22:MA(CLOSE,22),COLOR13EE13;
- M36:A36,COLOR999999;
- M58:MA(CLOSE,58),COLORD13813;
- M94:MA(CLOSE,94),COLOREEEEEE;
- M153:A153,COLOR33DEEF;
- M248:MA(CLOSE,248),COLOREE33EE;
- M400:MA(CLOSE,400),COLOR33EE33;
- {END};
-
167952954.gif
|