源码如下:
{需要定义变量——N:1,1000,200;M:1,34,13}
时间之窗:=HHVBARS(ZIG(3,M)>REF(ZIG(3,M),1)
AND REF(ZIG(3,M), 1)<REF(ZIG(3,M), 2),N);
DRAWTEXT(时间之窗=1,L*0.94,>),COLORRED;
STICKLINE(时间之窗=2,L*0.95,L*0.98,2,0),COLORYELLOW;
DRAWTEXT(时间之窗=2,L*0.94,3天),COLORRED;
DRAWTEXT(时间之窗=3,H*1.06,>),COLORGREEN;
STICKLINE(时间之窗=4,H*1.05,H*1.02,2,0),COLORYELLOW;
DRAWTEXT(时间之窗=4,H*1.06,5天),COLORGREEN;
DRAWTEXT(时间之窗=6,L*0.94,>),COLORRED;
STICKLINE(时间之窗=7,L*0.95,L*0.98,2,0),COLORYELLOW;
DRAWTEXT(时间之窗=7,L*0.94,8天),COLORRED;
DRAWTEXT(时间之窗=11,H*1.06,>),COLORGREEN;
STICKLINE(时间之窗=12,H*1.05,H*1.02,2,0),COLORYELLOW;
DRAWTEXT(时间之窗=12,H*1.06,13天),COLORGREEN;
DRAWTEXT(时间之窗=19,L*0.94,>),ColorFFFF00;
STICKLINE(时间之窗=20,L*0.95,L*0.98,2,0),COLORYELLOW;
DRAWTEXT(时间之窗=20,L*0.94,21天),ColorFFFF00;
DRAWTEXT(时间之窗=32,H*1.06,>),ColorFFFF00;
STICKLINE(时间之窗=33,H*1.05,H*1.02,2,0),COLORYELLOW;
DRAWTEXT(时间之窗=33,H*1.06,34天),ColorFFFF00;
DRAWTEXT(时间之窗=53,L*0.94,>),ColorFFFF00;
STICKLINE(时间之窗=54,L*0.95,L*0.98,2,0),COLORYELLOW;
DRAWTEXT(时间之窗=54,L*0.94,55天),ColorFFFF00;
DRAWTEXT(时间之窗=87,H*1.06,>),ColorFFFF00;
STICKLINE(时间之窗=88,H*1.05,H*1.02,2,0),COLORYELLOW;
DRAWTEXT(时间之窗=88,H*1.06,89天),ColorFFFF00;
DRAWTEXT(时间之窗=142,L*0.94,>),ColorFFFF00;
STICKLINE(时间之窗=143,L*0.95,L*0.98,2,0),COLORYELLOW;
DRAWTEXT(时间之窗=143,L*0.94,144天),ColorFFFF00;
DRAWTEXT(时间之窗=231,H*1.06,>),ColorFFFF00;
STICKLINE(时间之窗=232,H*1.05,H*1.02,2,0),COLORYELLOW;
DRAWTEXT(时间之窗=232,H*1.06,233天),ColorFFFF00;
DRAWTEXT(时间之窗=375,L*0.94,>),ColorFFFF00;
STICKLINE(时间之窗=376,L*0.95,L*0.98,2,0),COLORYELLOW;
DRAWTEXT(时间之窗=376,L*0.94,377天),ColorFFFF00;
DRAWTEXT(时间之窗=608,H*1.06,>),ColorFFFF00;
STICKLINE(时间之窗=609,H*1.05,H*1.02,2,0),COLORYELLOW;
DRAWTEXT(时间之窗=609,H*1.06,610天),ColorFFFF00;
|
|
|
|
|