源碼如下,一共是3個指標公式: 1,KDJ之和源碼: TJ1:=(CLOSE+LLV(LOW,9))/2; TJ2:=(HHV(HIGH,9)+LLV(LOW,9))/2; TJ3:EMA((TJ1+TJ2)/2,3),COLORRED; KK:SMA(TJ3,3,1),COLORBLUE; DD:SMA(KK,3,1),COLORCYAN; JJ:EMA((KK+DD)/2,3),COLORGREEN,COLORSTICK; 2,MACD之和源碼: TJ1:(EMA(CLOSE,12)+EMA(CLOSE,26))/2; TJ2:EMA(TJ1,9); TJ3:EMA(((TJ1+TJ2)/2),3),COLORSTICK; 3,TRIX之和源碼: TJ1:=EMA(EMA(EMA(CLOSE,13),1),3);TJ2:=(TJ1+REF(TJ1,1))/2; TJ3:=(TJ2+REF(TJ2,1))/2; TJ4:(TJ3+REF(TJ3,1))/2; TJ5:(TJ4+REF(TJ4,1))/2; TJ6:MA(TJ5,13),COLORSTICK; |
|