在线检测未来函数

通达信能量私募顶底指标公式

来源:Internet,编辑:股旁网,2019-02-22

VAR0:=(2*CLOSE+HIGH+LOW)/4;
VAR1:=(HHV(HIGH,24)-CLOSE)/(HHV(HIGH,24)-LLV(LOW,24))*100;
VAR2:=(CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100;
B:=EMA((VAR0-LLV(LOW,26))/(HHV(HIGH,34)-LLV(LOW,26))*100,16);
AA:SMA(SMA(VAR2,2,1)+3,2,1),COLORRED,LINETHICK1;
浮筹:=EMA(B,4),LINETHICK1,DOTLINE,COLORYELLOW;
BB:SMA(VAR1,3,1),COLORGREEN,LINETHICK1;
{背景}
STICKLINE(AA>BB,10,90,5,0),COLOR000066;
STICKLINE(BB>AA,10,90,5,0),COLOR003300;
多方:SMA(SMA(VAR2,2,1)+3,2,1),COLORMAGENTA,LINETHICK2;
空方:SMA(VAR1,3,1),COLORGREEN,LINETHICK2;
强势线:90,COLORMAGENTA,DOTLINE;
中轴线: 50,COLORWHITE,DOTLINE;
弱势线:10,COLORLICYAN,DOTLINE;
STICKLINE(多方>强势线,多方,强势线,1,0),COLORRED;
STICKLINE(多方<弱势线,多方,弱势线,1,0),COLORRED;
STICKLINE(空方<弱势线,空方,弱势线,1,0),COLORGREEN;
STICKLINE(空方>强势线,空方,强势线,1,0),COLORGREEN;
STICKLINE(多方>浮筹,4,6,1,0),COLORRED;
STICKLINE(多方<浮筹,4,6,1,0),COLORGREEN;
{私募顶底}
趋势:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);
见底:=10;
见顶:=90;
短期底部:=crOSS(趋势,见底),COLORRED;
STICKLINE(短期底部,4,40,1,0),COLORRED;
DRAWTEXT(CROSS(趋势,见底),40,'底');
短期顶部:=CROSS(见顶,趋势),COLORGREEN;
STICKLINE(短期顶部,4,40,1,0),COLORGREEN;
DRAWTEXT(CROSS(见顶,趋势),40,'顶'),COLORYELLOW;

通达信能量私募顶底指标公式

相关文章