Boris Lund
 Regular
  Posts: 59
Joined: 12/9/2021
User Profile |
I am trying to build a Market Profile indicator.
I need to look at volume at a lower timeframe so I can see the lower timeframe price and volume distribution.
If I look at the one hour timeframe I would look at the underlying 5min intervals.
But first I need to be able to address the underlying timeframes correctly.
In the simple example it should look at the 30min timeframe while I am on a 60min. The volume of the last 30min plus the 30min before should add up to the current 60min bar volume.
But it doesn't...
#Indicator
dim a,b,d as single
a=mt(v,"30m",1)
b=mt(v,"30m",1)[1]
d=a+b
plot("a",a,black)
plot("b",b,green)
plot("d",d,blue)
Return 0
Attached file : Market Profile2.png (7KB - 163 downloads)
|