Announcement

Collapse
No announcement yet.

Conserving CPU & RAM use in tick charts

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

  • Conserving CPU & RAM use in tick charts

    I use 60s tick charts on which to base my studies. A drawback to using tick charts though is that by default they load data from midnight on despite the fact I really don't need the data from midnight through 05:00. This is extra data which my studies must grind through on every tick. I thought I'd pass on a quick and dirty work-around to this minor but unnecessary drain on processing resources.

    Loading the following line of code immediately after the start of the main instructs the studies to ignore data from 00:00 through 04:59 of the current day.

    function main(){
    if(getHour(0) <= 4) return;

    Mike
Working...
X