TradingView
syrinxflunki
Oct 8, 2019 4:05 AM

Flunki TWAP MTF Trend v.2 

Bitcoin / US Dollar Perpetual Inverse Swap ContractBitMEX

Description

Further experiments with multi-timeframe weighted averages...

Herewith a duel timeframe TWAP (time weighted average price)

TWAP differs from VWAP as so..
TWAP is weighted based on time, VWAP is weighted based on time and volume . Small volume trades do not impact TWAP but impact VWAP

Anyways, as you can see, it does a pretty good job of showing trend..

Enjoy.

Comments
JNZ3
First, thanks @syrinxflunki for sharing this code with the TV community. I use this in my charts and find it very useful. Works well upto daily level. I set the timeframe to 1440. But cannot get it to work for higher time frames. It seems to be auto-anchored to daily. Anyway to add on the choice to toggle weekly/monthly anchor for HTF's?
syrinxflunki
@JNZ3, Just put in W or M in the field :)
JNZ3
@syrinxflunki, Why thanks a lot for the help!
syrinxflunki
ICT_Made
Im seeing setting the time frame 1 to 1440 work better.
JNZ3
@ICT_Made, Agree gives a 1D view. Using same settings
thomas_brandner
source? ;)
ImNotHere213
When source :^)
More