主力做多 多空趨勢線公式
MTM:=C-REF(C,1);
主力做多:100*EMA(EMA(MTM,12),12)/EMA(EMA(ABS(MTM),12),12),COLORWHITE;
多空趨勢線:MA(主力做多,6),COLORYELLOW;
能量:=主力做多-多空趨勢線,COLORBLACK;
持倉:能量,COLORRED;
STICKLINE( UPNDAY(能量,1)AND UPNDAY(主力做多,1),能量 ,0,2.9,0)COLORRED;
STICKLINE( UPNDAY(能量,1)AND UPNDAY(主力做多,1),能量 ,0,2,0)COLORLIRED;
STICKLINE( UPNDAY(能量,1)AND UPNDAY(主力做多,1),能量,0,0.5,0)COLORWHITE;
STICKLINE( UPNDAY(能量,1)AND DOWNNDAY(主力做多,1),能量 ,0,2.9,0),COLORGRAY;
STICKLINE( UPNDAY(能量,1)AND DOWNNDAY(主力做多,1),能量,0,1,0),COLORLIGRAY;
STICKLINE( UPNDAY(能量,1)AND DOWNNDAY(主力做多,1),能量 ,0,0.5,0)COLORWHITE;
STICKLINE( DOWNNDAY(能量,1),能量 ,0,2.9,0),COLORGRAY;
STICKLINE( DOWNNDAY(能量,1),能量,0,1,0),COLORLIGRAY;
STICKLINE( DOWNNDAY(能量,1),能量 ,0,0.5,0)COLORWHITE;
{DRAWICON(CROSS(主力做多,多空趨勢線),多空趨勢線,1);
DRAWICON(CROSS(多空趨勢線,主力做多),多空趨勢線,2);
}
DRAWICON(UPNDAY(能量,1)AND UPNDAY(主力做多,1),多空趨勢線,1);
DRAWICON(CROSS(多空趨勢線,主力做多),多空趨勢線,2);
|