expanding the selection of moving average types

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #167663 quote
    nonethelessnonetheless
    Participant
    Master

    I’ve been using the following to include DEMA and TEMA in the range of moving averages to be compared when optimizing ‘t’ (0-10)

    ma = average[p,t](typicalprice)
    if t = 9 then
    ma = DEMA[p](typicalprice)
    elsif t = 10 then
    ma = TEMA[p](typicalprice)
    endif
    cb1 = ma > ma[1]

    This works well enough – my question is, are there others that can be included in this way?

    I know there are dozens of moving average types but will any of them work with this syntax without writing the whole formula?

    #167665 quote
    VonasiVonasi
    Moderator
    Master

    Not exactly in that way but you could CALL this indicator and have access to another 66 averages.

    Average Filter Regression

    #167666 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Actually ALL of those at https://www.prorealcode.com/prorealtime-indicators/average-filter-regression/.

    You could make a CALL to that indicator with the correct parameters and assign the returned value to ma.

    #167668 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    AhAhAh…. same idea Vonasi, you were just a bit quicker!

    #167669 quote
    VonasiVonasi
    Moderator
    Master

    It might be interesting to put some of them through testing like this:

    Average tester – are averages any good?

    I’ll leave you to do it as the sun is out here in Greece and Spring is in the air….

    #167670 quote
    nonethelessnonetheless
    Participant
    Master

    Thanks to you both, I’ll check it out.

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

expanding the selection of moving average types


ProOrder: Automated Strategies & Backtesting

New Reply
Author
Summary

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

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 04/21/2021
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...