Announcement

Collapse
No announcement yet.

Volume Related EFS

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

  • #16
    Re: Reply to post 'Volume Related EFS'

    bfry

    I think if Fred wants to look at the historical tick data he needs to use a
    1T chart.

    You re right, you can use any interval chart to get current tick counts and
    perform math on that data.

    Good point about resetting of the data - that will be something to avoid.

    Comment


    • #17
      Hi dloomis,

      I tried to plot the following code on a tick (1T) chart but the output is <none>.
      It seems 1T charts plot trades outside my 9:30-16:00 time template. Any other way to enforce plotting trades within this specified time frame?? (prolly a question for another section of this forum...)


      function preMain() {
      setStudyTitle("TCHRT");
      setCursorLabelName("TCHRT", 0);
      setDefaultBarFgColor(Color.yellow, 0);
      setPlotType(PLOTTYPE_HISTOGRAM, 0);
      }
      //debugClear();
      var fractionTime;
      var fractionTimeOld;
      var tick;
      var time;
      var interval;
      function main(){
      time=getHour()*10000+getMinute()*100+getSecond();//this gets the time stamp
      interval=5; //get this from the higher period chart
      fractionTimeOld=fractionTime; //save the old time
      fractionTime=time%interval; //figure out if there is a new bar
      if(fractionTimeOld>fractionTime){ //oh, a new bar!
      //debugPrintln("new bar! tick="+tick+"now="+fractionTime+"old="+fractionTim eOld);//tell everyone
      tick=0; //reset the counter
      }
      tick=tick+1; //increment the counter
      return;
      }
      Fred

      Comment


      • #18
        Hi bfry,
        Thanks for the info on tick charts. What is your main reason for avoiding tick charts?
        Fred

        Comment


        • #19
          My experience has been that T advanced charts take an inordinately long time to load (saturating the cpu during the process), which puzzles me, since tick download is very efficient. Also, tick charts had (still have?) problems with horizontal drift betwen indicators, and 1s is really the best way to go if you want the ultimate in resolution anyway, since you get every tick in your formula.

          Comment

          Working...
          X