原理解析:
V6赋值:收盘价/3日前的收盘价>=1.1
V7赋值:若V6则将最近3周期置为1
买1赋值:如果(V7ANDCOUNT(V7,3)=1),返回50,否则返回0,STICK,线宽为4, COLORFFCC33
当满足条件买1时,在50位置书写文字,画白色
输出底部:0,COLOR80FF00,POINTDOT,线宽为2
输出绝顶:50,COLORFF00FF,POINTDOT,线宽为2
源码:
{有未来涵数}
V6:=CLOSE/REF(CLOSE,3)>=1.1;
V7:=BACKSET(V6,3);
买1:=IF((V7 AND COUNT(V7,3)=1),50,0),STICK,LINETHICK4, COLORFFCC33;
DRAWTEXT(买1,50,'买1 '),COLORWHITE;
底部:0,COLOR80FF00,POINTDOT,LINETHICK2;
绝顶:50,COLORFF00FF,POINTDOT,LINETHICK2;