pf_Martin
简述
Martin流动性比率,与系统参数(股票、复权)相关。
pf_Martin(Endt:TdateTIME;N:integer):real
名称 | 类型 | 说明 |
---|
Endt | TdateTIME | 日期,截止日期 |
N | integer | 整数,交易日长度 |
返回 | real | 实数 |
1、计算每日v:(最高价-最低价)/前收盘/成交量*100000000
2、martin= N个交易日的v的平均
SetSysParam(pn_stock(),'sz000001');
return pf_Martin(20180801T,18);
//返回:0.03