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
Announcement
Collapse
No announcement yet.
How to force study to a certain interval
Collapse
X
-
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
-
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.
ThanksLast edited by dk; 05-01-2009, 01:11 AM.
Comment
-
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
Comment