Blue Magik SSL Indicator for ThinkorSwim

BenTen

BenTen

Administrative
Staff
VIP
I came across this indicator on TradingView. The author said he added additional EMAs (13+21+55) into the code (which I did not) because you can easily do that in ThinkorSwim. Turned out this is the same version as the one converted by @skynetgen. I didn't want it to go to waste so I'm just dropping it here :)

You just treat it like a simple SMA crossover strategy and trade in the direction it's going.



thinkScript Code

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));
 
MBF

MBF

Active member
2019 Donor
@BenTen I decided to take a look at this indicator as a lower study. It works pretty well, especially if you use the right side of the chart.
It's just a preference, works either way.
 
3AMBH

3AMBH

Member
2019 Donor
VIP
I like using this on the Lower Study. As a lower study does anyone see a benefit of adding the ability to show up & down arrows & a an alert on the chart when a Blue Magik cross takes place? Here I show using it with the NEW VIP AMM indicator. (I'm Feelin a "Grail" Comin one!) LOL!

10.png


12.png


11.png
 
Last edited:
H

Happymono

New member
VIP
Curious on any scripts similar to this off of tradingview from the creator
This EMA Candles indicator use the price movement between two user selected Exponential Moving Averages to help determine the current trend.

As of release, there are 5 possible bar color outputs, all of which are shown in the legend above.

The Five Electable Color Outputs:
Uptrend; Strong Uptrend; Downtrend; Strong Downtrend; n/a

I hope you all enjoy!

Please leave your suggestions in the comments below!

Code:
//@version=3
//DEPTHHOUSE EMA CANDLESTICKS by oh92
//if you edit please drop a line :)
//
study(title="EMA Candles", shorttitle="DepthHouse EMA Candles", overlay=true)

////INPUTS////
src = input(title="Source", type=source, defval=close)
fast=input(12) //Fast EMA Band
slow=input(50) //Slow EMA Band

////EMA FORMULAS////
fe=ema(src,fast)
se=ema(src,slow)

////OH92's FAVORITE COLORS////
g = #8cffe5
r = #ff848a
gg = #adff75
rr = #ff80be
w = #ffffff

////BAR COLOR FORMULA////
bc=fe>se?crossunder(src,se)?w:src>fe?g:src>se?gg:w:crossover(src,se)?w:src<fe?r:src<se?rr:src>fe?src>se?gg:na:na

///OUTPUT///
barcolor(bc)
 
Last edited:
Thread starter Similar threads Forum Replies Date
blackbeard12 Convert SSL Indicator to ThinkorSwim Questions 7
Similar threads

Top