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..
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?