TradingView
SeaSide420
27 เมษา 2020 เวลา 2 นาฬิกา 47 นาที

TSI CCI Hull 

British Pound/U.S. DollarFXCM

คำอธิบาย

This Strategy is Using TSI and CCI and Hull Moving Average to make swing trades on 1H chart but can be used on any pair and timeframe just change settings to suit (Hull Period mostly)
ความคิดเห็น
shivan.pereira
How do I add an alert for the signal for Buy/ Sell (Red/ Green Dots) ?
because when you normally add an Alert it asks to input the value of crossing, rather than letting you just select the Buy/ Sell options
SeaSide420
@ShIvan.pereira, hi Shivan.Pereira, thanks for the coins! much appreciated. Your request has been put at the top of the TO DO List.
i will rebuild this script and re-publish it for you today. Adding Alerts for the RED GREEN dots.
SeaSide420
SeaSide420
@SeaSide420, this link to ALERT VERSION (or check my recently published)
SeaSide420
@ShIvan.pereira, TV deleted the script i made for you. As they do to most of my scripts these days. because i dont write a NewB friendly description. probably 90% of TV users are newB traders, as the only 10% can continue trading on a permanent basis. So i guess it really matters to them...
Anyways, here is the script
SeaSide420
@SeaSide420,
//@version=5 indicator(title='TSI CCI Hull Alerts', shorttitle='TSICCIHULL') long = input(title='Long Length', defval=50) short = input(title='Short Length', defval=50) signal = input(title='Signal Length', defval=25) price = input(title='Source', defval=open) Period = input.int(25, minval=1) lineupper = input(title='Upper Line', defval=100) linelower = input(title='Lower Line', defval=-100) p = price length = Period double_smooth(src, long, short) => fist_smooth = ta.ema(src, long) ta.ema(fist_smooth, short) pc = ta.change(price) double_smoothed_pc = double_smooth(pc, long, short) double_smoothed_abs_pc = double_smooth(math.abs(pc), long, short) tsi_value = 100 * (double_smoothed_pc / double_smoothed_abs_pc) keh = tsi_value * 5 > linelower ? color.red : color.lime teh = ta.ema(tsi_value * 5, signal * 5) > lineupper ? color.red : color.lime meh = ta.ema(tsi_value * 5, signal * 5) > tsi_value * 5 ? color.red : color.lime i1 = plot(tsi_value * 5, title='TSI Value', color=color.new(color.black, 100), linewidth=1) i2 = plot(ta.ema(tsi_value * 5, signal * 5), title='TSI Signal', color=color.new(color.black, 100), linewidth=1) fill(i1, i2, color=meh) plot(ta.cross(tsi_value * 5, ta.ema(tsi_value * 5, signal * 5)) ? tsi_value * 5 : na, style=plot.style_circles, color=color.new(color.black, 0), linewidth=10) plot(ta.cross(tsi_value * 5, ta.ema(tsi_value * 5, signal * 5)) ? tsi_value * 5 : na, style=plot.style_circles, color=color.new(color.white, 0), linewidth=8) plot(ta.cross(tsi_value * 5, ta.ema(tsi_value * 5, signal * 5)) ? tsi_value * 5 : na, style=plot.style_circles, color=meh, linewidth=5) n2ma = 2 * ta.wma(p, math.round(length / 2)) nma = ta.wma(p, length) diff = n2ma - nma sqn = math.round(math.sqrt(length)) n1 = ta.wma(diff, sqn) cci = (p - n1) / (0.015 * ta.dev(p, length)) c = cci > 0 ? color.lime : color.red c1 = cci > 20 ? color.lime : color.silver c2 = cci < -20 ? color.red : color.silver cc = plot(cci, color=c, title='CCI Line', linewidth=2) cc2 = plot(cci[1], color=color.new(color.gray, 100), linewidth=1) fill(cc, cc2, color=c) plot(ta.cross(20, cci) ? 20 : na, style=plot.style_cross, title='CCI cross UP', color=c1, linewidth=2, offset=-2) plot(ta.cross(-20, cci) ? -20 : na, style=plot.style_cross, title='CCI cross down', color=c2, linewidth=2, offset=-2) TSI1 = ta.ema(tsi_value * 5, signal * 5) TSI2 = ta.ema(tsi_value * 5, signal * 5)[2] hullma_smoothed = ta.wma(2 * ta.wma(n1, Period / 2) - ta.wma(n1, Period), math.round(math.sqrt(Period))) longCondition = TSI1 > TSI2 and hullma_smoothed < price and cci > 0 shortCondition = TSI1 < TSI2 and hullma_smoothed > price and cci < 0 alertcondition(longCondition and cci > cci[1] and cci > 0 and n1 > n1[1], title='Green Alert', message='Green Dot Alert =(BUY)') alertcondition(shortCondition and cci < cci[1] and cci < 0 and n1 < n1[1], title='Red Alert', message='Red Dot Alert =(SELL)')
shivan.pereira
@SeaSide420, Thanks Mate, appreciate it
godugotijayaram
Is it repaints????
Devilarshon
This would be a nice addition as a library, so it could be used in any strategy
Jova-A
Your work is Brilliant, Thanks for sharing 🥂
เพิ่มเติม