|
准确率还是蛮高的,特别是4个时间点的参考价值(附同花顺指标)1、因K线级别的开盘价,在分时图好像用不了,因此取了开盘第一笔成交价
2、同花顺距开盘分钟数函数,具有未来性质,因此重新做了计算
3、看多用黄柱表示,看空用绿柱表示,柱线高度为价格与分时均线的距离
4、因看空看多条件,未能形成闭环,看后续能不能用大数据跑下、验证后补全
zeroAxis:0,DOTLINE,colorwhite;
maPrice:=MONEY/VOL;
bIsFillGap:=TRUE;//缺口是否回补
fOpenPrice:=0;
iOpenType:=0;//开盘类型,0平开,1高开,2低开
IF (ISNULL(REF(NEW,1)))
fOpenPrice:=NEW;
iFromMinute:=(HOUR-9)*60-30+MINUTE;//距离开盘的分钟数
IF(iFromMinute>120)
iFromMinute:=iFromMinute-90;
iFromMinute:=iFromMinute+1;
fOpen:=HHV(fOpenPrice,iFromMinute);//开盘价
IF(fOpen>PRE)
iOpenType:=1;
ELSE IF(fOpen<PRE)
iOpenType:=2;
fMaxPrice:=HHV(NEW,iFromMinute);
fMinPrice:=LLV(NEW,iFromMinute);
IF(fMinPrice>PRE){
bIsFillGap:=FALSE;
}ELSE IF(fMaxPrice<PRE){
bIsFillGap:=FALSE;
};
IF(HOUR==10 AND MINUTE>=5 AND MINUTE<=15){
IF( ((iOpenType==1 AND bIsFillGap==FALSE) OR (iOpenType==2 AND bIsFillGap)) AND NEW>=PRE )
STICKLINE(TRUE,0,(NEW-maPrice),1,2),coloryellow;
ELSE{
//STICKLINE(TRUE,0,(NEW-maPrice),0.8,2),colorwhite;
}
};
IF(HOUR==10 AND MINUTE>=35 AND MINUTE<=45){
IF(iOpenType==1 AND bIsFillGap==FALSE AND NEW>=maPrice)
STICKLINE(TRUE,0,(NEW-maPrice),1,2),coloryellow;
ELSE IF(iOpenType==2 AND bIsFillGap==FALSE AND NEW<maPrice)
STICKLINE(TRUE,0,(NEW-maPrice),1,2),colorgreen;
ELSE{
// STICKLINE(TRUE,0,(NEW-maPrice),0.8,2),colorwhite;
}
};
IF(HOUR==13 AND MINUTE>=35 AND MINUTE<=45){
IF(iOpenType==1 AND bIsFillGap==TRUE AND NEW<maPrice)
STICKLINE(TRUE,0,(NEW-maPrice),1,2),colorgreen;
ELSE IF(iOpenType==2 AND bIsFillGap==TRUE AND NEW>=maPrice)
STICKLINE(TRUE,0,(NEW-maPrice),1,2),coloryellow;
ELSE {
// STICKLINE(TRUE,0,(NEW-maPrice),0.8,2),colorwhite;
}
};
IF(HOUR==14 AND MINUTE>=35 AND MINUTE<=45){
IF((iOpenType==1 AND bIsFillGap==FALSE AND NEW<maPrice) OR (iOpenType==2 AND bIsFillGap==FALSE))
STICKLINE(TRUE,0,(NEW-maPrice),1,2),colorgreen;
};
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?注册
x
|