DIFF:(EMA(CLOSE,12)-EMA(CLOSE,26));
DEA:EMA(DIFF,9);
MACD:(2*(DIFF-DEA)),COLORSTICK;
SC:=CROSS(DEA,DIFF);
SC1:=SUMBARS(SC,1);
JC:=CROSS(DIFF,DEA);
JC1:=SUMBARS(JC,1);
JC2:=SUMBARS(JC,2);
A11:=(MACD=LLV(MACD,SC1));
A12:=BACKSET(A11,SC1);
A13:(REF(A12,1) and (A12=0));
A14:SUMBARS(A13,1);
DIFF:(EMA(CLOSE,12)-EMA(CLOSE,26));
DEA:EMA(DIFF,9);
MACD:(2*(DIFF-DEA)),COLORSTICK;
SC:=CROSS(DEA,DIFF);
SC1:=SUMBARS(SC,1); {上一次DEA上穿DIFF到当前的天数}
JC:=CROSS(DIFF,DEA);
JC1:=SUMBARS(JC,1); {上一次DIFF上穿DEA到当前的天数}
JC2:=SUMBARS(JC,2); {DIFF2次上穿DEA中前面那次到当前的天数}
A11:=(MACD=LLV(MACD,SC1));
A12:=BACKSET(A11,SC1); {这里的BACKSET(A11,SC1)属未来函数,是将近期MACD最低点设为1}
A13:(REF(A12,1) and (A12=0));
A14:SUMBARS(A13,1);追问
DEA:EMA(DIFF,9);
MACD:(2*(DIFF-DEA)),COLORSTICK;
SC:=CROSS(DEA,DIFF);
SC1:=SUMBARS(SC,1); {上一次DEA上穿DIFF到当前的天数}
JC:=CROSS(DIFF,DEA);
JC1:=SUMBARS(JC,1); {上一次DIFF上穿DEA到当前的天数}
JC2:=SUMBARS(JC,2); {DIFF2次上穿DEA中前面那次到当前的天数}
A11:=(MACD=LLV(MACD,SC1));
A12:=BACKSET(A11,SC1); {这里的BACKSET(A11,SC1)属未来函数,是将近期MACD最低点设为1}
A13:(REF(A12,1) and (A12=0));
A14:SUMBARS(A13,1);追问
后面A13和A14,A11逐句解释一下啊
追答A11:=(MACD=LLV(MACD,SC1));{MACD近期最低值}
A13:(REF(A12,1) and (A12=0));{当昨日A12=1 同时今日A12=0时,A13=1否则A13=0}
A14:SUMBARS(A13,1);{最近一次A13=1时到当前的天数}
温馨提示:答案为网友推荐,仅供参考