修改的正反K线主图,个人感觉可以明显对比出是阴下跌趋势还是阳上涨趋势。希望有老师给优化优化。
{正反K线}
日:=100;
昨前:=3;
高1:=REF(HHV(H,日),昨前);
低1:=REF(LLV(L,日),昨前);
低:REFDATE(低1,DATE),COLORRED,LINETHICK2;
DRAWKLINE(低+(低-LOW), 低+(低-OPEN), 低+(低-HIGH),低+ (低-CLOSE));
VARC:=低+(低-OPEN);
WR1:=低+(HHV(HIGH,5)-CLOSE)/(HHV(HIGH,5)-LLV(LOW,5));
WR2:=低-(HHV(HIGH,5)-CLOSE)/(HHV(HIGH,5)-LLV(LOW,5));
M1:MA(C,5),COLORYELLOW;
M2:MA(C,10),COLORMAGENTA;
M3:MA(C,30),COLORGREEN;
M4:MA(C,60),COLORLIGRAY;
{M5:MA(C,120),COLORBLUE;}
{M1A:MA(VARC,5),COLORYELLOW;
M2B:MA(VARC,10),COLORMAGENTA;
M3C:MA(VARC,30),COLORGREEN;
M4D:MA(VARC,60),COLORLIGRAY;
M5E:MA(VARC,120);}
STICKLINE(C>OPEN,低+(低-OPEN), 低+ (低-CLOSE),3,0), COLORRED;
STICKLINE(C
STICKLINE(C>O ,C ,H ,0 ,0 ),COLORRED;
STICKLINE(C>O ,O ,L ,0 ,0 ),COLORRED;
STICKLINE(C
STICKLINE(C=O ,O ,H ,0 ,0 ),COLORWHITE;