Decimal places in backtest price

Getting 4 decimal digits in backtest entry & exit price, how do we set to 2 decimal digits. (I'm not doing custom backtest)

ami-bt-deci

preferences setup has 2 decimal
ami-pref-deci

Thanks
Ramesh

Your Formula must be setting reserved variables “Buyprice”, “Sellprice”, “Shortprice” and “Coverprice” or post info from Analysis settings > Trades tab that you may be using.

image

As noted, price displayed in backtest trade list is actual price being used for backtest.
There are no fixed "decimal places" because that would create zillions of support requests that would claim a "bug" telling that "value of trade does not match price x quantity".

You are getting 4 digits because you are using split and dividend ADJUSTED prices.
For example 1 for 10 split would divide prices by 10 creating extra "decimal digit".

3 Likes

Got it, Thanks Tomasz

This topic was automatically closed 100 days after the last reply. New replies are no longer allowed.