Convert to Price

The Convert to Price rule converts a decimal number into a properly formatted quote price value for a specific financial instrument. This ensures that calculated price levels are expressed with the correct decimal precision and format required by the instrument and broker.

How It Works

Financial instruments have specific quoting conventions that determine the number of decimal places and the minimum price increment (tick size). The Convert to Price rule takes a raw decimal number and formats it as a valid quote price for the specified instrument, adjusting the precision to match the instrument's quoting requirements.

This is essential when you calculate a price level using arithmetic rules (such as Simple Calculator or Difference Between) and need to pass that value to an order rule or a price-based condition. Without proper formatting, a calculated value might have too many or too few decimal places, potentially causing order rejection or inaccurate comparisons. Convert to Price ensures the value is broker-ready.

Inputs

Input Type Required Description
Value Number Yes The decimal number to convert into a quote price.
Symbol Symbol Yes The financial instrument whose quoting convention is used for the conversion (e.g., EURUSD, AAPL, XAUUSD).

Outputs

Output Type Description
Quote Price Price The formatted price value with the correct decimal precision for the specified instrument.

Tips

Always use Convert to Price before connecting a calculated value to an order rule's price input. This prevents order rejections caused by invalid price precision. For example, if you calculate a take-profit level by adding a pip distance to the entry price using a Simple Calculator, pass the result through Convert to Price to ensure it matches the instrument's tick size before feeding it to your limit order rule.

Was this helpful? Let us know