DPO with past moving averages

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #119652 quote
    Patrick 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
    robertogozzi
    Moderator
    Master
    #157783 quote
    Nicolas
    Keymaster
    Master

    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.

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 Nicolas
5 years, 1 month ago.

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