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)
Don’t you like the one built-in with the platform?
Vonasi pointed me out that it’s a strategy but you posted in ProBuilder (indicators).
I’ll move your topic to ProOrder.
Apologies. I posted in the wrong place.
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.
Thanks Nicolas. I didn’t think of that. Let me try it and see how it works.