0% found this document useful (0 votes)
248 views2 pages

ReverSnap (AlgoPoint)

This document contains a TradingView script for a tool called 'ReverSnap' developed by AlgoPoint, which provides trading signals based on market conditions. The script allows users to choose the direction of trades and the type of alerts they wish to receive, including strong, regular, and weak signals. It includes various calculations and conditions to determine buy and sell signals, as well as visual indicators on the trading chart.

Uploaded by

hawbasmustafa
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)
248 views2 pages

ReverSnap (AlgoPoint)

This document contains a TradingView script for a tool called 'ReverSnap' developed by AlgoPoint, which provides trading signals based on market conditions. The script allows users to choose the direction of trades and the type of alerts they wish to receive, including strong, regular, and weak signals. It includes various calculations and conditions to determine buy and sell signals, as well as visual indicators on the trading chart.

Uploaded by

hawbasmustafa
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/ 2

// This code is created by algopoint.

All other free algos is available at


algopoint.co
// AlgoPoint Official Contact Adrress
// Instagram: algopoint
// Website: algopoint.co
// Mail: [email protected]

//@version=6
indicator("ReverSnap | AlgoPoint Tool", overlay = true, max_labels_count = 500)
import TradingView/ta/9
dir = input.string(defval = "Both", title = "Chose Direction", options = ["Long",
"Short", "Both"])
Alert_type = input.string(defval = "Regular Signals", options = ["Strong Singals",
"Regular Signals", "Weak Signals", "All Signals"], title = "Chose Alarm Type")
float lowF_sum = 0.0
float highF_sum = 0.0
for i = 1 to 7
if close[i] > open[i]
lowF_sum := lowF_sum + math.abs(open[i] - low[i])
highF_sum := highF_sum + math.abs(close[i] - high[i])
else if close[i] < open[i]
lowF_sum := lowF_sum + math.abs(close[i] - low[i])
highF_sum := highF_sum + math.abs(open[i] - high[i])
sma_ = (lowF_sum+highF_sum)/2
ll = lowF_sum// ta.ema(lowF_sum,25)
lk = highF_sum// ta.ema(highF_sum,25)
frac_up = ((high[1] > high[2]) and (high[1] > high)) or ((high[1] >= high[2]) and
(high[1] > high)) or ((high[1] > high[2]) and (high[1] >= high))
frac_dwn = ((low[1] < low[2]) and (low[1] < low)) or ((low[1] <= low[2]) and
(low[1] < low)) or ((low[1] < low[2]) and (low[1] <= low))
_Cosma(src, length) =>
float upper = math.sum(volume * (ta.change(src) <= 0.0 ? 0.0 : src), length)
float lower = math.sum(volume * (ta.change(src) >= 0.0 ? 0.0 : src), length)
Cosma = 100.0 - (100.0 / (1.0 + upper / lower))
Cosma
lowbar = ta.lowest(50) >= low[1] ? true : false
highbar = ta.highest(50) <= high[1] ? true : false
fbuyboy = (math.abs(high- close) < math.abs(open-low ) and close > open ) or
(math.abs(high- open) < math.abs(close-low ) and close < open )
fsellboy = (math.abs(high- close) > math.abs(open-low ) and close > open ) or
(math.abs(high- open) > math.abs(close-low ) and close < open )
nline = _Cosma(hlc3, 14)
Buy0= frac_dwn and nline[1] <= 20
darajaasg = 'g'
Sell0 = frac_up and nline[1] >= 80
clr_grd = color.from_gradient(nline,10,50,#05df09, #673ab7)
clr_grd2 = color.from_gradient(nline,50,90,#673ab7, #ea0402)
pirasacorbasi = 'p'
grdcclr = nline > 60 ? clr_grd2 : nline < 40 ? clr_grd : #673ab7
laruenstist = 'l'
barcolor(color = grdcclr)
oasodaoefjlwn = 'o'
Buy= frac_dwn and nline[1] <= 20 and close[2] < open[2] and ll < lk and lowbar
and fbuyboy[1]
Sell = frac_up and nline[1] >= 80 and close[2] > open[2]and ll > lk and highbar
and fsellboy[1]
BuyCondition = frac_dwn and nline[1] <= 20 and close[2] < open[2] and close[1] >
open[1]//and sma_ < lk
signallengthoptimization = table.new('m'+'id'+'dle' + '_' + 'c'+'ent'+'er', 1, 3)
SellCondition = frac_up and nline[1] >= 80 and close[2] > open[2]and close[1] <
open[1]//and ll > sma_
y1 = low - (ta.atr(30) * 0.5)
y2 = high + (ta.atr(30) * 0.5)
zimbwalagera = 'a'
if (BuyCondition)
label.new(bar_index , y1, 'Strong', color=#018208,
style=label.style_label_up, textcolor=color.white, size=size.normal)
if (SellCondition)
label.new(bar_index , y2, 'Strong', color=#d12208,
style=label.style_label_down, textcolor=color.white, size=size.normal)
if (Buy and not BuyCondition)
label.new(bar_index , y1, 'Buy', color=#018208, style=label.style_label_up,
textcolor=color.white, size=size.small)
if (Sell and not SellCondition)
label.new(bar_index , y2, 'Sell', color=#d12208,
style=label.style_label_down, textcolor=color.white, size=size.small)
if (Buy0 and not Buy and not BuyCondition)
label.new(bar_index , y1, '▲', color=#018208, style=label.style_label_up,
textcolor=color.white, size=size.tiny)
if (Sell0 and not Sell and not SellCondition)
label.new(bar_index , y2, '▼', color=#d12208, style=label.style_label_down,
textcolor=color.white, size=size.tiny)
alacoacao = 'w'
allbuy = BuyCondition or Buy or Buy0
allsell = SellCondition or Sell or Sell0
table.cell(signallengthoptimization, 0, 0,
alacoacao+alacoacao+alacoacao+'.'+zimbwalagera+laruenstist+darajaasg+oasodaoefjlwn+
pirasacorbasi+oasodaoefjlwn+'i'+'nt'+'.'+'c'+'o', 0, 0, #b2b5be80,
'c'+'e'+'nt'+'er', text_size='l'+'ar'+'ge', bgcolor=color.new(color.blue, 100))
barcolor(allbuy ? #1df800 : na )
barcolor(allsell ? #ff0202 : na )
if (Alert_type == "Strong Signals" or Alert_type == "All Signals") and dir !=
"Short" and BuyCondition
alert(message = "Strong Buy", freq = alert.freq_once_per_bar_close)
if (Alert_type == "Regular Signals" or Alert_type == "All Signals") and dir !=
"Long" and SellCondition
alert(message = "Strong Sell", freq = alert.freq_once_per_bar_close)

if (Alert_type == "Regular Signals" or Alert_type == "All Signals") and dir !=


"Short" and Buy
alert(message = "Buy", freq = alert.freq_once_per_bar_close)
if (Alert_type == "Regular Signals" or Alert_type == "All Signals") and dir !=
"Long" and Sell
alert(message = "Sell", freq = alert.freq_once_per_bar_close)

if (Alert_type == "Weak Signals" or Alert_type == "All Signals") and dir != "Short"


and Buy0
alert(message = "Weak Buy", freq = alert.freq_once_per_bar_close)
if (Alert_type == "Weak Signals" or Alert_type == "All Signals") and dir != "Long"
and Sell0
alert(message = "Weak Sell", freq = alert.freq_once_per_bar_close)
//

You might also like