I am looking for a method to put correct decimals in a price maker.
Usually I use this function into my indicators:
public override string FormatPriceMarker(double price)
{
return price.ToString("N4");
}
In a chart how 6E (1.3716) or 6J (0.009762 with ToString("N6") of course)
it works perfectly.
But if I try to use it in Soyabeans future, I obtain an error. The price 1474.25 turns 1.474.25... how can I leave just the second decimal?
Comment