请帮忙:MACD在0轴下,前有至少3根绿柱,然后绿柱第一次缩短标记1号图标,第二根不标,怎样表达。。。
爱约股解答:
{单独选股或副图}
A:=BARSLAST(CROSS(0,"MACD.MACD"));
B:=COUNT("MACD.MACD"<REF("MACD.MACD",1),A+1)=A+1;
CROSS(0.5,B) AND A>=3;
{加到MACD指标后面}
A:=BARSLAST(CROSS(0,MACD));
B:=COUNT(MACD<REF(MACD,1),A+1)=A+1;
D:=CROSS(0.5,B) AND A>=3;