请问这段是什么意思?
MONEYTOT,UNIT,ISLASTBK,ISLASTSK
这些函数是什么意思?
TR1:=MAX(MAX((HIGH-LOW),ABS(REF(CLOSE,1)-HIGH)),ABS(REF(CLOSE,1)-LOW));//定义TR
ATR:=MA(TR1,20),NODRAW,PRECIS0;//ATR定义
TC:=INTPART((asset*0.005/(MULTIPLIER*ATR)));//头寸计算
MTC:=4*TC; //最大头寸
H20:HhV(H,20),COLORRED;
L10:LlV(L,10),COLORCYAN;
L20:LlV(L,20),COLORGREEN;
H10:HhV(H,10),COLORMAGENTA;
MA13:EMA(C,13),COLORYELLOW,NODRAW;
FL:=HHV(MA13,2);
FS:=MA13-(FL-MA13);
PARTLINE(C>0, FL,RGB(0,255,0));
PARTLINE(C>0, MA13,RGB(255,255,0));
PARTLINE(C>0, FS,RGB(255,0,255));
ND:=BARSLAST(holding>0&&REF(holding,1)=0);//第一次开仓的距离
ATRD:REF(ATR,ND),PRECIS0,NODRAW;
NK:=BARSLAST(holding<0&&REF(holding,1)=0);//第一次开仓的距离
ATRK:REF(ATR,NK),PRECIS0,NODRAW;
多单止损点:enterprice-ATRD*2,NODRAW,PRECIS0;
空单止损点:enterprice+ATRK*2,NODRAW,PRECIS0;
if C>REF(H20,1) then buy(holding=0,tc,thisclose);//价格突破前20周期高点,买开仓
if CROSS(REF(L20,1),C) then buyshort(holding=0,tc,thisclose);//价格突破前20周期低点,卖开仓
if C>=enterprice+0.5*ATR&&holding<MTC&&typebar(1,1) then buy(1,0.5*tc,thisclose);//价格上涨0.5倍ATR加仓
if C>=enterprice+1.0*ATR&&holding<MTC&&typebar(1,1) then buy(1,tc,thisclose);//价格上涨1.0倍ATR加仓
if C>=enterprice+1.5*ATR&&holding<MTC&&typebar(1,1) then buy(1,1.5*tc,thisclose);//价格上涨1.5倍ATR加仓
if C<=enterprice-0.5*ATR&&holding<MTC&&typebar(1,3) then buyshort(1,0.5*tc,thisclose);//价格下跌0.5倍ATR加仓
if C<=enterprice-1.0*ATR&&holding<MTC&&typebar(1,3) then buyshort(1,tc,thisclose);;//价格下跌1.0倍ATR加仓
if C<=enterprice-1.5*ATR&&holding<MTC&&typebar(1,3) then buy(1,1.5*tc,thisclose);;//价格下跌1.5倍ATR加仓
if CROSS(REF(MA13,1),C)&&holding>0 then sell(1,50%,market);//价格下穿13周期的均线减仓一半
if CROSS(C,REF(MA13,1))&&holding>0 then sellshort(1,50%,market);//价格上穿13周期的均线减仓一半
if C<=(enterprice-2*ATR)&&holding>0 then sell(1,0,market);;//价格下跌2倍ATR止损
if C>=(enterprice+2*ATR)&&holding>0 then sellshort(1,0,market);;//价格上涨2倍ATR止损
if CROSS(C,REF(H10,1))&&holding>0 then sellshort(1,0,market);;//价格突破前10周期高点,空单出场
if CROSS(REF(L10,1),c)&&holding>0 then sell(1,0,market);;//价格突破前10周期低点,多单出场
你把k线图往前拉一下,看看是不是有历史信号