以下是线趋势王王指标公式源码和使用说明
主力趋势线趋势王波段王指标公式源码:
MB1:=EMA(WINNER(C)*100,5),COLORYELLOW;
MB2:EMA(MB1,2),COLORBLUE;
MB3:EMA(MB2,2),COLORBLUE;
MB4:EMA(MB3,2),COLORBLUE;
MB5:EMA(MB4,2),COLORBLUE;
MB6:EMA(MB5,2),COLORBLUE;
MB7:EMA(MB6,2),COLORBLUE;
MB8:EMA(MB7,2),COLORBLUE;
MB9:EMA(MB8,2),COLORBLUE;
MB10:EMA(MB9,2),COLORBLUE;
MB11:EMA(MB10,2),COLORBLUE;
MB12:EMA(MB11,2),COLORBLUE;
MB13:EMA(MB12,2),COLORBLUE;
MB14:EMA(MB13,2),COLORBLUE;
N:=5;
VAR2:MB1;
VAR3:DRAWLINE(VAR2 =HHV(VAR2,N)=1,VAR2,VAR2 =LLV(VAR2,N)=1,VAR2,1);
XG:=REF(VAR2,1)=REF(VAR3,1)ANDVAR2 REF(VAR2,1);
STICKLINE(VAR2=VAR3ANDVAR2 MB4,VAR2,VAR2+10,1,0)COLORYELLOW;
STICKLINE(XG,VAR2,VAR2+10,1,0),COLORRED;
MA10:MA(C,10),colorwhite;
多头市场:IF(MA10 REF(MA10,1),MA10,DRAWNULL),colorf00ff0,LINETHICK3;
MA30:MA(C,30),colorgreen;
中期市场:IF(MA30 REF(MA30,1),MA30,DRAWNULL),colorred,LINETHICK4;
C3:=REF(C,1);
:=IF((C-C3)*100/C3 =(10-0.01*100/C3),1,0);
STICKLINE(涨停,OPEN,CLOSE,8,0),colormagenta;
STICKLINE(涨停,L,H,1,0),colormagenta;
跌停:=IF((C3-C)*100/C3 =(10-0.01*100/C3),1,0);
STICKLINE(跌停,OPEN,CLOSE,8,0),colorgreen;
STICKLINE(跌停,L,H,1,0),colorgreen;
主力趋势线:=(CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100;
趋势王:=SMA(主力趋势线,9,1);
波段王:=SMA(趋势王,3,1);
指标公式:3*趋势王-2*波段王,COLORWHITE,LINETHICK3;
ffgg1:EMA(趋势王,3),COLORRED,LINETHICK3;
DRAWTEXT(CROSS(ffgg1,指标公式)ANDREF(指标公式,1) 80,REF(指标公式,3),'wsdd1'),COLORRED,LINETHICK5;
ffgg2:DRAWTEXT(REF(CROSS(ffgg1,指标公式),82)ANDffgg1 1.3*指标公式,指标公式,'ffgg2'),LINETHICK1;
AA1:DRAWTEXT(REF(CROSS(指标公式,ffgg1),1)AND指标公式 1.3*ffgg1,ffgg1,'AA1'),COLORRED,LINETHICK1;
ggss3:=PEAKBARS(3,15,1)
ggss5:=IF(ggss3=1,2,0);
wsdd1:=IF(ggss5=2,2,0);
wsdd1A:IF(wsdd1 REF(wsdd1,1),50,0),COLORGREEN;
DRAWTEXT(wsdd1A=50,45,''),COLOR00FF00;
AA3:CROSS(指标公式,ffgg1);
DRAWTEXT(AA3,ffgg1,''),COLORRED;
AA4:=EMA(CLOSE,60)-EMA(CLOSE,300);
cccc2:=EMA(AA4,300);
cccc3:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;
cccc4:SMA(cccc3,2,1);
cccc5:SMA(cccc4,2,1);
cccc6:=CLOSE/REF(CLOSE,3) =1.1;
cccc7:=BACKSET(cccc6,3);
cccca:IF((cccc7ANDCOUNT(cccc7,3)=1),30,0),COLORYELLOW,LINETHICK3;
DRAWTEXT(cccca,35,''),COLORYELLOW,LINETHICK3;
VAR1:=(CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100;
VAR2:=SMA(VAR1,3,1);
VAR3:=SMA(VAR2,3,1);
VAR4:=SMA(VAR3,3,1);
波:VAR3;
段:VAR4;
AA:=LLV(LOW,36);
BB:=HHV(HIGH,30);
DD:=(EMA(((CLOSE-AA)/(BB-AA))*(4),4))*(25);
股神:DD;
股海:=(((DD-LLV(DD,21))/(HHV(DD,21)-LLV(DD,21)))*(4))*(25);
STICKLINE(股神 波,波,股神,1,0);
XC:=IF(股神 =段,股神,波);
XD:=IF(股神 =段,段,波);
XA:=IF(股神 =段,股神,波);
XB:=IF(股神 =段,段,波);
大头部:=IF((波 (90)),20,0);
头部:=IF((股神 (90)),10,0);
S:=50;
XAA:IF(股神 =段,股神,波),COLORRED,LINETHICK2;
XBB:IF(股神 =段,段,波),COLORRED,LINETHICK2;
XCC:IF(股神 =段,股神,波),COLOR00FF00,LINETHICK2;
XDD:IF(股神 =段,段,波),COLOR00FF00,LINETHICK2;
XX:波;
主力趋势线趋势王波段王指标公式截图