:="" -webkit-text-stroke-width:="" white-space:="" word-spacing:="" 0px;"="">當根K線的最低值:="" -webkit-text-stroke-width:="" white-space:="" word-spacing:="" 0px;"="">2,:="" -webkit-text-stroke-width:="" white-space:="" word-spacing:="" 0px;"="">取最近一次金叉包含當根K線5根之內的最低值,和前一次金叉:="" -webkit-text-stroke-width:="" white-space:="" word-spacing:="" 0px;"="">包含當根K線5根之內的最低值:="" -webkit-text-stroke-width:="" white-space:="" word-spacing:="" 0px;"="">:="" -webkit-text-stroke-width:="" white-space:="" word-spacing:="" 0px;"="">:="" -webkit-text-stroke-width:="" white-space:="" word-spacing:="" 0px;"="">老師,寫這么兩個公式,分別代表當根的值和5根K線之內的值?
?
網友回復:1.參考:
?
DIFF:EMA(CLOSE,12) - EMA(CLOSE,26);
DEA:EMA(DIFF,9);
MACD:2*(DIFF-DEA),COLORSTICK;
JC:=CROSS(DIFF,DEA);
VALUEWHEN(JC,L);
REF(L,SUMBARS(JC,2)-1);
2.參考:
?
DIFF:EMA(CLOSE,12) - EMA(CLOSE,26);
DEA:EMA(DIFF,9);
MACD:2*(DIFF-DEA),COLORSTICK;
JC:=CROSS(DIFF,DEA);
VALUEWHEN(JC,LLV(L,5));
REF(LLV(L,5),SUMBARS(JC,2)-1);