Announcement

Collapse
No announcement yet.

Make SMA of a variable

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

  • Make SMA of a variable

    I have a variable called vSum. (vSum = 0 in the start of the EFS)

    In "main" it calculates from diffrent other variables. (vSum = ........)

    I want a SMA of vSum to be plotted.
    How do I make a Simple MA of a variable?

    RSy

  • #2
    Hi,

    This thread:

    http://forum.esignalcentral.com/show...=builtin+study

    Talks about what I think is the proper way to deal with passing variables as paramters to the builtins.

    So just use the builtin moving average and use this technique to make the SMA adaptive (which is what I assume you are trying to do). If this isn't what you are trying for, give me more details and I will try to make some suggestions.

    Garth
    Garth

    Comment


    • #3
      Well.... se attached file

      I want a SMA of this line to be plotted. How do I make a SMA of the vSum variable?

      RSy
      Attached Files

      Comment


      • #4
        Hi,

        OK, I got it. While you can use a builtin study as an input for another builtin I don't think CURRENTLY there is any way for you to do what you want with builtins. Nor can you CURRENTLY pass arrays of data to a builin.

        So for now, the only option I see is to create your own SMA of vSum. This isn't too difficult. If you need help doing so let me know and I will try to put this togther for you, though it may take me a bit to get to it as I'm a bit backed up on other projects right now.

        Garth
        Garth

        Comment

        Working...
        X