Announcement

Collapse
No announcement yet.

Bond 32nds and decimal

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Bond 32nds and decimal

    In my EFS I have a number in calculated decimal notation and I display it on a chart as a decimal which works fine for symbols such as ES which are quoted in decimal notation and also for symbols such as ZB which are quoted in 32nds.

    Is there:
    1. a way that I can "find out" in the code that the chart is quoting in 32nds so that I can convert the number that I print on the chart to 32nds

    OR

    2. A function that will automatically print out the relevant format for a number because it "knows" the basis of the quotes on that chart.

    So as an example: My internally calculated number is 116.5 and instead of showing 116.5 on a ZB chart I want to show something like:
    116'16 or 116-16 or 11616

    Thanks.
    Standing on the shoulders of giants.

  • #2
    wildfiction
    formatPriceNumber() should do what you want
    Alex

    Comment


    • #3
      You’re a genius Alex. Thanks. Whatever they pay you it's too little.
      Standing on the shoulders of giants.

      Comment

      Working...
      X