Announcement

Collapse
No announcement yet.

How to force study to a certain interval

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

  • How to force study to a certain interval

    Could someone pls advise how to force this study to another interval. I want to calc the study for a specific interval. For example a 3min study on the 1min chart. I have used the inv() function but that has just been crashing my system. I seem to be missing something. Thank you in advance
    Last edited by tzouros01; 04-23-2009, 07:44 AM.

  • #2
    Re: How to force study to a certain interval

    tzouros01
    You do that using the inv() function [for the description and syntax see the link to the related article in the EFS KnowledgeBase]. Also you may want to review the scripts included in the EFS2 Custom folder in Formulas as most of them are enabled for use with external symbols and/or intervals
    Having said that the inv() function can be used only with the efs2 functions and not with legacy functions such as the Jurik studies.
    With the legacy functions the solution is to include them in a separate function or efs that you call through the use of the efsInternal() or efsExternal() functions [see the links to the articles in the EFS KnowledgeBase] and to which you pass the interval [using the inv() function] that you want that function or efs to run in. For an example of this see the MACD formula this thread
    Alex


    Originally posted by tzouros01
    Could someone pls advise how to force this study to another interval. I want to calc the study for a specific interval. For example a 3min study on the 1min chart. I have used the inv() function but that has just been crashing my system. I seem to be missing something. Thank you in advance

    Comment


    • #3
      thnx alex i'll give it a go

      Comment


      • #4
        tzouros01
        You are most welcome
        Alex


        Originally posted by tzouros01
        thnx alex i'll give it a go

        Comment


        • #5
          Hi, I have a related question about forcing a study to a certain interval. I dropped this line into an efs study I'm working on as an sma filter:

          var vSMA50_15min = new MAStudy(50, 0, "Close", MAStudy.SIMPLE, getInterval(15));

          but it does not work; tried (inv) but it is disallowed. Obviously I am trying to call a 50sma from the 15minute timeframe onto any chart which I put the study on. Would be grateful to know what I'm doing incorrectly.

          Thanks
          Last edited by dk; 05-01-2009, 01:11 AM.

          Comment


          • #6
            dk
            If you want to base a study on the data of a specific interval and maintain the proper synchronization with the data on the chart you need to pass the interval to the study using the inv() function. For the description and syntax of this function together with several examples of its use see this article in the EFS KnowledgeBase
            Note that the inv() function is only available with the efs2 functions [eg sma()] and not with the legacy functions such as the one you used in your code example [ie MAStudy()]. For the description, syntax and complete examples of the efs2 moving average functions see this article in the EFS KnowledgeBase
            Alex


            Originally posted by dk
            Hi, I have a related question about forcing a study to a certain interval. I dropped this line into an efs study I'm working on as an sma filter:

            var vSMA50_15min = new MAStudy(50, 0, "Close", MAStudy.SIMPLE, getInterval(15));

            but it does not work; tried (inv) but it is disallowed. Obviously I am trying to call a 50sma from the 15minute timeframe onto any chart which I put the study on. Would be grateful to know what I'm doing incorrectly.

            Thanks

            Comment

            Working...
            X