等级: 专业版
- 注册:
- 2021-5-20
- 曾用名:
|
给你一个统计模板;
//**************************
A1:=OCLOSE/CLOSE;
//**************************
A2:=A1*(ASSET-REF(ASSET,1));
A7:=SUM(A2,0);
//**************************
盈亏:ROUND(A7),NOAXIS,COLORRED,LINETHICK2;
//盈亏1:ASSET-VALUEWHEN(BARPOS=1,ASSET),NOAXIS,COLORRED,LINETHICK2;
VARIABLE:HC=0;
IF 盈亏>HC THEN HC:=盈亏;
回撤:(HC-盈亏),LINETHICK0,COLORYELLOW;
WW1:=HOLDING*(A1*C)*MULTIPLIER*TACCOUNT(42),LINETHICK0;
保证金:WW1,LINETHICK0;
VARIABLE:HC1:=0;
IF 回撤>HC1 THEN HC1:=回撤;
最大回撤:ROUND(HC1),LINETHICK0,COLORYELLOW;
VARIABLE:WW=0;
IF WW1>WW THEN WW:=WW1;
最大保证金:=ROUND(WW),LINETHICK0,COLORWHITE;
VARIABLE:HC3=0;
HC2:=回撤+WW1;
IF HC2>HC3 THEN HC3:=HC2;
最大资金:ROUND(HC3),COLORWHITE,LINETHICK0;
//盈亏/最大保证金:=盈亏/最大保证金,COLORWHITE,LINETHICK0;
盈亏/最大资金:盈亏/最大资金,COLORWHITE,LINETHICK0;
//盈亏/最大回撤:盈亏/HC1,COLORWHITE,LINETHICK0;
//****************************
ASS1:=IF(HOLDING<>REF(HOLDING,1),ABS(HOLDING-REF(HOLDING,1)),0),LINETHICK0;
ASS2:SUM(ASS1,0),LINETHICK0,COLORWHITE;
倍数:盈亏/(ASS2*MULTIPLIER*MINDIFF),LINETHICK0,COLORWHITE;
|
|