Exponential Average of a Daily Pivot Point

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #172009 quote
    oyinloyeaoyinloyea
    Participant
    Veteran

    Can you please help me code the Exponential moving average of the past 8 days. I will like to show on price

    Regards

    #172012 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    There you go:

    MyEma = Average[8,1](close)
    RETURN MyEma AS "Ema8"

    but if you just want it to be plotted on your chart, you could do it yourself with no programming required, by simply adding the built-in (predefined) Exponential Moving Average to your chart, then selecting 8 periods.

    #172017 quote
    oyinloyeaoyinloyea
    Participant
    Veteran

    Thanks for your prompt reply. I think I sent the wrong question.

    Can you please help me code the EMA 8 of the Daily pivot on price.

    Regards

    capture2-1.jpg capture2-1.jpg
    #172023 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Now I got it:

    // Daily Pivot
    Timeframe(Daily,UpdateOnClose)
    MyPivot = (high + low + close) /3  //Daily Pivot
    MyEma   = Average[8,1](MyPivot)    //Ema8 of Daily Pivot
    Timeframe(default)
    RETURN MyEma AS "Ema8 Pivot"
    #172025 quote
    oyinloyeaoyinloyea
    Participant
    Veteran

    Thanks a million . Appreciated

Viewing 5 posts - 1 through 5 (of 5 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

Exponential Average of a Daily Pivot Point


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
oyinloyea @oyinloyea Participant
Summary

This topic contains 4 replies,
has 2 voices, and was last updated by oyinloyeaoyinloyea
5 years, 3 months ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 06/18/2021
Status: Active
Attachments: 1 files
ProRealCode ProRealCode
Loading...