TradingView
ceyhun
15 Jul 2019 pukul 14.37

Support Resistance Buy Sell Strategy 

British Pound/Australian DollarFXCM

Huraian

Support Resistance Buy Sell Strategy

Nota Keluaran

bugs fixed

Nota Keluaran

fix
Komen
Deathcross666
Doesn’t seem to load up.
Cioo
Hocam merhabalar.

Bu indikatörde yüzdelik kısmını ondalık olarak ayarlama yapma ihtimalimiz var mıdır? Şimdiden teşekkür ederim...
ceyhun
@Cioo, @Cioo, merhaba ondalık hiç denemedim round() ile yazılıyor yüzde yazdığım kısımları sil dene böyle birşey deneyebilirsiniz 1 hariç kötü oldu hiç denemediğim için bilemiyorum.

//@version=2
strategy("Support Resistance Buy Sell Strategy", overlay=true)

pd=input(60)
ondalık=input(1)
k1=highest(high,pd)
k2=lowest(low,pd)

plot(k1,"Resistance",color=green,title="5", linewidth=2)
plot(k1*round(ondalık),"Sell",color=red,title="5", linewidth=2)
plot(k2,"Support",color=green,title="5", linewidth=2)
plot(k2*round(ondalık),"Buy",color=blue,title="5", linewidth=2)

Buy=k2*round(ondalık)
Sell=k1*round(ondalık)

signal =crossover(close,Buy) ? true : crossunder(close,Sell) ? false : signal[1]

longCondition = signal
if (longCondition)
strategy.entry("Long", strategy.long)

shortCondition = signal != true
if (shortCondition)
strategy.entry("Short", strategy.short)
Cioo
Teşekkür ederim. Bir de böyle bakayım. @ceyhun,
Lebih