Zero Lag moving average

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #45989 quote
    klausklaus
    Participant
    Veteran

    Dear all,

    does anybody know how to code the zero lag moving average, unfortunately I don’t find documentation.

    If you use an average on a chart, among other averages you can use it.

     

    thanks Klaus

    #46029 quote
    NicolasNicolas
    Keymaster
    Legend

    There are a lot of codes around here with the zerolag moving average, I just found one:

    //ZeroLag Fast MA:
    PeriodF = 9
    DataF = Close
    lagF = ROUND((PeriodF-1)/2)
    dF = (DataF+(DataF-DataF[lagF]))
    F = exponentialaverage[periodF](dF)
    
    RETURN F
    #46031 quote
    klausklaus
    Participant
    Veteran

    thanks a lot Nicolas,

     

    I thought that there is a function, since there is also the possibility to have it as moving average in a chart.

     

    ciao Klaus

    #46059 quote
    DespairDespair
    Blocked
    Master

    There are several indicators available in PRT that don’t exist as command in the code.

Viewing 4 posts - 1 through 4 (of 4 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
klaus @klaus Participant
Summary

This topic contains 3 replies,
has 3 voices, and was last updated by DespairDespair
9 years ago.

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