Wilder Moving Average Strategy

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #137161 quote
    MajellanMajellan
    Participant
    Average

    Could some convert this Pinescript strategy to a ProRealtime strategy please?

    //@version=4
    strategy(“Wilder’s Moving Average Strategy”, overlay=true)

    malength = input(36, “length”, minval=1)

    longd = false
    shortd = false
    lineColor = color.yellow
    wild = 0.0

    wild := nz(wild[1]) + (close -nz(wild[1]))/malength

    longd := wild > wild[1]

    shortd := wild < wild[1]

    lineColor := longd ? color.green : shortd ? color.red : color.yellow

    plot(wild, color=lineColor, linewidth=2, title=”WILD”)

    if longd
    strategy.entry(“long”, strategy.long, when = strategy.position_size <= 0) else if shortd strategy.entry(“short”, strategy.short, when = strategy.position_size >= 0)

    #137162 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Don’t you like the one built-in with the platform?

    #137165 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Vonasi pointed me out that it’s a strategy but you posted in ProBuilder (indicators).

    I’ll move your topic to ProOrder.

    #137181 quote
    MajellanMajellan
    Participant
    Average

    Apologies. I posted in the wrong place.

    #137211 quote
    NicolasNicolas
    Keymaster
    Legend

    This strategy is basically using the slope of the Wilder Average to enter at market. Did you know how it operates? The assisted creation is your best friend in case of simple strategy like this.

    #137212 quote
    NicolasNicolas
    Keymaster
    Legend
    #137213 quote
    MajellanMajellan
    Participant
    Average

    Thanks Nicolas. I didn’t think of that. Let me try it and see how it works.

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

Wilder Moving Average Strategy


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
Majellan @pbateson9 Participant
Summary

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

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 06/25/2020
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...