Announcement

Collapse
No announcement yet.

getMostRecentxxxx forex

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

  • getMostRecentxxxx forex

    How do I get getMostRecentxxxx to return to 4 decimal places with Forex data?


    Unlike other data that is reported to 2 decimal places the Quote window shows Forex data to 4 decimal places
    yet when I try to use the getMostRecentxxxx functions I am only getting 2 decimal places


    var vGMRT = getMostRecentTrade(0);

  • #2
    tkup
    At this time efs cannot increase the number of decimals displayed by a plot. This is determined by the formula engine.
    A commonly used workaround for Forex symbols is to multiply the returned value by a factor of 1000
    Alex

    PHP Code:
    function main(){
        var 
    vGMRT getMostRecentTrade();
        return  (
    vGMRT*1000);

    Comment

    Working...
    X