Announcement

Collapse
No announcement yet.

getMinTick() is not working on tick charts

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

  • getMinTick() is not working on tick charts

    I have code that relys on getMinTick returning the mim tick or price increment.
    This code works fine on minute charts but when I load a tick chart for example ES #F 100 tick chart, getMinTick() returns 0.
    I am assuming is it should retun 0.25 and this is a bug?

  • #2
    Hello theperm,

    Problem confirmed. I'll report this as a bug to development. Thank you for reporting this.

    In the mean time, the work-around is to call getMinTick within a function called by efsInternal() where a non-tick interval is passed as a parameter. This will force the getMinTick() function to reference the non-tick interval and will return .25.

    PHP Code:
    var xNum null;

    function_main()_{
        if (
    xNum == nullxNum efsInternal("minTick"inv(1));
        
        var 
    nTick xNum.getValue(0);
        
        
    debugPrintln(nTick);

        return;
    }

    function 
    minTick(i) {
        return 
    getMinTick();

    Jason K.
    Project Manager
    eSignal - an Interactive Data company

    EFS KnowledgeBase
    JavaScript for EFS Video Series
    EFS Beginner Tutorial Series
    EFS Glossary
    Custom EFS Development Policy

    New User Orientation

    Comment

    Working...
    X