{LEE氏博弈
技术指标公式:LEE氏博弈 (机构做庄意愿、量能!大盘生命指数、量能!) 缺省周期:日线}
{参数描述: N(2,300,26)N1(1,100,34)M(1,100,3)}
input:n(26),n1(34),m(3);
做庄意愿: SUM(HIGH-OPEN,N)/SUM(OPEN-LOW,N)*8,linethick2 ;
Var1:=EMA(VOL/CAPITAL,21)*13;
Var2:=100-100/(1+Var1);
主力能量: Var2/2,linethick2 ;
大盘指数: EMA(100*(CLOSE-LLV(LOW,N1))/(HHV(HIGH,N1)-LLV(LOW,N1)),M)/4, linethick2 ;
Var3:=21;
Var4:=10;
大盘量能: IF(大盘指数>23.16,大盘指数,0),colorred ,linethick2 ;
DRAWTEXT(CROSS(大盘指数,Var3),18,'卖出'),colorgreen ;
DRAWTEXT(CROSS(大盘指数,主力能量),15,'买入'),colorred ;
Var5:=(3*HIGH+LOW+OPEN+2*CLOSE)/7;
绝对成本:=IF(DATE<1841231,DMA(Var5,VOL/CAPITAL),0);
DRAWTEXT(CROSS(大盘指数,绝对成本),15,'买入'),colorred;