Thanks for your reply! Yup, using "DATA." How would I go about adjusting it? Here's the code:
------------------------------------------------------------------------------------------------------------------------------
declare lower;
def agg = AggregationPeriod.FIVE_MIN;
plot data = close(period = agg);
data.SetDefaultColor(Color.WHITE);
data.SetLineWeight(3);
data.SetPaintingStrategy(PaintingStrategy.LINE);
data.SetStyle(Curve.LONG_DASH);
data.HideBubble();
data.HideTitle();
plot BDfastEMA=ExpAverage(DATA,8);
BDfastEMA.SetDefaultColor(Color.VIOLET);
BDfastEMA.SetLineWeight(5);
BDfastEMA.SetPaintingStrategy(PaintingStrategy.LINE_VS_POINTS);
BDfastEMA.SetStyle(Curve.FIRM);
BDfastEMA.HideBubble();
BDfastEMA.HideTitle();
plot BDslowEMA=ExpAverage(DATA,40);
BDslowEMA.SetDefaultColor(Color.YELLOW);
BDslowEMA.SetLineWeight(3);
BDslowEMA.SetPaintingStrategy(PaintingStrategy.LINE);
BDslowEMA.SetStyle(Curve.FIRM);
BDslowEMA.HideBubble();
BDslowEMA.HideTitle();
def UpCross = if BDfastEMA > BDslowEma AND BDfastEMA[1] < BDslowEMA then 1 else 0;
Plot BDup = if UpCross then high else double.nan;
BDup.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_UP);
BDup.SetLineWeight(5);
BDup.SetDefaultColor(color.WHITE);
BDup.HideBubble();
BDup.HideTitle();
def DnCross = if BDfastEMA < BDslowEma AND BDfastEMA[1] > BDslowEMA then 1 else 0;
Plot BDdn = if DnCross then low else double.nan;
BDdn.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_DOWN);
BDdn.SetLineWeight(5);
BDdn.SetDefaultColor(color.WHITE);
BDdn.HideBubble();
BDdn.HideTitle();
# END