同花顺公式源码 同花顺短线宝指标(源码):
VAR1:=(2*CLOSE+HIGH+LOW+OPEN)/5; VAR2:=LLV(LOW,21); VAR3:=HHV(HIGH,21); SK: EMA((VAR1-VAR2)/(VAR3-VAR2)*100,5); SD: EMA(0.667*REF(SK,1)+0.333*SK,4); VAR4:=IF(CROSS(SD,SK) AND SK》=60,60,76); VAR5:=IF(CROSS(SK,20) OR CROSS(SK,SD) AND SK》20,20,5); 买进: VAR5; 卖出: VAR4; 高抛: 80, POINTDOT; 低吸: 20, POINTDOT; 强弱: 50, POINTDOT; VAR6:=LLV(LOW,55); VAR7:=HHV(HIGH,34); VAR8:=EMA((VAR1-VAR6)/(VAR7-VAR6)*100,3); VAR9:=(SK+VAR8)/2; VARA:=EMA(0.667*REF(VAR8,1)+0.333*SK,2); VARB:=EMA(VAR9,5); VARC:=EMA(0.667*REF(VARB,1)+0.333*VARB,2); IF(VARB》=40,20,0); DRAWTEXT(CROSS(SK,SD),SK,‘始’); DRAWTEXT(CROSS(SD,SK),SD,‘终’);
|
(股票知识网zhishi.southmoney.com)