|
樓主 |
發表於 13-11-3 23:33
|
顯示全部樓層
本帖最後由 jacklcl 於 13-11-3 23:35 編輯
joshsmi 發表於 13-11-3 22:54
Set PointValue in Information window.
or in AFL code set variable Pointvalue = ...;
Hi joshsmi, thanks for your help
i just followed your suggestion and set the point value to HK$50
after running the backtest, i discovered that the PnL was calcuated based on the % change of the future price multiply by the equity and the point value
e.g. buy price @ 22968 and sell @ 22982
then this trade suffered a loss of 14 points which equal to HK$ 700 (14 x HK$50)
but in AB, the calculation is as follows:
from 22982 to 22968, the % change is 0.06%
then it applied this 0.06% to my equity (say HK$ 100,000) which is 60
and then it used this 60 multiply by the point value which the loss is HK$3000 in the bactest result
|
|