监庄金樽源码
原理解析:
源码:
Var1:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;
Var2:=SMA(Var1,20,1);
Var3:=SMA(Var2,15,1);
Var4:=(3*Var2+2*Var3)/4;
Var5:= REF(Var4,1);
RSA:SMA(MAX(Var4-Var5,0),2,1)/SMA(ABS(Var4-Var5),2,1)*100;
RSB:MA(RSA,10);
初升介入:IF(CROSS(RSA,RSB),50,0),STICK,LINETHICK2;
洗盘加仓:IF(CROSS(RSB,90),50,0),STICK,LINETHICK2;
{DRAWTEXT(CROSS(RSA,RSB),-15,'初升介入'),colorblue;
DRAWTEXT(CROSS(RSB,90),-15,'洗盘加仓'),COLOR00FFFF;
}
-30;
TIPTEXT(ISNULL(REFX(CLOSE,1)),0,' '),colorred;
TIPTEXT(ISNULL(REF(CLOSE,1)),0,'同花顺程序化交易')