盘立方期货多空波段幅图指标公式源码:红柱是涨,绿柱是跌,顶部和底部线预测超买和超卖区
X:=50;
N1:=7;
N2:=14;
LC := REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100;
RSI2:=SMA(MAX(CLOSE-LC,0),N2,1)/SMA(ABS(CLOSE-LC),N2,1)*100;
VAR2:=LLV(LOW,10);
VAR3:=HHV(HIGH,25);
阶卖: 3.2,RGB(0,120,0);
清卖: 3.5,COLORFF75FF;
顶卖: 3.7,COLORRED;
动力线:= EMA((CLOSE-VAR2)/(VAR3-VAR2)*4,4);
STICKLINE(动力线>REF(动力线,2) ,动力线 ,REF(动力线,2),3 ,0),COLORRED;
STICKLINE(动力线<=REF(动力线,2) ,动力线 ,REF(动力线,2),3 ,0),COLOR00FF00;
底部:0.2,COLORGREEN;
关注:0.5,RGB(255,128,64);
DRAWICON( CROSS(动力线,关注)&&CROSS(RSI1,X),动力线+0.02 ,1);
DRAWICON( CROSSDOWN(动力线,清卖)&&CROSS(RSI1,X),动力线+0.02 ,2);
DRAWICON( CROSS(动力线,1)&&RSI1>X,动力线+0.02 ,1);
DRAWICON( CROSS(动力线,2)&&RSI1>X,动力线+0.02 ,1);
DRAWICON( CROSS(动力线,3)&&RSI1>X,动力线+0.02 ,1);
DRAWICON( CROSSDOWN(动力线,1)&&RSI1<X,动力线+0.02 ,2);
DRAWICON( CROSSDOWN(动力线,2)&&RSI1<X,动力线+0.02 ,2);
DRAWICON( CROSSDOWN(动力线,3)&&RSI1<X,动力线+0.02 ,2);
强弱:1.75,POINTDOT,LINETHICK2,COLORMAGENTA;
数值:动力线,RGB(0,120,0);