Zero Lag moving average

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #45989 quote
    klaus
    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
    Nicolas
    Keymaster
    Master

    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
    klaus
    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
    Despair
    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.

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 Despair
8 years, 5 months ago.

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