SimpleTradingTechniques

PULLBACK CANDLESTICK STRATEGY BY SIMPLE TRADING TECHNIQUES

Arrow represent trade setup

Circle represent triggering of the trade
--------------------------------------------------------------------
1. Where to place stop loss?
2. Where to exit the trade?
3. How to protect gains in your trade?
4. How to apply money management rule?
5. How to trade gap opening?


开源脚本

本着真正的TradingView精神,该脚本的作者将其开源发布,以便交易者可以理解和验证它。为作者喝彩!您可以免费使用它,但在出版物中重复使用此代码受网站规则的约束。 您可以收藏它以在图表上使用。

免责声明

这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。

想在图表上使用此脚本?
//  By SIMPLE TRADING TECHNIQUES

//   	Arrow represent trade setup 
//   	Circle represent triggering of the trade
//--------------------------------------------------------------------

study(title="STT PULLBACK CANDLESTICK STRATEGY",overlay = true, shorttitle="STT PCS")
src = close, len = input(8, minval=1, title="Length")
up = rma(max(change(src), 0), len)
down = rma(-min(change(src), 0), len)
rsi = down == 0 ? 100 : up == 0 ? 0 : 100 - (100 / (1 + up / down))

//coloring method below

src1 = close, len1 = input(50, minval=1, title="UpLevel")
src2 = close, len2 = input(50, minval=1, title="DownLevel")
isup() => rsi > len1
isdown() => rsi < len2
barcolor(isup() ? green : isdown() ? red : na )

//study('buy/sell arrows', overlay=true)
lowest = lowest(low,(5))
highest = highest(high,(5))
pullbackB = (low == lowest) or (low[1] == lowest[1]) ? 1 : 0
pullbackS = (high == highest) or (high[1] == highest[1]) ? 1 : 0

value = (high - low) / 4
value1 = high - value
value2 = low + value

out = sma(close, 50)

data = (high > out ?  rsi > len1 ? pullbackB ? close >= value1 : na : na : na)  
data1 = (low < out ? rsi < len2 ? pullbackS ? close <= value2 : na : na : na)

plotchar(data, char='↑', location=location.belowbar, color=lime, text="PCS Buy")
plotchar(data1, char='↓', location=location.abovebar, color=red, text="PCS Sell")

//Trade Trigger
tiggerlongcandle = (data[1] == 1) and (high > high[1]) ? 1 : 0
tiggershortcandle = (data1[1] == 1) and (low < low[1]) ? 1 : 0
plotshape(tiggerlongcandle ? tiggerlongcandle : na, title="Triggered Long",style=shape.circle, location=location.belowbar, color=green, transp=0, offset=0, text="PCS")
plotshape(tiggershortcandle ? tiggershortcandle : na, title="Triggered Short",style=shape.circle, location=location.abovebar, color=red, transp=0, offset=0, text="PCS")

plot (out, color = black, linewidth = 3, title = "Trend - Long Term")