Announcement

Collapse
No announcement yet.

Special Moving Average

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

  • Special Moving Average

    Hi All,

    I would like to get an EMA (3, High*1.015) and
    an EMA (3, Low*0.0985).

    Can you help me ?

    I have tried to change the Source value in builtinMA formula or basicMA formula but without success !

    Thank you for your help.

    Yours sincerely,

    Olivier Balhan - Belgium

  • #2
    Can anyone help me on this ?

    Olivier

    Comment


    • #3
      Olivier
      Given that EMA (3, High*1.015) returns the same result as (EMA (3, High))*1.015 you can easily create the efs by modifying the basicMAx2.efs which computes two moving averages. That study can be downloaded here
      All you need to do is set one of the averages to use the High as the source and the other to use the Low and then in the return statement multiply each item by its constant ie

      PHP Code:
      return new Array (vMA1.getValue(MAStudy.MA)*1.015vMA2.getValue(MAStudy.MA)*0.0985); 
      These changes will provide you with what you are looking for.
      Alex

      Comment

      Working...
      X