Ema 2-5 Cross

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

// Pivot Boss is based on the work of Frank Ochoa @ www.pivotboss.

com

// Converted to Pinescript from Easy Language by DavidR.

// Summary:

// Creates one indicator with three exponential moving averages based off the central pivot point

// which assists you in trading pure price action using floor pivots.

// This also helps you to avoid getting chopped up during price confluence.

// Parameters:

// ShortEMA – Number of periods used to calculate the short term moving average.

// MedEMA – Number of periods used to calculate the medium term moving average.

// LongEMA – Number of periods used to calculate the long term moving average.

// How to use:

// When T-Line cross Green Short EMA it can be used for scalping.

// When Short EMA pulls back to Medium EMA you can buy more or sell more depending on

// without having to exit your position prematurely before trend direction changes.

// This can also be used as position entry points to make sure you are getting the best possible price.

// When T-Line, Short EMA and Medium EMA cross over Long EMA you go long or short.

study(title="Pivot Bos EMA", shorttitle=" EMA 2-5 CROSS", overlay=true)

src = close

TLineEMA = input(2, minval=1, title="Trigger Line")

ShortEMA = input(5, minval=1, title="Short EMA")

MedEMA = input(5, minval=1, title="Medium EMA")

LongEMA = input(5, minval=1, title="Long EMA")

fPivot = ((high + low + close)/3)


TLine = ema(high, TLineEMA)

fShortEMA = ema(high, ShortEMA)

fMedEMA = ema(high, MedEMA)

fLongEMA = ema(high, LongEMA)

plot(TLine, color=red, title="T-Line EMA", linewidth=9)

plot(fShortEMA, color=#008eff, title="Short EMA", linewidth=9)

plot(fMedEMA, color=#008eff, title="Medium EMA", linewidth=9)

plot(fLongEMA, color=#008eff, title="Long EMA", linewidth=12)

You might also like