RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:SMA(RSV,3,1),COLOR00FFFF,PRECISION2;
D:SMA(K,3,1),COLOR00FF00,PRECISION2;
J:3*K-2*D,LINETHICK0;
{K数据引用}{↑↓∧∨}
K15:="KD.K#MIN15";
K30:="KD.K#MIN30";
K60:="KD.K#MIN60";
RK :="KD.K#DAY" ;
ZK :="KD.K#WEEK" ;
YK :="KD.K#MONTH";
{8行D数据引用}
D15:="KD.D#MIN15";
D30:="KD.D#MIN30";
D60:="KD.D#MIN60";
RD :="KD.D#DAY" ;
ZD :="KD.D#WEEK" ;
YD :="KD.D#MONTH";
{15行显示K↑↓用}
DJC:=K15[SYSPARAM(1)];DJC1:=K15[(SYSPARAM(1)- 1)];DJ3:=IF((DJC>DJC1),'↑','↓');
DJD:=K30[SYSPARAM(1)];DJD1:=K30[(SYSPARAM(1)- 1)];DJ4:=IF((DJD>DJD1),'↑','↓');
DJE:=K60[SYSPARAM(1)];DJE1:=K60[(SYSPARAM(1)- 1)];DJ5:=IF((DJE>DJE1),'↑','↓');
DJF:=RK [SYSPARAM(1)];DJF1:=RK [(SYSPARAM(1)- 1)];DJ6:=IF((DJF>DJF1),'↑','↓');
DJG:=ZK [SYSPARAM(1)];DJG1:=ZK [(SYSPARAM(1)- 1)];DJ7:=IF((DJG>DJG1),'↑','↓');
DJH:=YK [SYSPARAM(1)];DJH1:=YK [(SYSPARAM(1)- 1)];DJ8:=IF((DJH>DJH1),'↑','↓');
{22行显示D↑↓用}
DJC2:=D15[SYSPARAM(1)];DJCC:=D15[(SYSPARAM(1)- 1)];DJ3A:=IF((DJC2>DJCC),'↑','↓');
DJD2:=D30[SYSPARAM(1)];DJDD:=D30[(SYSPARAM(1)- 1)];DJ4A:=IF((DJD2>DJDD),'↑','↓');
DJE2:=D60[SYSPARAM(1)];DJEE:=D60[(SYSPARAM(1)- 1)];DJ5A:=IF((DJE2>DJEE),'↑','↓');
DJF2:=RD [SYSPARAM(1)];DJFF:=RD [(SYSPARAM(1)- 1)];DJ6A:=IF((DJF2>DJFF),'↑','↓');
DJG2:=ZD [SYSPARAM(1)];DJGG:=ZD [(SYSPARAM(1)- 1)];DJ7A:=IF((DJG2>DJGG),'↑','↓');
DJH2:=YD [SYSPARAM(1)];DJHH:=YD [(SYSPARAM(1)- 1)];DJ8A:=IF((DJH2>DJHH),'↑','↓');
{29行K上拐数据引用}
K上拐15:="KD.K上拐#MIN15";
K上拐30:="KD.K上拐#MIN30";
K上拐60:="KD.K上拐#MIN60";
K上拐R :="KD.K上拐#DAY" ;
K上拐Z :="KD.K上拐#WEEK" ;
K上拐Y :="KD.K上拐#MONTH";
{36行K下拐数据引用}
K下拐15:="KD.K下拐#MIN15";
K下拐30:="KD.K下拐#MIN30";
K下拐60:="KD.K下拐#MIN60";
K下拐R :="KD.K下拐#DAY" ;
K下拐Z :="KD.K下拐#WEEK" ;
K下拐Y :="KD.K下拐#MONTH";
{43行K上行数据引用}
K上行15:="KD.K上行#MIN15";
K上行30:="KD.K上行#MIN30";
K上行60:="KD.K上行#MIN60";
K上行R :="KD.K上行#DAY" ;
K上行Z :="KD.K上行#WEEK" ;
K上行Y :="KD.K上行#MONTH";
{50行K下行数据引用}
K下行15:="KD.K下行#MIN15";
K下行30:="KD.K下行#MIN30";
K下行60:="KD.K下行#MIN60";
K下行R :="KD.K下行#DAY" ;
K下行Z :="KD.K下行#WEEK" ;
K下行Y :="KD.K下行#MONTH";
{57行K上拐数据引用}
D上拐15:="KD.K上拐#MIN15";
D上拐30:="KD.K上拐#MIN30";
D上拐60:="KD.K上拐#MIN60";
D上拐R :="KD.K上拐#DAY" ;
D上拐Z :="KD.K上拐#WEEK" ;
D上拐Y :="KD.K上拐#MONTH";
{64行K下拐数据引用}
D下拐15:="KD.K下拐#MIN15";
D下拐30:="KD.K下拐#MIN30";
D下拐60:="KD.K下拐#MIN60";
D下拐R :="KD.K下拐#DAY" ;
D下拐Z :="KD.K下拐#WEEK" ;
D下拐Y :="KD.K下拐#MONTH";
{71行K上行数据引用}
D上行15:="KD.K上行#MIN15";
D上行30:="KD.K上行#MIN30";
D上行60:="KD.K上行#MIN60";
D上行R :="KD.K上行#DAY" ;
D上行Z :="KD.K上行#WEEK" ;
D上行Y :="KD.K上行#MONTH";
{78行K下行数据引用}
D下行15:="KD.K下行#MIN15";
D下行30:="KD.K下行#MIN30";
D下行60:="KD.K下行#MIN60";
D下行R :="KD.K下行#DAY" ;
D下行Z :="KD.K下行#WEEK" ;
D下行Y :="KD.K下行#MONTH";
{85行}{表框部份}
p:=SYSPARAM(1);
DRAWTEXTEX(c,0,205,0 ,'────────────────────────────'),Color00AAAA;
DRAWTEXTEX(c,0,205,20 ,'────────────────────────────'),Color00AAAA;
DRAWTEXTEX(c,0,205,40 ,'────────────────────────────'),Color00AAAA;
DRAWTEXTEX(c,0,205,60 ,'────────────────────────────'),Color00AAAA;
DRAWTEXTEX(c,0,205,80 ,'────────────────────────────'),Color00AAAA;
DRAWTEXTEX(c,0,205,103,'────────────────────────────'),Color00AAAA;
DRAWTEXTEX(c,0,200,5 ,'│ │ │ │ │ │ │ │'),Color00AAAA;
DRAWTEXTEX(c,0,200,17 ,'│ │ │ │ │ │ │ │'),Color00AAAA;
DRAWTEXTEX(c,0,200,29 ,'│ │ │ │ │ │ │ │'),Color00AAAA;
DRAWTEXTEX(c,0,200,41 ,'│ │ │ │ │ │ │ │'),Color00AAAA;
DRAWTEXTEX(c,0,200,53 ,'│ │ │ │ │ │ │ │'),Color00AAAA;
DRAWTEXTEX(c,0,200,65 ,'│ │ │ │ │ │ │ │'),Color00AAAA;
DRAWTEXTEX(c,0,200,77 ,'│ │ │ │ │ │ │ │'),Color00AAAA;
DRAWTEXTEX(c,0,200,89 ,'│ │ │ │ │ │ │ │'),Color00AAAA;
DRAWTEXTEX(c,0,200,97 ,'│ │ │ │ │ │ │ │'),Color00AAAA;
DRAWTEXTEX(c,0,200,10,' 周期: 15 30 60 日 周 月'),ColorDEDEDE;
DRAWTEXTEX(c,0,200,30,' K:'),ColorDEDEDE;
DRAWTEXTEX(c,0,200,50,' D:'),ColorDEDEDE;
DRAWTEXTEX(c,0,200,70,' K拐:'),ColorDEDEDE;
DRAWTEXTEX(c,0,200,90,' D拐:'),ColorDEDEDE;
{107行}
DRAWTEXTEX(c,0,115,30,' '+NUMTOSTR(K15[P],2)+DJ3),COLORWHITE;
DRAWTEXTEX(c,0,115,30,' |