热热色 文采财经主图意见K线变色公式源码
DEA : EMA(DIFF,15)热热色,COLORYELLOW,LINETHICK2;
MACD:=2*(DIFF-DEA),COLORSTICK;
日本动漫JC:=CROSS(DIFF,DEA);
SC:=CROSSDOWN(DIFF,DEA);
CROSS(DIFF,DEA),SOUND('A');
CROSSDOWN(DIFF,DEA),SOUND('B');
DRAWTEXT(CROSS(DIFF,DEA),DIFF,'↑'),COLORWHITE,FONTSIZE72,VALIGN0;
DRAWTEXT(CROSSDOWN(DIFF,DEA),DIFF,'↓'),COLORYELLOW,FONTSIZE72,VALIGN2;
N1:=BARSLAST(JC)+1;热热色
N2:=BARSLAST(SC)+1;
HH:=VALUEWHEN(CROSSDOWN(DIFF,DEA),HHV(H,N1));//前次MACD红柱时辰合约最大值
HH2:=VALUEWHEN(CROSSDOWN(DIFF,DEA),REF(HH,1));//上前次MACD红柱时辰合约最大值
MHD:=VALUEWHEN(CROSSDOWN(DIFF,DEA),HHV(MACD,N1));//前次MACD红柱时辰MACD最大值
MHD2:=VALUEWHEN(CROSSDOWN(DIFF,DEA),REF(MHD,1));//上前次MACD红柱时辰MACD最大值
LL:=VALUEWHEN(CROSS(DIFF,DEA),LLV(L,N2));//前次MACD绿柱时辰合约最小值
LL2:=VALUEWHEN(CROSS(DIFF,DEA),REF(LL,1));//上前次MACD绿柱时辰合约最小值
MLD:=VALUEWHEN(CROSS(DIFF,DEA),LLV(MACD,N2));//前次MACD绿柱时辰MACD最小值
MLD2:=VALUEWHEN(CROSS(DIFF,DEA),REF(MLD,1));//上前次MACD绿柱时辰MACD最小值
A:=CROSSDOWN(DIFF,DEA)&&HH>HH2&&MHD<MHD2;//顶背离
B:=CROSS(DIFF,DEA)&&LL<LL2&&MLD>MLD2;//底背离
DRAWTEXT(A,DIFF,'顶背'),COLORGREEN,FONTSIZE21;
DRAWTEXT(B,DIFF,'底背'),COLORWHITE,FONTSIZE21;
STICKLINE(MACD>0&&MACD>REF(MACD,1),0,MACD,COLORRED,0);
STICKLINE(MACD<0&&MACD<REF(MACD,1),0,MACD,COLORGREEN,0);
图片热热色
本站仅提供存储奇迹,总共本色均由用户发布,如发现存害或侵权本色,请点击举报。