Announcement

Collapse
No announcement yet.

%D & %Da

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

  • %D & %Da

    I am trying to display %D and %D average on a study.
    where %Da is the average of average of %D.

    I am using the build-in MAStudy to get the moving average value. I am using 7.3 build 588.

    Appreciate any help.
    Attached Files

  • #2
    williamyiu
    That can easily be done with the Formula Wizard.
    For instructions on how to do it go to this thread.
    Alex

    Comment


    • #3
      I followed the example and my script was indeed using your example. For some reason, it did not work. The MAStudy return -ve numbers.

      Please take a look at my scripts. It basically the same as your example but I used %D instead of RSI.
      Attached Files

      Comment


      • #4
        williamyiu
        It seems you have found a bug in the Formula Wizard.
        The actual set up for what you are trying to do should have been as shown in the following image



        However there is a problem when applying the SMA to Stoch.SLOW
        There is a workaround though.
        Given that %D is nothing other than a SMA of %K and given that the problem does not happen when applying the SMA to Stoch.FAST we can create %D ourselves and then apply an SMA to that.
        The resulting set up in the Formula Wizard is as shown below



        NOTE: In the Returned Data Points you actually have a choice as to what to use for %D. It can be either Stoch.SLOW or SMA of Stoch.FAST. the result is the same.

        Anyhow attached is the efs that now should give you a %D and a %Da as you wanted (see image below)
        Alex

        Attached Files

        Comment


        • #5
          thank you. To be exact, you need to add 1 more MAStudy to get the %D average.

          Comment

          Working...
          X