九毛八公式指标
SKD如何与下面的公式做在一个副图里? 要求:两个公式都不变形。 {SKD} VAR1:=(2*CLOSE+HIGH+LOW+OPEN)/5; VAR2:=LLV(LOW,34); VAR3:=HHV(HIGH,34); SK:EMA((VAR1-VAR2)/(VAR3-VAR2)*100,13); SD:EMA(SK,3); DRAWBAND(SK,RGB(250,0,0),SD,RGB(0,250,0)); {理想} VAR4:=C-REF(C,1); VAR5:=O-REF(O,10); VAR6:=H-REF(H,1); VAR7:=L-REF(L,1); VAR8:=(VAR4+VAR5*2+VAR6+VAR7)/5; 理想:=MA(VAR8,3)/100,LINETHICK0; STICKLINE(理想>0,理想,0,1.8,0), COLORRED; STICKLINE(理想<0,理想,0,1.8,0) ,COLORBLUE;
公式模块:
{Skd}
VAR1:=(2*CLOSE+HIGH+LOW+OPEN)/5; VAR2:=LLV(LOW,34); VAR3:=HHV(HIGH,34); SK:EMA((VAR1-VAR2)/(VAR3-VAR2)*100,13); SD:EMA(SK,3); DRAWBAND(SK,RGB(250,0,0),SD,RGB(0,250,0)); {理想} VAR4:=C-REF(C,1); VAR5:=O-REF(O,10); VAR6:=H-REF(H,1); VAR7:=L-REF(L,1); VAR8:=(VAR4+VAR5*2+VAR6+VAR7)/5; 理想:=MA(VAR5,3)/100,LINETHICK0; STICKLINE(理想>0,理想,0,1.8,0), COLORRED; STICKLINE(理想<0,理想,0,1.8,0) ,COLORBLUE; LOWV:=LLV(LOW,9); HIGHV:=HHV(HIGH,9); RSV:=EMA((CLOSE-LOWV)/(HIGHV-LOWV)*100,3); K:EMA(RSV,3); D:MA(K,3);