Update: As you can see last channel is anchored wrong and I dont know how to edit that picture:) So here is the corrected one

Middle Line : Traditional MIDAS line calculated with hl2
Lower Line: MIDAS line calculated with low values
Upper Line: MIDAS line calculated with high values
Remove from Favorite Scripts Add to Favorite Scripts
// Akif TOKUZ
// akifusenet@gmail.com
// MIDAS Channel

study("Midas Channel", overlay=true)

startBar=input(title="Starting Bar Number",minval=1,maxval=100000,defval=20)

start = (n==startBar-1)

v = na(volume) ? 1 : volume

cumV = cum(v)
CumPV = cum(hl2*v)
SupportCumPV = cum(low*v)
ResistanceCumPV = cum(high*v)

startV = valuewhen(start,cumV,0)
StartPV = valuewhen(start,CumPV,0)
SupportStartPV = valuewhen(start,SupportCumPV,0)
ResistanceStartPV = valuewhen(start,ResistanceCumPV,0)

Midas = (CumPV-StartPV)/(cumV-startV)
SupportMidas = (SupportCumPV-SupportStartPV)/(cumV-startV)
ResistanceMidas = (ResistanceCumPV-ResistanceStartPV)/(cumV-startV)

middle = plot(Midas, color=aqua,linewidth=2)
lower = plot(SupportMidas, color=blue,linewidth=1)
upper = plot(ResistanceMidas, color=red,linewidth=1)
Great tool - Thank You & GLT
Nice work!!! Great addition to the library, Thanks! So simple but highly effective.
EN English
EN English (UK)
EN English (IN)
DE Deutsch
FR Français
ES Español
IT Italiano
PL Polski
TR Türkçe
RU Русский
PT Português
ID Bahasa Indonesia
MS Bahasa Melayu
TH ภาษาไทย
VI Tiếng Việt
JA 日本語
KO 한국어
ZH 简体中文
ZH 繁體中文
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