Announcement

Collapse
No announcement yet.

Combining 2 MAs to make 1

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

  • Combining 2 MAs to make 1

    Hi

    Is it possible to combine 2 MAs and make it plot 1 line on the chart?

    for example, I want to combine 5MA (Price Source: High) with 5MA (Price Source: Low) and get an average and have that average plot on my chart as 1 line , Is this possible?

  • #2
    masshad
    Click here and download BasicMAx2.efs. Then open the efs with the Editor and replace the following return line
    return new Array (vMA1.getValue(MAStudy.MA),vMA2.getValue(MAStudy.M A));
    with
    return (vMA1.getValue(MAStudy.MA)+vMA2.getValue(MAStudy.M A))/2;
    As to the the specific example you posted you don't need an efs to do it. Just run a 5MA using (High+Low)/2 as the price source and you will get the same exact results.
    Alex

    Comment

    Working...
    X