You are on page 1of 1

//@version=4

// This source code is subject to the terms of the Mozilla Public License 2.0 at
https://mozilla.org/MPL/2.

study("MFI EMA 3-10")


ema3 = ema(close, 3)
ema10 = ema(close, 10)
mfi1 = mfi(close, 10)
volume1 = (ema3 - ema10 )
maColour = if volume1[1] < volume1[5]
color.red
else
color.green

plot(volume1, color=maColour, linewidth=3, title = "EMA", transp=0)


plot(mfi1, color=color.blue, linewidth=2, title = "MFI", transp=0)

You might also like