The current candle is shown in real time, until candle closes.
The visualization of the candle time to close is a thin line, that is 100% for all past candles and slowly goes up for the current candle.
Best with an example:
with a 4h candle, 1 hour has wasted already. This is 25% of all the candle time. So, if is also at 25% of the last candles traded, we can expect(yeah, you wish) that by candle close, around 100% of the last volumes average will be traded.
in a 4h candle, we're at 10mins., around 8% of total candle time. If traded is already at 57% of average past volumes, something big is going on.
Note 1: in the indicator's "Format" pop-up there is a "candle minutes" field, it MUST match the chart timeframe in minutes (ex: 4h=240min)
Note 2: the back function check can be switched between the methods "highest value" or "average", in the Format->inputs
Note 3: when a new candle opens, it will go craaayeeezeee!!, because the extreme small values introduce a lot of rounding errors. just let it go, it calms it self after ~0.5% of candle time has passed.
There are more examples and details in the early version of this indicator, check my published scripts.
قام مؤلف هذا النص البرمجي بنشره وجعله مفتوح المصدر، بحيث يمكن للمتداولين فهمه والتحقق منه، وهو الأمر الذي يدخل ضمن قيم TradingView. تحياتنا للمؤلف! يمكنك استخدامه مجانًا، ولكن إعادة استخدام هذا الكود في منشور تحكمه قواعد الموقع. يمكنك جعله مفضلاً لاستخدامه على الرسم البياني.
This indicator was designed to work in real time, and needs the "calculate on every tick" turned on. It verifies if the volume from the current candle is increasing more or less than the average.
Example using 5 min. candles:
1 minute is 20% of the time for the candle. So, if the volume is at 20% or below of the vol.average, the market is stable(price not moving much). If at 1 minute(20% of time) volume is say, at 37%, a big move is happening.
The color of the candle shows the movement direction. A gray means the volume was not important, below average.
The historical candles show how much volume infuenced the price for the corresponding candle.
The current candle is working REAL TIME.
The blue line shows how much time has passed for the candle to complete. All candles are 100% complete(yeah, duh), except for the last one, the line touches zero at start of candle, and slowly fills up to1(1=100%)until the candle ends.
vol MA size: sets the lenght of the volume average. set to your heard desires
candle Period: set to the number of seconds in the period you chose. 5min = 300, 1h = 3600 and so on. Must be correct, or the results turn into crap
Limit: the value below which the candle is a "non-important" candle. 1 = 100% of average
NOTE: in the very first seconds, the indicator goes crazy. it's expected, due to computed values very close to zero used in the math. after some seconds it stabilizes :)