input:N(20,1,999),P(2,0.1,10);
FO:=OPEN;
FH:=HIGH;
FL:=LOW;
FC:=CLOSE;
KK:=IF(FC>=FO AND (FC>=REF(FC,1) OR REF(FC,1)>=REF(FO,1)),1,IF(FC<FO AND (FC<REF(FO,1) OR REF(FC,1)<REF(FO,1)),-1,0));
FCFO:=FC-FO;
KKS1:=KK=1 AND FC>=FO OR KK=1 AND FC<FO;
FOFC:=FO-FC;
KKS2:=KK<=0 AND FC>=FO OR KK<=0 AND FC<FO;
STDS:=STD(CLOSE,N);
D:=(FO+FC)/2;
今转:=IF(KK=1,MIN(FC,FO),IF(KK=-1,MAX(FC,FO),IF(REF(KK,1)=1,MIN(FC,FO),IF(REF(KK,1)=-1,MAX(FC,FO),(FC+FO)/2))));
HL:=EMA(HIGH,5);
LL:=EMA(LOW,5);
CH:=CROSS(CLOSE,HL);
CL:=-CROSS(LL,CLOSE);
TF:=IF(CH,CH,IF(CROSS(LL,CLOSE),CL,0));
UD:=REF(TF,BARSLAST(TF));
霸王控盘线:=IF(UD>0,LL,HL);
PARTLINE(1,霸王控盘线),LINETHICK2,colorFFFF;
PARTLINE(UD=1 AND REF(UD,1)=1,LL),LINETHICK2,colorFF;
PARTLINE(UD=-1 AND REF(UD,1)=-1 ,HL),LINETHICK2,colorFF00;

参考:霸王控盘线http://www.gszx.com.cn/html/feihuzhibiaogongshi/gs320639.html


声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。