π§ Normalize Price (Alias)ΒΆ
Alias method: normalizes price to symbol's digit count. Identical to
normalizePrice().
API Information:
- Sugar method:
MT5Sugar.normalizePriceDigits(String symbol, double price) - Returns:
double- Normalized price - Underlying:
normalizePrice()- internally calls normalizePrice()
π½ InputΒΆ
| Parameter | Type | Required | Description |
|---|---|---|---|
symbol |
String |
β | Symbol name |
price |
double |
β | Price to normalize |
β¬οΈ OutputΒΆ
Returns: double - Normalized price
π Usage ExampleΒΆ
double price = sugar.normalizePriceDigits("EURUSD", 1.123456789);
System.out.printf("Normalized: %.5f%n", price); // 1.12346
See alsoΒΆ
- Actual implementation:
normalizePrice()