【分时主图】在分时图上用颜色标识当前价和5日10日均线的关系
2016-2-3 15:20:46点击:
{分时主图}
{橙色线表示分时股价在5天均线下方}
{紫色线表示分时股价在10天均线下方}
FS:=PERIOD = 0;
DAYMA1:=MA.MA1#DAY;
DAYMA2:=MA.MA2#DAY;
T1:=MAX(DAYMA1,DAYMA2);
T2:=MIN(DAYMA1,DAYMA2);
IF(FS AND CLOSE<T1 AND DAYMA1=T1,CLOSE,DRAWNULL),LINETHICK2,COLOR4080FF;
IF(FS AND CLOSE<T2 AND DAYMA1=T1,CLOSE,DRAWNULL),LINETHICK2,COLORFF00FF;
IF(FS AND CLOSE<T1 AND DAYMA1=T2,CLOSE,DRAWNULL),LINETHICK2,COLORFF00FF;
IF(FS AND CLOSE<T2 AND DAYMA1=T2,CLOSE,DRAWNULL),LINETHICK2,COLOR4080FF;
{橙色线表示分时股价在5天均线下方}
{紫色线表示分时股价在10天均线下方}
FS:=PERIOD = 0;
DAYMA1:=MA.MA1#DAY;
DAYMA2:=MA.MA2#DAY;
T1:=MAX(DAYMA1,DAYMA2);
T2:=MIN(DAYMA1,DAYMA2);
IF(FS AND CLOSE<T1 AND DAYMA1=T1,CLOSE,DRAWNULL),LINETHICK2,COLOR4080FF;
IF(FS AND CLOSE<T2 AND DAYMA1=T1,CLOSE,DRAWNULL),LINETHICK2,COLORFF00FF;
IF(FS AND CLOSE<T1 AND DAYMA1=T2,CLOSE,DRAWNULL),LINETHICK2,COLORFF00FF;
IF(FS AND CLOSE<T2 AND DAYMA1=T2,CLOSE,DRAWNULL),LINETHICK2,COLOR4080FF;
- 上一篇:独醉买卖比资金排序源码 2016/2/3
- 下一篇:直捣老巢 蚂蚁上树 含苞待放三指标整合主图 副图 选股 2016/2/3