RSI
RSI
----------------------------------------------------------------------------------
Pista Ciclica - critical track
version 2.0
//@version=3
study("Pista Ciclica")
lenght = input(25, minval=1)
ema = ema(close, lenght)
ema2 = ema(close, 1)
pista_ciclica = ema2 - ema
hline = hline(0, color=red, linestyle=dotted)
bcolor = iff( pista_ciclica > 0, iff( pista_ciclica > nz(pista_ciclica[1]), lime,
green), iff( pista_ciclica < nz(pista_ciclica[1]), red, maroon))
plot(pista_ciclica, style=area, color=bcolor, title="Pista ciclica")
----------------------------------------------------------------------------------
Pista Ciclica - critical track
version 1.0
//@version=3
study("My Script")
ema = ema(close, 25)
ema2 = ema(close, 1)
pista_ciclica = ema2 - ema
hline = hline(0, color=red, linestyle=dotted)
plot(pista_ciclica, style=area, color = change(pista_ciclica) <= 0 ? red : green,
title="Pista ciclica")
-----------------------------------------------------------------------------------
--------------------
PI cycle
// This source code is subject to the terms of the Mozilla Public License 2.0 at
https://mozilla.org/MPL/2.0/
// � @NoCreditsLeft
//@version=4
study("Pi Cycle Bitcoin High/Low", shorttitle="Pi Cycle Bitcoin High/Low",
overlay=true)
//Set SRC
src = security(syminfo.tickerid, resolution, close)
//Create Labels
plotshape(PiCycleLow, text="Pi Cycle Low", color=color.navy, textcolor=color.white,
style=shape.labelup,size=size.normal, location=location.belowbar, title="Cycle
Low")
plotshape(PiCycleHi, text="Pi Cycle High", color=color.teal, textcolor=color.white,
style=shape.labeldown,size=size.normal, location=location.abovebar, title="Cycle
High")
// First Halving
if isDate(2012, 11, 28)
line.new(bar_index, low, bar_index, high, xloc.bar_index, extend.both,
style=line.style_dashed, color=color.yellow)
label.new(bar_index, low, text="1st Halving - Nov 28, 2012",
style=label.style_label_upper_left, textcolor=color.yellow, color=color.black,
textalign=text.align_right, yloc=yloc.belowbar)
// Second Halving
if isDate(2016, 7, 9)
line.new(bar_index, low, bar_index, high, xloc.bar_index, extend.both,
style=line.style_dashed, color=color.yellow)
label.new(bar_index, low, text="2nd Halving - Jul 9, 2016",
style=label.style_label_upper_left, textcolor=color.yellow, color=color.black,
textalign=text.align_right, yloc=yloc.belowbar)
// Third Halving
if isDate(2020, 5, 11)
line.new(bar_index, low, bar_index, high, xloc.bar_index, extend.both,
style=line.style_dashed, color=color.yellow)
label.new(bar_index, low, text="3rd Halving - May 11, 2020",
style=label.style_label_upper_left, textcolor=color.yellow, color=color.black,
textalign=text.align_right, yloc=yloc.belowbar)
// Fourth Halving
//if isDate(2024, 3, 26)
// line.new(bar_index, low, bar_index, high, xloc.bar_index, extend.both,
style=line.style_dashed, color=color.yellow)
// label.new(bar_index, low, text="4th Halving - March 26, 2024",
style=label.style_label_upper_left, textcolor=color.yellow, color=color.black,
textalign=text.align_right, yloc=yloc.belowbar)
-----------------------------------------------------------------------------------
----------
//@version=4
study(title="Stochastic RSI", shorttitle="Stoch RSI", format=format.price,
precision=2, resolution="", overlay=true)
//Daily Open
dOpen = security(syminfo.tickerid, "D", open, lookahead = barmerge.lookahead_on)