Rounding values in Data Items
Last updated February 10, 2024
Every Data Item contains a rounding option if you need to apply rounding to values before they are used in any calculations. (or indeed to round the values of calculations).
To enable rounding on a Data Item, simply tick the Use Rounding option where you will be presented with more options.
Example: Some brokers will place a limit on the number of decimal places a position size can have when sending orders. If the position size is being calculated within a TradeStory using dynamic data, or from other external data sources, it may be necessary to ensure this has the set number of decimal places before TradeStory sends the order to your broker.
Was this article helpful?
📊