Announcement

Collapse
No announcement yet.

How can I do an ema of %b?

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

  • How can I do an ema of %b?

    I'd like to double-smooth Bollinger's %b, but somehow my usual approach -- ema(3, ema(14, efsInternal ("XXXX"))) -- isn't working.

    Don't know what's wrong, & would appreciate some help.

    Thanks.
    Attached Files

  • #2
    Osteve
    In the setEmaBase function you omitted to add a null check for the values used in the equation that calculates sig
    For an example see the original Percent B.efs that you used as a base for your script
    Alex

    Comment


    • #3
      Many thanks

      Many thanks, Alex. That fixed the problem.

      I'm definitely weak on housekeeping & initialization coding requirements. Is there a specific resource on-line that would help me bone up on that area?

      Comment


      • #4
        Osteve
        For a detailed introduction to JavaScript - which is at the foundation of efs - you may want to review the JavaScript for EFS video series. Then for information specific to efs you may want to review the Help Guides and Tutoirials section in the EFS KnowledgeBase
        Alex

        Comment

        Working...
        X