Rounding in Finam (Forex)

In Finam: when I import using aqf.format, Amiquote imports with 5 decimal places. I want to import with 4 decimal places (pips). There is no import command to do this. There is a $ROUNDADJ, but that is for something else.

Is it possible to add a $ROUND command please? $ROUND 4 would do what I want.

Lou

ASCII importer does not perform any mathematical operations.

What about $TIMESHIFT (add? subtract?) and $VOLFACTOR (multiply?)

Lou

OK, you are right, I should have added "on price data". Volume factor is needed because some sites report in hundreds of shares. Timeshift is needed because various time zones are used by different sites, but modifying prices is other story.

If you need to round prices for backtesting, you can just use Prec function for BuyPrice/SellPrice/CoverPrice/ShortPrice

BuyPrice = prec( BuyPrice, 4 );
1 Like