TradingView
ceyhun
15 Th07 2019 14:37

Support Resistance Buy Sell Strategy 

British Pound/Australian DollarFXCM

Mô tả

Support Resistance Buy Sell Strategy

Phát hành các Ghi chú

bugs fixed

Phát hành các Ghi chú

fix
Bình luận
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,
Thêm nữa