金牛判市飞狐版本

多个版本都有哦,飞狐的没有,就做一个。
 

DRAWGBK(CLOSE>OPEN,COLORRGB(60,0,0),COLORRGB(0,0,0),0);

XMH0:=MA(REFX(HIGH,12.5),25);
XMH:=MA(REFX(XMH0,12.5),25);
XML0:=MA(REFX(LOW,12.5),25);
XML:=MA(REFX(XML0,12.5),25);
金牛:XMH*2-XML,LINEDOT,colorFFFF;
金钻趋势:XML*2-XMH,LINETHICK2,colorFF;
金牛2:EMA(金钻趋势,25),LINETHICK2,colorFFFF00;
FILLRGN(金钻趋势>金牛2,金钻趋势,金牛2),color666;
FILLRGN(金钻趋势<金牛2,金钻趋势,金牛2),color6600;
KLINE(OPEN,HIGH,LOW,CLOSE,0);
STICKLINE(金钻趋势>LOW AND 金钻趋势<HIGH,金钻趋势,MIN(MIN(OPEN,CLOSE),金钻趋势),6,0),colorFFFF;
STICKLINE(金钻趋势>MIN(CLOSE,OPEN) AND 金钻趋势<MAX(CLOSE,OPEN),金钻趋势,MIN(OPEN,CLOSE),6,0),colorFFFF;
STICKLINE(金钻趋势>HIGH,OPEN,CLOSE,6,0),colorFFFF;
STICKLINE(金钻趋势>HIGH,HIGH,LOW,0,0),colorFFFF;
XMRC0:=MA(REFX(CLOSE-REF(CLOSE,1),2),6);
XMRC:=MA(REFX(XMRC0,2),6);
XMRA0:=MA(REFX(ABS(CLOSE-REF(CLOSE,1)),2),6);
XMRA:=MA(REFX(XMRA0,2),6);
VAR23:=100*XMRC/XMRA;
回调买:=LLV(VAR23,2)=LLV(VAR23,7) AND COUNT(VAR23<0,2) AND CROSS(VAR23,MA(VAR23,2));
选1:金钻趋势>HIGH AND 回调买 AND LOW<=金钻趋势,LINETHICK0,colorAEFF;
DRAWICON(选1,LOW,8),PXDN10;
DRAWTEXT(选1,LOW,'买入'),ALIGN0,PXDN25,colorAEFF;
JJ:=(HIGH+LOW+CLOSE)/3;
QJ0:=VOL/(IF(HIGH=LOW,4,HIGH-LOW));
QJ1:=IF(CAPITAL=0,QJ0*(JJ-MIN(CLOSE,OPEN)),QJ0*(IF(HIGH=LOW,1,MIN(OPEN,CLOSE)-LOW)));
QJ2:=IF(CAPITAL=0,QJ0*(MIN(OPEN,CLOSE)-LOW),QJ0*(IF(HIGH=LOW,1,JJ-MIN(CLOSE,OPEN))));
QJ3:=IF(CAPITAL=0,QJ0*(HIGH-MAX(OPEN,CLOSE)),QJ0*(IF(HIGH=LOW,1,HIGH-MAX(OPEN,CLOSE))));
QJ4:=IF(CAPITAL=0,QJ0*(MAX(CLOSE,OPEN)-JJ),QJ0*(IF(HIGH=LOW,1,MAX(CLOSE,OPEN)-JJ)));
DDX:=(QJ1+QJ2-(QJ3+QJ4))/(IF(CAPITAL=0,10000,10000));
V2:=SMA(IF(CLOSE>=REF(CLOSE,1),DDX,-DDX/100),2,1);
已开盘分钟:=IF(DATATYPE>5 AND DATATYPE<11,OPENMINUTES(CURRENTTIME),OPENMINUTES(TIME));
V5:=SMA(V2*120/已开盘分钟[DATACOUNT]*5,2,1);
V10:=SMA(V5,5,1);
V20:=SMA(V10,5,1);
DY:=ISLASTBAR=1 AND CLOSE<REF(CLOSE,1);
DY2:=REF(V2,1)-DY;
选2:CLOSE>OPEN AND DY2<0.02 AND MA(CLOSE,5)>MA(CLOSE,60) AND CLOSE/REF(CLOSE,1)>=1.02 AND HIGH<金牛,LINETHICK0,colorEE00FF;
DRAWTEXT(选2 AND LOW<金钻趋势,LOW,'←金钻起涨'),colorFF00FF;
 
金牛判市飞狐版本

猜你喜欢