Market sessions and Volume profile - By Leviathan

Published on MillionChart by AlphaHunter.

This script tracks the Forex sessions (Tokyo, London and New York) as well as daily, weekly and monthly sessions. Each session can carry a volume profile with a histogram, the Point of Control (POC), Value Area High (VAH) and Value Area Low (VAL). Colours, lines and layout are fully customizable.

Usage notes:
- Volume profiles for short sessions such as Tokyo, London and New York work best on lower timeframes like 15 or 5 minutes.
- Use a timeframe above 15 minutes when viewing monthly sessions.

Session types:
- Tokyo 1:00 to 9:00 UTC, London 7:00 to 16:00 UTC, New York 13:00 to 22:00 UTC, plus daily, weekly and monthly.

Display options:
- Show or hide the volume profile histogram, the POC line, the VAL and VAH lines, and the live (ongoing) session.

Volume profile settings:
- Resolution: a higher value gives a more detailed profile but fewer profiles on the chart.
- Smooth volume data: helps on assets with large volume spikes over large bars.

Appearance:
- Colours for up and down volume, colour and thickness for POC, VAH and VAL lines, and session box thickness (box colour is chosen automatically for contrast).

Credits:
- Some volume profile elements are inspired by LonesomeTheBlue's volume profile script.