Announcement

Collapse
No announcement yet.

How to plot the difference of 2 MA?

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

  • How to plot the difference of 2 MA?

    Can anyone please help?

    I would like to plot an indicator of the differnce between a 5 period moving average and a 14 period moving average

    5MA - 14 MA,

    and on the same window plot a 7 period MA and a 14 period MA of the above difference

    7MA of (5MA-14MA) and 14MA of (5MA-14MA)

    Any help would be greatly appreciated. I'm new to EFS. Have been trying the whole night but keep getting syntax error.

  • #2
    If you plot a MACD set at 5 14 and 1 you will get the first line, then create another MACD 7 14 1 and over lay them

    Comment


    • #3
      Yes... that works!

      Thanks Dloomis! That works!

      Comment


      • #4
        valnie
        The attached efs plots the 5-14 and the 7 and 14 MAs of 5-14.
        Alex
        Attached Files

        Comment


        • #5
          Thanks Alexis!

          Now i see how it's being done... Need to brush up on my programming though... it's been years since I've done any variables declaration

          Comment


          • #6
            Hi,
            You can use the Price Oscillator to create the studies (rather than the MACD) - thats if you haven't used this already.

            Paul.

            Comment

            Working...
            X