DPO with past moving averages

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #119652 quote
    Patrick K TemplarPatrick K Templar
    Participant
    Average

    Hello Nicholas i’ve been trying to use the DPO hear me out though hear me out.

    I’m trying to use the past moving averages not the future the indicator gives you the option of using the past or the future but when I back test it it’s only let me back test the future version so when I base an indicator on the DPO is baseing it on the future moving average are you able to recode it so it doesn’t have the Future part in it and it just gives me a nice zero line Cross using the past moving averages for the code   thank you

    #157777 quote
    robertogozzirobertogozzi
    Moderator
    Legend
    #157783 quote
    NicolasNicolas
    Keymaster
    Legend

    DPO of past moving averages code:

    // **** DPO of past moving average and not future ones :
    
    p = 14
    
    avg = average[p](customclose)
    r = round(p/2) +1
    b = customclose - avg[r]
    myDPO = b
    
    RETURN myDPO as "Detrented Price Oscillator of past datas", 0 coloured(10,10,255) as "0"
    bigiday thanked this post
Viewing 3 posts - 1 through 3 (of 3 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

DPO with past moving averages


ProBuilder: Indicators & Custom Tools

New Reply
Summary

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

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 02/14/2020
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...