同花顺RSI趋势 买入参考副图源码
-
相关简介:注意紫色趋势线是否走平上翘,RSI6与RSI12出现金叉,买入参考 VAR1:=HHV(HIGH,33); VAR2:=LLV(LOW,33); A:=(SMA((CLOSE-VAR2)/(VAR1-VAR2),8,1))*(100),COLOR00FFFF; 价格线:EMA(HHV(A,3),1),colorgreen; va1:=(CLOSE-LLV(LOW,90))/(HHV(HIGH,90)-LLV(LOW,90))*100; va2:=SMA(va1,9,1),colorwhite;
-
文章来源:股海网作者:股海网发布时间:2017-10-14浏览次数:
注意紫色趋势线是否走平上翘,RSI6与RSI12出现金叉,买入参考
VAR1:=HHV(HIGH,33);
VAR2:=LLV(LOW,33);
A:=(SMA((CLOSE-VAR2)/(VAR1-VAR2),8,1))*(100),COLOR00FFFF;
价格线:EMA(HHV(A,3),1),colorgreen;
va1:=(CLOSE-LLV(LOW,90))/(HHV(HIGH,90)-LLV(LOW,90))*100;
va2:=SMA(va1,9,1),colorwhite;
趋势线:SMA(va2,6,1),colorff00ff;
va4:=3*va2-2*趋势线,colorff00ff;
撑压线:WMA((va2+趋势线+va4)/3,60),colorred;
LC:= REF(CLOSE,1);
RSI6:SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100,colorwhite;
RSI12:SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)*100,coloryellow;
卖线:85,LINETHICK02,POINTDOT,Color15FF15;
界线:50,LINETHICK02,POINTDOT,ColorFF1EFF;
买线:20,LINETHICK02,POINTDOT,Color28FFFF;
DRAWTEXT(CROSS(价格线,趋势线),价格线,'始');
DRAWTEXT(CROSS(趋势线,价格线),趋势线,'终');