I want to create a MQL5 from a pine using ta super stratgy i tested in Tradeview test it show it working and use it for nasdaq 100

MQL5 Experten Beratung

Spezifikation

//@version=5
strategy("Supertrend Strategy", overlay=true, default_qty_type=strategy.percent_of_equity, default_qty_value=15)

// Input parameters
atrPeriod = input(10, "ATR Length")
factor = input.float(3.0, "Factor", step=0.01)
trailATR = input.int(1, "ATR Trail", minval=1)

// Calculate Supertrend
[_, trendUp] = ta.supertrend(factor, atrPeriod)

// Entry conditions
longEntry = ta.change(trendUp) < 0
shortEntry = ta.change(trendUp) > 0

// Exit conditions (trail stop with ATR)
longExit = strategy.position_size > 0 and close < nz(strategy.position_avg_price) - trailATR * ta.atr(atrPeriod)
shortExit = strategy.position_size < 0 and close > nz(strategy.position_avg_price) + trailATR * ta.atr(atrPeriod)

// Manage positions
strategy.entry("Long", strategy.long, when=longEntry)
strategy.entry("Short", strategy.short, when=shortEntry)

strategy.close("Long", when=longExit)
strategy.close("Short", when=shortExit)

// Plot equity curve
plot(strategy.equity, title="Equity", color=color.blue, linewidth=2, style=plot.style_line)


Bewerbungen

1
Entwickler 1
Bewertung
(156)
Projekte
219
22%
Schlichtung
14
64% / 21%
Frist nicht eingehalten
1
0%
Überlastet
2
Entwickler 2
Bewertung
(563)
Projekte
932
47%
Schlichtung
301
59% / 25%
Frist nicht eingehalten
124
13%
Arbeitet
3
Entwickler 3
Bewertung
(7)
Projekte
5
20%
Schlichtung
3
0% / 33%
Frist nicht eingehalten
1
20%
Arbeitet
4
Entwickler 4
Bewertung
(35)
Projekte
57
35%
Schlichtung
4
25% / 50%
Frist nicht eingehalten
6
11%
Beschäftigt
Ähnliche Aufträge
The basic indicator and the only indicator to be used is PRICE PERCENT RANGE and the indicator files are attached. A picture to visualize what is required is also attached. Job: Indicator : 1. Add Buy alert and Buy arrow function,if the price%R value touches or goes below value 9.5 or the user specified,after candle close. 2. Add Sell alert and Sell arrow function,if the price%R value touches or goes below value 90.5

Projektdetails

Budget
30+ USD
Für die Entwickler
27 USD