{"id":176,"date":"2014-03-06T04:37:23","date_gmt":"2014-03-06T09:37:23","guid":{"rendered":"http:\/\/www.amibroker.com\/kb\/?p=176"},"modified":"2014-12-04T08:22:04","modified_gmt":"2014-12-04T13:22:04","slug":"points-only-backtest","status":"publish","type":"post","link":"https:\/\/www.amibroker.com\/wordpress\/kb\/2014\/03\/06\/points-only-backtest\/","title":{"rendered":"Points-only backtest"},"content":{"rendered":"

Some users coming from Metastock ask for “points-only” test.<\/p>

One needs to know that AmiBroker features way more sophisticated futures mode than MS ever had: http:\/\/www.amibroker.com\/guide\/h_futbacktest.html<\/a>
It provides full support for futures trading, handling margin deposit, point value, etc.<\/p>

“Points-only” test is kind of the simplest possible case, but if you want to do just that, it can be implemented using these two lines:<\/p>SetOption<\/span>(<\/span>"FuturesMode"<\/span>, <\/span>True <\/span>);
<\/span>SetPostionSize<\/span>( <\/span>1<\/span>, <\/span>spsShares <\/span>); <\/span>\/\/ trade just 1 contrac<\/code>

That is all what you need to add to your formula to get point-only test.<\/p>","protected":false},"excerpt":{"rendered":"

Some users coming from Metastock ask for “points-only” test.One needs to know that AmiBroker features way more sophisticated futures mode than MS ever had: http:\/\/www.amibroker.com\/guide\/h_futbacktest.htmlIt provides full support for futures trading, handling margin deposit, point value, etc.“Points-only” test is kind of the simplest possible case, but if you want to do just that, it can […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[7],"tags":[53,14,15],"_links":{"self":[{"href":"https:\/\/www.amibroker.com\/wordpress\/kb\/wp-json\/wp\/v2\/posts\/176"}],"collection":[{"href":"https:\/\/www.amibroker.com\/wordpress\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.amibroker.com\/wordpress\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.amibroker.com\/wordpress\/kb\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.amibroker.com\/wordpress\/kb\/wp-json\/wp\/v2\/comments?post=176"}],"version-history":[{"count":1,"href":"https:\/\/www.amibroker.com\/wordpress\/kb\/wp-json\/wp\/v2\/posts\/176\/revisions"}],"predecessor-version":[{"id":831,"href":"https:\/\/www.amibroker.com\/wordpress\/kb\/wp-json\/wp\/v2\/posts\/176\/revisions\/831"}],"wp:attachment":[{"href":"https:\/\/www.amibroker.com\/wordpress\/kb\/wp-json\/wp\/v2\/media?parent=176"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.amibroker.com\/wordpress\/kb\/wp-json\/wp\/v2\/categories?post=176"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.amibroker.com\/wordpress\/kb\/wp-json\/wp\/v2\/tags?post=176"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}