动能公式简箪
2016/12/1 15:11:33点击:
dim0:0;
dim100:100;
dim_100:-100;
S:=FROMNIGHT;
s1:FROMOPEN;
n=IF(FROMOPEN<30,tn,1000);
Sw=MONEY/LTSZ*10000*((CLOSE-REF(CLOSE,1))/REF(CLOSE,1));
w:IF(sw>=0,SQRT(sw),-SQRT(-sw));
DW:w-REF(w,1);
fwX:IF(s=0 AND FROMOPEN>1,w*241/FROMOPEN*n/1000,w);
H:MA(HHV(w,t1),t2);
L:MA(LLV(w,t1),t2);
H2:MA(HHV(w,t1),t2)*2;
L2:MA(LLV(w,t1),t2)*2;
STICKLINE(1,0,fwx,7,-2),RGB(255,255,0);
STICKLINE(w>=0 AND w>=H2,0,w,7,1),colorred;
STICKLINE(w>=0 AND w<H2,0,w,7,1),colorwhite;
STICKLINE(w<0 AND w<L2,0,w,7,0),colorgreen;
STICKLINE(w<0 AND w>=L2,0,w,7,1),colorwhite;
STICKLINE(w>=0 AND dw>=0,0,dw,2,0),RGB(255,0,0);
STICKLINE(w<0 AND dw<0,0,dw,2,0),RGB(0,255,0);
STICKLINE(w>=0 AND dw<0,0,dw,2,0),RGB(0,255,255);
STICKLINE(w<0 AND dw>=0,0,dw,2,0),RGB(255,255,0);
sz:EMA(SUM(w,8),3);