[RS]Vector Flow Channel V1

small update: added ability to setup stage 2 length period.
Remove from Favorite Scripts Add to Favorite Scripts
study(title="[RS]Vector Flow Channel V1", shorttitle="[RS]VFC.V1", overlay=true)
decay = atr(10)*0.005
stage1 = input(5)
stage2 = input(10)
stage3 = input(20)
stage1length = input(100)
stage2length = stage1length + input(100)
pretopvector01 = nz(topvector01[1], close)
topvector01 = close >= pretopvector01 ? close : pretopvector01 - (decay * topvector01finalcounter[1])
topvector01counter = n - valuewhen(close >= topvector01, n, 0)
topvector01finalcounter = topvector01counter <= stage1length ? stage1 : topvector01counter <= stage2length ? stage2 : stage3

prebotvector01 = nz(botvector01[1], close)
botvector01 = close <= prebotvector01 ? close : prebotvector01 + (decay * botvector01finalcounter[1])
botvector01counter = n - valuewhen(close <= botvector01, n, 0)
botvector01finalcounter = botvector01counter <= stage1length ? stage1 : botvector01counter <= stage2length ? stage2 : stage3

pt = plot(topvector01, color=(topvector01 == close ? na : black))
pb = plot(botvector01, color=(botvector01 == close ? na : black))
fill(pt, pb, color=blue, transp=90)
what indicator is this based on? Regression?
RicardoSantos DavidTrades
yes this is based on linear regression
DavidTrades RicardoSantos
Thanks, this is actually very useful for me. Much more than just chart art.
isomorph RicardoSantos
no offense, but how is it based on regression? there is no regression computation in the code.
my apologies, poorly used term :s
it would likely make more sense as mean regression.
isomorph RicardoSantos
ok no worries. could you please explain a little more about the origin of the algorithm? is this something you found on some site like stockcharts.com or investopedia? or is it your idea and if so, what is the main rationale behind it?

i ask because i am puzzled by this notion of using atr as a decay factor. in other words, why? why think of atr as 'decay'?
not at all, is mostly inspired by sar and gann fan's visual appearance, the rationale is the perception of price decay over time.

the atr was just a means to a end, it could be very well an input, pip or other unit of measurement.
isomorph RicardoSantos
ok thanks. in your testing, what did you find out regarding the usefulness of study VFC for TFs < daily?
Ricardo your Vector Flow Channel is very interesting. Could you please explain the theory behind it?
RicardoSantos dave.seremek
i suppose i could say some crazy stuff like "imagine that price is like a leaf in the river of time flowing with the current and being dragged by the wind" to sound smart lol...
but in truth its a visual perception trick caused by the brain. support and resistance is as a reactionary effect of human psychology nature?
i suppose im really bad at explaining stuff lol
EN English
EN English (UK)
EN English (IN)
DE Deutsch
FR Français
ES Español
IT Italiano
PL Polski
SV Svenska
TR Türkçe
RU Русский
PT Português
ID Bahasa Indonesia
MS Bahasa Melayu
TH ภาษาไทย
VI Tiếng Việt
JA 日本語
KO 한국어
ZH 简体中文
ZH 繁體中文
AR العربية
Home Stock Screener Forex Signal Finder Cryptocurrency Signal Finder Economic Calendar How It Works Chart Features House Rules Moderators Website & Broker Solutions Widgets Stock Charting Library Feature Request Blog & News FAQ Help & Wiki Twitter
Profile Profile Settings Account and Billing My Support Tickets Contact Support Ideas Published Followers Following Private Messages Chat Sign Out