Announcement

Collapse
No announcement yet.

Programming in MultiTime frames eluding me

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

  • Programming in MultiTime frames eluding me

    Hi,

    I'm new to programming in esignal, and am having problems with grasping the syntax and usage for programming in multi-time frame studies.

    I have a study that I am working on. It is set to compute on close of each bar. When the study is run, as each bar is processed in the chart, I would like to break down the current interval and get the low value for each corresponding minute the makes up the current bar in the chart that I have my study on.

    So for example:

    main () {

    var myInt = getInterval();
    var i;

    // in english since I can't get the syntax for multitime frame programming

    get the corresponding last "myInt" lows on a 1 min chart that
    correspond to the bar in my current chart that has just ended.

    for (i = 0; i < myInt; i++) {
    get the value for lowon1minute[-i] and
    ... do something with this value
    }
    }


    Any help in getting my to understand multi time frame programming would be GREATLY appreciated.

    Thanks,

    Judy

  • #2
    Judy
    You can find one example of how to drill down to a lower interval in this thread.
    In that example I use the smallest available interval ie 1T (for 1 tick) but you can replace that with 1 for 1 minute (or with any other interval of your choice)
    Hope this helps
    Alex

    Comment


    • #3
      THanks so much for the reference. I was able to teach myself how to program in multi time frames from your posted thread and appreciate the help.

      Judy

      Comment


      • #4
        Judy
        You are most welcome
        Alex

        Comment

        Working...
        X