lovetotrade
Member
- Platform
-
- Thinkorswim
Code:
# Blue Magik SSL
# I assume this is based on the popular SSL indicator
# Assembled by BenTen at useThinkScript.com
# Converted from https://www.tradingview.com/script/i85H2tZ8-blue-magik/
input period = 10;
input len = 10;
def smaHigh = simpleMovingAvg(high, len);
def smaLow = simpleMovingAvg(low, len);
def Hlv = if close > smaHigh then 1 else if close<smaLow then -1 else Hlv[1];
def sslDown = if Hlv< 0 then smaHigh else smaLow;
def sslUp = if Hlv< 0 then smaLow else smaHigh;
plot up = sslUp;
plot down = sslDown;
up.SetDefaultColor(GetColor(1));
down.SetDefaultColor(GetColor(0));
addcloud(up, down, color.green, color.red);
please gang i need a favor from the smarter thinkscript expert here, i found this great indicator, i will like to paint the candles with signal and maybe plot a arrow also if is possible a Scan. thank you some much in advance
Last edited by a moderator: