Barry Cohen
 Idol
    Posts: 2305
Joined: 1/1/1900
User Profile |
Try this. Using the MT function, 1 = dynamic, 2 = previous bar, 3 = previous bar with actual data instead of building the data from the current timeframe.
#Indicator
dim a,b,d as single
a=mt(v,"30m",3)
b=mt(v,"30m",3)[1]
d=a+b
plot("a",a,black)
plot("b",b,green)
plot("d",d,blue)
Return 0
|