Wilder Moving Average Strategy

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #137161 quote
    Majellan
    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
    robertogozzi
    Moderator
    Master

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

    #137165 quote
    robertogozzi
    Moderator
    Master

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

    I’ll move your topic to ProOrder.

    #137181 quote
    Majellan
    Participant
    Average

    Apologies. I posted in the wrong place.

    #137211 quote
    Nicolas
    Keymaster
    Master

    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
    Nicolas
    Keymaster
    Master
    #137213 quote
    Majellan
    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.

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 Majellan
5 years, 8 months ago.

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