通达信主图指标--涨跌停K线原码
{牛牛指标网提供:www.tdx001.com}
C/C++ Code复制内容到剪贴板
- {M1 2 1000 5 M2 2 1000 10 M3 2 1000 20 M4 2 1000 60 M5 2 1000 120 M6 2 1000 240}
- MA1:MA(CLOSE,M1);
- MA2:MA(CLOSE,M2);
- MA3:MA(CLOSE,M3);
- MA4:MA(CLOSE,M4);
- MA5:MA(CLOSE,M5);
- MA6:MA(CLOSE,M6);
- C2:=REF(C,1);
- 涨停:=IF((C-C2)*100/C2>=(10-0.01*100/C2),1,0);
- STICKLINE(涨停,OPEN,CLOSE,2,0),COLORRED;
- STICKLINE(涨停,H,L,0,0),COLORRED;
- 跌停:=IF((C2-C)*100/C2>=(10-0.01*100/C2),1,0);
- STICKLINE(跌停,OPEN,CLOSE,2,0),COLORGREEN;
- STICKLINE(跌停,H,L,0,1),COLORGREEN;
6C123632944.jpg
|