Announcement

Collapse
No announcement yet.

Proposed modification to osc(ma1,ma2)

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

  • Proposed modification to osc(ma1,ma2)

    Most EFS2 studies allow for flexible data series as parameters, but not osc and macd [which the same]. For those two studies the inputs MUST be ma's and CANNOT be from the studies already declared [even if they are ma's].


    I suggest to modify osc function to accept any already declared data series.

    For example, if I already have
    var stMA1 = sma(Per1);
    var stMA2 = sma(Per2);

    then
    var stOsc1 = osc(stMA1,stMA2);
    should be accepted.

    The advantages are many, from time saving [large ma's eat up processing time], to allowing easy diferential calculastion for many other studies [ex: delta between stoch, rsi, etc. in two diferent time intervals].

    Thank you.
    Mihai Buta

  • #2
    mbuta,

    You can always write your own osc function and use efsInternal or efsExternal to make it into a series.

    For example:

    function myOsc(Series1, Series2)
    {
    return Series1.getValue(0) - Series2.getValue(0);
    }


    Then use efsInternal("myOsc", series1, series2);

    Steve
    Last edited by smeyer55; 10-17-2007, 02:20 PM.

    Comment


    • #3
      Steve,

      Good to hear from you again.
      I know that and I am using it, even more efficient. I just calculate the diference in a function. This way, I don't introduce any additional processing time.

      But I still believe that osc and macd functions should be changed to allow data series. It makes a lot of sense, for many reasons.

      Regards,
      Mihai Buta

      Comment

      Working...
      X