以下是通达信RSV优化后牛逼公式

通达信RSV优化后牛逼公式

源码

RSV:=(((CLOSE – LLV(LOW,33)) / (HHV(HIGH,33) – LLV(LOW,33))) * 100);动能:SMA(RSV,7,1),COLORWHITE,LINETHICK2;运行:SMA(SMA(RSV,7,1),3,1),COLORBROWN,LINETHICK2;Y3:(((CLOSE/COST(13))<=0.8)*10),COLORBLACK;轨迹:SMA(SMA(SMA(RSV,6,1),5,1),3,1),COLORMAGENTA,LINETHICK2;DRAWTEXT(CROSS(动能,23),10,’机会’);
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;
 VAR11:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
 VAR12:=SMA(VAR11,3,1);
 VAR13:=SMA(VAR12,3,1);
 VAR14:=VAR13 AND VAR13<20;
 VAR21:=MA(CLOSE,5);
 VAR22:=MA(CLOSE,10);
 VAR23:=MA(CLOSE,20);
 VAR24:=MA(CLOSE,30);
 VAR25:=(VAR21+VAR22+VAR23+VAR24)/4;
 VAR26:=(VAR5-REF(VAR25,5))/REF(VAR25,5)*1500;
 VAR27:=(VAR25-REF(VAR25,5))/REF(VAR25,5)*1500;
 VAR28:=EMA(VAR26,8);
 VAR29:=TROUGHBARS(3,15,1)<10;
 VAR210:=PEAKBARS(3,15,1)<10;
 VAR211:=IF(VAR29=1,50,0);
 VAR212:=IF(VAR210=1,50,0);
底部勇于介入:IF(VAR211=50,50,0);
头部果断出局:IF(VAR212=50,100,0);
买入:IF( 底部勇于介入>REF(底部勇于介入,1),50,0),COLORRED;
 Q2:=(CLOSE-LLV(LOW, 18))/(HHV(HIGH, 18)-LLV(LOW, 18))*100;?
 Q3:=SMA(Q2, 9, 1);?
 Q4:=SMA(Q3, 3, 1);?
 VAR213:=PEAKBARS(3,15,1)<10;
 VAR215:=IF(VAR213=1,2,0);
顶:= IF(VAR215=2,2,0);
顶A:IF(顶>REF(顶,1),50,0),COLORGREEN;
 DRAWTEXT(顶A=50,45,’快跑’),COLOR00FF00;
 

 

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。