凑出一个主图指标
-
相关简介:C/C++ Code 复制内容到剪贴板 LC1:=SMA(C,2,1); TCRSI:=SMA(MAX(CLOSE-LC1,0),6,1)/SMA(ABS(CLOSE-LC1),6,1)*100; LC2:=SMA(H,2,1); THRSI:=SMA(MAX(H-LC2,0),6,1)/SMA(ABS(H-LC2),6,1)*100; LC3:=SMA(O,2,1); TORSI:=SMA(MAX(O-LC3,0),6,1)/SMA(ABS(O-LC3),6,1)*10
-
文章来源:择股网作者:股海网发布时间:2009-11-16浏览次数:
C/C++ Code复制内容到剪贴板
- LC1:= SMA(C,2,1);
- TCRSI:=SMA(MAX(CLOSE-LC1,0),6,1)/SMA(ABS(CLOSE-LC1),6,1)*100;
- LC2:= SMA(H,2,1);
- THRSI:=SMA(MAX(H-LC2,0),6,1)/SMA(ABS(H-LC2),6,1)*100;
- LC3:= SMA(O,2,1);
- TORSI:=SMA(MAX(O-LC3,0),6,1)/SMA(ABS(O-LC3),6,1)*100;
- LC4:= SMA(L,2,1);
- TLRSI:=SMA(MAX(L-LC4,0),6,1)/SMA(ABS(L-LC4),6,1)*100;
- TVAR:=SMA(((10000 * CLOSE) / INDEXC),2,1);
- 『大盘关联』:=SMA(MAX(((10000 * CLOSE) / INDEXC)-TVAR,0),6,1)/SMA(ABS(((10000 * CLOSE) / INDEXC)-TVAR),6,1)*100;
- TTRSI:=(TCRSI+TORSI+THRSI+TLRSI+『大盘关联』)/5;
- 分:=CONST(LLV(TTRSI,90)); 百:=CONST(HHV(TTRSI,90))-分;
- 基点:=CONST(LLV(L,90)); 基:=CONST(HHV(H,90))-基点;
- CC比:=(TTRSI-分)/百; XCX:=CC比*基+基点;
- QW:XCX,LINETHICK2;
- 参考线:=EMA(EMA(TTRSI,6),5);
- 中轨: MA(QW,26),COLORRED,LINETHICK2;
- 上轨: 中轨+ 2*STD(QW,26),LINETHICK1,COLORFFBB00;
- DRAWBAND(上轨,RGB(50,50,130),中轨,RGB(00,00,100));
- 下轨: 中轨- 2*STD(QW,26),LINETHICK1,COLOR00FF00;
- DRAWBAND(下轨,RGB(40,50,50),中轨,RGB(00,00,100));
- 底关注:STICKLINE(TTRSI<=20,下轨*0.99,下轨,5,0),COLORFF00FF;
- 买关注:STICKLINE(参考线<=20,下轨*1.01,下轨,5,0),COLOR0000FF;
- 顶关注:STICKLINE(TTRSI>=80,上轨*0.99,上轨,5,0),COLOR00FF00;
- 卖关注:STICKLINE(参考线>=80,上轨*0.99,上轨,5,0),COLORFF0000;
- QW,LINETHICK2;
- JZZ:=MA(C,500);
- VAR1:=SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),25);
- VAR2:=HIGH-REF(HIGH,1);
- VAR3:=REF(LOW,1)-LOW;
- VAR4:=SUM(IF(VAR2>0 AND VAR2>VAR3,VAR2,0),25);
- VAR5:=SUM(IF(VAR3>0 AND VAR3>VAR2,VAR3,0),25);
- VAR6:=VAR4*100/VAR1;
- VAR7:=VAR5*100/VAR1;
- VAR8:=MA(ABS(VAR7-VAR6)/(VAR7+VAR6)*100,15);
- VAR9:=(VAR8+REF(VAR8,15))/2;
- A:JZZ*(VAR7>VAR6 AND VAR7>25 AND VAR6<25);
- B:=ZIG(3,50/5),COLORWHITE;
- G:=MA(B,2),COLORYELLOW;
- D:=CROSS(B,G),COLORRED;
- W:=CROSS(G,B),COLORBLUE;
- VAR11:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
- VAR12:=SMA(VAR11,3,1);
- VAR13:=SMA(VAR12,3,1);
- VAR14:JZZ*(VAR13 AND VAR13<20);
- MM:JZZ*(A AND D AND VAR14 );
- AC:=CLOSE;
- AH:=HIGH;
- AL:=LOW;
- AO:=OPEN;
- 快线:EMA((CLOSE+LOW)/2,8);
- 均衡:EMA(EMA((CLOSE+LOW)/2,20),8);
- STICKLINE(快线>均衡,快线,均衡,0.1,0),COLORRED;
- STICKLINE(快线<均衡,快线,均衡,0.1,0),COLORWHITE;
- 强弱:EMA(EMA((LOW+CLOSE+HIGH)/3,25),25),COLORRED,LINETHICK2;
- DRAWKLINE(H,O,L,C);