Tâche terminée
Temps d'exécution 9 jours
Spécifications
//@version=4
study(title="Average True Range Stop Loss Finder", shorttitle="ATR", overlay=true)
length = input(title="Length", defval=14, minval=1)
smoothing = input(title="Smoothing", defval="RMA", options=["RMA", "SMA", "EMA", "WMA"])
m = input(1.5, "Multiplier")
src1 = input(high)
src2 = input(low)
pline = input(true, "Show Price Lines")
col1 = input(color.blue, "ATR Text Color")
col2 = input(color.teal, "Low Text Color",inline ="1")
col3 = input(color.red, "High Text Color",inline ="2")
collong = input(color.teal, "Low Line Color",inline ="1")
colshort = input(color.red, "High Line Color",inline ="2")
ma_function(source, length) =>
if smoothing == "RMA"
rma(source, length)
else
if smoothing == "SMA"
sma(source, length)
else
if smoothing == "EMA"
ema(source, length)
else
wma(source, length)
a = ma_function(tr(true), length) * m
x = ma_function(tr(true), length) * m + src1
x2 = src2 - ma_function(tr(true), length) * m
p1 = plot(x, title = "ATR Short Stop Loss", color= colshort, transp=20, trackprice = pline ? true : false)
p2 = plot(x2, title = "ATR Long Stop Loss", color= collong, transp=20, trackprice = pline ? true : false)
Répondu
1
Évaluation
Projets
462
26%
Arbitrage
139
20%
/
60%
En retard
100
22%
Gratuit
2
Évaluation
Projets
60
45%
Arbitrage
8
50%
/
38%
En retard
7
12%
Gratuit
3
Évaluation
Projets
92
62%
Arbitrage
0
En retard
4
4%
Gratuit
4
Évaluation
Projets
29
14%
Arbitrage
3
0%
/
67%
En retard
3
10%
Travail
5
Évaluation
Projets
499
67%
Arbitrage
5
40%
/
0%
En retard
4
1%
Gratuit
Publié : 8 codes
6
Évaluation
Projets
845
73%
Arbitrage
15
53%
/
13%
En retard
193
23%
Gratuit
Informations sur le projet
Budget
30+ USD
Délais
à 1 jour(s)