Announcement

Collapse
No announcement yet.

Tick Data Not Loading

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

  • Tick Data Not Loading

    I have an advanced chart with a simple function that calculates the difference between two securities and plots it.

    This function won't currently load as tick data, it just shows a blank window which says "Loading Data...". This function used to load, problems began last week, and it loads fine when I switch to 1 min data from tick data.

    Any suggestions?

  • #2
    Hello gpmiller,

    Please post your code.
    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


    • #3
      Code here.

      Here's the code. Thanks in advance.

      function preMain() {
      //setPriceStudy(true);
      setCursorLabelName("Overlay", 0);

      // setDefaultBarStyle(PS_SOLID);
      // setDefaultBarThickness(1);
      setDefaultBarFgColor(Color.black, 0);
      setDefaultBarFgColor(Color.purple, 1);
      setDefaultBarThickness(2);
      setDefaultBarFgColor(Color.purple, 2);
      setDefaultBarFgColor(Color.black, 3);
      }

      var lastprem;

      function main(nSymbol,mSymbol,array){
      if (nSymbol == null)
      nSymbol = "$ndx";
      if (mSymbol == null)
      mSymbol = "nq z3";

      var vInterval = getInterval();
      var nSym = nSymbol + "," + vInterval;
      var mSym = mSymbol + "," + vInterval;
      var n = close(0, nSym);
      var m = close(0, mSym);
      var zero = 0;
      var pos = 3.25;
      var neg = 1.75;
      var prem = (m)-(n);

      /*if(( prem > pos) && (lastprem < pos)){
      Alert.playSound("C:\\PROGRAM FILES\\ESIGNAL\\Sounds\\cowbell.wav");
      }

      if((prem < neg) && (lastprem > neg)){
      Alert.playSound("C:\\PROGRAM FILES\\ESIGNAL\\Sounds\\knock.wav");
      }

      lastprem = prem;*/

      return new Array(prem,pos,neg);
      //return (m)-(n)

      }

      Comment


      • #4
        Hello gpmiller,

        Your formula loaded for me on build 608. It took a little while (about 1 min) to process all the chart data before it comes up, but it does work on my end. What version are you running?

        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