{相对绝杀}
原理解析:
买赋值:收盘价的1日简单移动平均
卖赋值:(最低价+最高价+收盘价)/3
奇准赋值: 卖的5日简单移动平均
买卖赋值:10日内奇准的最低值
急买奇准赋值:5日内(买1.03 OR 收盘价>1.03*1日前的收盘价)
输出部队:如果VAR2NANDVAR3N,返回10,否则返回0,画黄色,线宽为2
输出极强:80,画深灰色,NODRAW
输出中线:40,画深灰色,NODRAW
输出中线2:60,画深灰色,NODRAW
输出极弱:20,画深灰色,NODRAW
输出极弱1:10,画深灰色,NODRAW
输出地:-10,画绿色,NODRAW
当满足条件收阳线时,在横轴0.01纵轴0.9位置书写文字,画红色
当满足条件收阳线时,在横轴1纵轴1位置书写文字,画红色
源码:
买:=MA(CLOSE,1);卖:=(LOW+HIGH+CLOSE)/3;奇准:= MA(卖,5);买卖:=LLV(奇准,10);急买奇准:=LLV((买O AND (C/O>1.03 OR C>1.03*REF(C,1));部队:IF(VAR2N AND VAR3N,10,0),COLORYELLOW,LINETHICK2;极强:80,COLORGRAY,NODRAW;中线:40,COLORGRAY,NODRAW;中线2:60,COLORGRAY,NODRAW;极弱:20,COLORGRAY,NODRAW;极弱1:10,COLORGRAY,NODRAW;地:-10,COLORGREEN,NODRAW;DRAWTEXT_FIX(C>O,0.01,0.9,0,' WWW. '),COLORRED;
DRAWTEXT_FIX(C>O,1,1,0,'程序化交易模型'),COLORRED;