# SSL Channel Chart Indicator

**URL:** <https://community.tradovate.com/t/ssl-channel-chart-indicator/1173>\
**Category:** Custom Indicators\
**Created:** [November 23, 2020, 8:10am UTC](https://community.tradovate.com/t/ssl-channel-chart-indicator/1173 "2020-11-23T08:10:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![David\_Weyandt](https://avatars.discourse-cdn.com/v4/letter/d/76d3ee/32.png) [@David\_Weyandt](https://community.tradovate.com/u/David_Weyandt)\
**Post date:** [November 23, 2020, 8:10am UTC](https://community.tradovate.com/t/ssl-channel-chart-indicator/1173/1 "2020-11-23T08:10:04Z")

</div>

Hello,  
I’m looking to see if someone can convert the SSL Channel Chart indicator from TradingView into a working indicator for Tradovate.

Author: ErwinBeckers

Source:  
//@version=3  
study(“SSL channel”, overlay=true)  
period=input(title=“Period”, defval=10)  
len=input(title=“Period”, defval=10)  
smaHigh=sma(high, len)  
smaLow=sma(low, len)  
Hlv = na  
Hlv := close \> smaHigh ? 1 : close \< smaLow ? -1 : Hlv[1]  
sslDown = Hlv \< 0 ? smaHigh: smaLow  
sslUp = Hlv \< 0 ? smaLow : smaHigh

plot(sslDown, linewidth=2, color=red)  
plot(sslUp, linewidth=2, color=lime)

Thanks!
