Will it possible to do an indicator that calculates the difference in price between two moving averages, example a 20 and 50? To be displayed on a chart.
Something like that, with a pixel position from top right corner (hence the negative Xpixel and Ypixel values, customisable as long as they remain negative to indicate going leftward and downward from top right corner).With another use of drawtext, it would also be possible to just keep display on a given barindex rather than a pixel position if preferred.
1
2
3
4
5
6
7
8
9
10
11
12
13
defparamdrawonlastbaronly=true
// Choose pixel fixed position from top right corner with negative X and Y values
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.Ok