Announcement

Collapse
No announcement yet.

Creating an Envelope for a T3 MA

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

  • Creating an Envelope for a T3 MA

    I am using the T3avg.efs from the tssupport.com website and would like to create an envelope (based on %) for it, similar to the Envelope indicator in the Esignal standard list. Can anyone point me to an existing efs that has this modification, if one exists or how to create it using the wizard?

    (As you can tell, I am not a coder)

    Thanks in Advance.

    Alex.

    http://www.tssupport.com/support/bas...rticle&id=1581

  • #2
    Alex
    In that efs insert a couple of empty lines in between lines 46 and 47 then insert the following just above the return line

    var vUpper = T3Average*(1+(Percent/100));
    var vLower = T3Average*(1-(Percent/100));


    where Percent is the required value (for example 0.5 would be half a percentage point, 3 is 3%, etc)
    Then change the return statement to

    return new Array (vUpper, T3Average,vLower);

    You will then need to add some statements in preMain() to color these lines define the thickness, name the Cursor Window label, etc
    You can see an example of all the above in basicMAChannel.efs which is available here
    Alex

    Comment


    • #3
      Works Great!

      Thanks Alex.

      Comment

      Working...
      X