Rounding Indicator

We made an indicator which rounds a time series to a specified number of decimal places, and are including the PowerBasic Source code. This might become useful, for one example, where you want to compute a stop price by a computation that leaves the result with more than 2 decimal places, and your brokerage only accepts two decimals. Another example would be rounding a 5 decimal currency price to 4 decimals.

Use the links below to download the files:

RoundSource.zip – a ZIP file containing Round.bas – the source code
Round.zip – a ZIP file containing Round.dll and Decimals.tpl – put these in the NeuroShell Template folder

You will find the indicator, called Decimals, in the Custom Indicators category after you save the files and restart NeuroShell. There are two parameters – the time series to be rounded and the number of decimal places you want in the result.

Was this article helpful?

Related Articles