0% found this document useful (0 votes)
801 views

AlgoPoint Channels

Uploaded by

nzq63254
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
801 views

AlgoPoint Channels

Uploaded by

nzq63254
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 3

// This code is created by algopoint.

All other leaked algos is available at


algopoint.mysellix.io
// AlgoPoint Official Contact Adrress
// Instagram: algopoint
// Instagram: algopoint01
// Website: algopoint.mysellix.io
// Mail: algopointstore@gmail.com

//@version=5
indicator("Reversal Channels [AlgoPoint]", "AlgoPoint - Reversal Channels", overlay
= true)
//------------------------------------------------------------------------------
//Settings
//-----------------------------------------------------------------------------{
length = input.int(200, 'Length', minval = 2)
mult = input.float(6., 'Factor', minval = 0, step = .5)
tf = input.timeframe('', 'Timeframe')
src = input(close, 'Source')

//-----------------------------------------------------------------------------}
//Function
//-----------------------------------------------------------------------------{
pred_ranges(length, mult)=>
var avg = src
var hold_atr = 0.

atr = nz(ta.atr(length)) * mult

avg := src - avg > atr ? avg + atr :


avg - src > atr ? avg - atr :
avg

hold_atr := avg != avg[1] ? atr / 2 : hold_atr

[avg + hold_atr * 2, avg + hold_atr, avg, avg - hold_atr, avg - hold_atr * 2]

//-----------------------------------------------------------------------------}
//Calculation
//-----------------------------------------------------------------------------{
[prR2
, prR1
, avg
, prS1
, prS2] = request.security(syminfo.tickerid, tf, pred_ranges(length, mult))

//-----------------------------------------------------------------------------}

//-----------------------------------------------------------------------------}
lengthhh = input.int(10,"Channel Calculation Length", minval=1)
offset = 0
maTypeInput = input.string("SMA", title="MA Type", options=["SMA", "EMA", "SMMA
(RMA)", "WMA", "VWMA"], group="MA Settings")
maLengthInput = input.int(14, title="Smooth", group="MA Settings")
bbMultInput = 2.0
len = 14
stddev = ta.stdev(src, lengthhh)
upper = ta.ema(ta.change(src) <= 0 ? 0 : stddev, len)
lower = ta.ema(ta.change(src) > 0 ? 0 : stddev, len)
rvi = upper / (upper + lower) * 100
ma(source, lengthhh, type) =>
switch type
"SMA" => [ta.sma(source, lengthhh), na, na]
"Bollinger Bands" =>
[middleValue, highValue, lowValue] = ta.bb(source, lengthhh,
bbMultInput)
[middleValue, highValue, lowValue]
"EMA" => [ta.ema(source, lengthhh), na, na]
"SMMA (RMA)" => [ta.rma(source, lengthhh), na, na]
"WMA" => [ta.wma(source, lengthhh), na, na]
"VWMA" => [ta.vwma(source, lengthhh), na, na]

[rviMA,highValue,lowValue] = ma(rvi, maLengthInput, maTypeInput)

// h0 = hline(80, "Upper Band", color=#787B86)


// hline(50, "Middle Band", color=color.new(#787B86, 50))
// h1 = hline(20, "Lower Band", color=#787B86)
// fill(h0, h1, color=color.rgb(126, 87, 194, 90), title="Background")

// plot(rvi, title="RVI", color=#7E57C2, offset = offset)


// plot(rviMA, "RVI-based MA", color=color.yellow, offset = offset)

// bbUpper = plot(highValue, title="Upper Bollinger Band", color=color.green)


// bbLower = plot(lowValue, title="Lower Bollinger Band", color=color.green)
// fill(bbUpper, bbLower, color = color.new(color.green, 90), title="Bollinger
Bands Background Fill")

Redcolor = avg != avg[1] ? na : #f2364615


Greencolor = avg != avg[1] ? na : #08998115
transpRedcolor = avg != avg[1] ? na : color.new(#f23645, 85)
transpGreencolor = avg != avg[1] ? na : color.new(#089981, 85)

percal = prS1 - prS2


percentagecal = ((((prS1 - prS2) / 100) * rviMA) + prS2)
percentagecalinvert = ((percentagecal - (percentagecal * 2)) + (prS1 * 2)) - percal
uplevellerr = (prR1 - percentagecal) + prS1

//Plots
//-----------------------------------------------------------------------------{
plot_pru2 = plot(prR2, 'PR Upper 2', avg != avg[1] ? na : #f2364615)
plot_pru1 = plot(prR1, 'PR Upper 1', avg != avg[1] ? na : #f2364600)
plot_pravg = plot(avg , 'PR Average', avg != avg[1] ? na : #ffffff15)
plot_prl1 = plot(prS1, 'PR Lower 1', avg != avg[1] ? na : #08998100)
plot_prl2 = plot(prS2, 'PR Lower 2', avg != avg[1] ? na : #08998115)
plotupperlevel = plot(uplevellerr, title="Upper Reversal", color=Redcolor)
plotdownlevel = plot(percentagecalinvert, title="Lower Reversal", color=Greencolor)
//Fills
fill(plot_pru2, plot_pru1, avg != avg[1] ? na : color.new(#f23645, 90))
fill(plot_prl1, plot_prl2, avg != avg[1] ? na : color.new(#089981, 90))

//fill(prR2, uplevellerr, avg != avg[1] ? na : color.new(#f23645, 85))


//fill(prS2, percentagecalinvert, avg != avg[1] ? na : color.new(#089981, 85))
fill(plot_pru2, plotupperlevel, transpRedcolor)
fill(plot_prl2, plotdownlevel, transpGreencolor)

//text inputs
var user_consensus = input.string(defval="", title="By going to
algopoint.mysellix.io or by clicking on the link in the algopoint instagram bio you
can get the leaked codes for all premium indicators like Elite Algo, EzAlgo and
LuxAlgo. Free products are also available! algopoint.mysellix.io", confirm = true,
group="AlgoPoint")
title = 'AlgoPoint'
subtitle = 'All Leaked Algos \n Instagram: algopoint \n Website:
algopoint.mysellix.io \n FREE'
textVPosition = 'middle'
textHPosition = 'center'
symVPosition = 'top'
symHPosition = 'left'
width = 0
height = 0
c_title = #b2b5be80
s_title = 'large'
a_title = 'center'
c_subtitle = #b2b5be80
s_subtitle = 'normal'
a_subtitle = 'center'
c_bg = color.new(color.blue, 100)
//text watermark creation
textstylist = table.new(textVPosition + '_' + textHPosition, 1, 3)
table.cell(textstylist, 0, 0, title, width, height, c_title, a_title,
text_size=s_title, bgcolor=c_bg)
table.cell(textstylist, 0, 1, subtitle, width, height, c_subtitle, a_subtitle,
text_size=s_subtitle, bgcolor=c_bg)

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy