Zero lag moving average

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #68211 quote
    beziehbezieh
    Participant
    Average

    Hey guys!

    I found a code for zero lag moving average, but i need another moving average, and cant figure out how to add it, since it keeps getting errors.
    I’d like to add another longer period moving average with zero lag ofcourse.

    This is the code that got 1 moving average:

     

    //ZeroLag Fast MA:
    PeriodF = 8
    DataF = Close
    lagF = ROUND((PeriodF-1)/2)
    dF = (DataF+(DataF-DataF[lagF]))
    F = average[periodF](dF)

    RETURN F

     

     

    Thanks for help! 🙂

    #68224 quote
    LeoLeo
    Participant
    Veteran

    Error? I just copy paste your code and it works.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
ProRealAI ProRealAI New

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTime™ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

Zero lag moving average


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
bezieh @bezieh Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by LeoLeo
8 years, 5 months ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 04/12/2018
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...