_SECTION_BEGIN("Weighted65");
// Weighted Moving Average on Average price
weightedMA = WMA(Avg, 65);
TrendStatus = WriteIf( Close>weightedMA AND Open<weightedMA,"Bullish", WriteIf(Close<weightedMA AND Open>weightedMA, "Bearish", "Neutral" ) );
TrendColor = IIf(Close>weightedMA AND Open<weightedMA,colorGreen, IIf(Close<weightedMA AND Open>weightedMA, colorRed, colorGrey40) );
Filter = 1;
// AddColumn(V,"Volume",1,IIf(V>Ref(V,-1),colorGreen,colorRed));
AddColumn(O,"Open",1,IIf(O>Ref(O,-1),colorGreen,colorRed));
AddColumn(weightedMA ,"WMA", 1, colorBlack);
AddColumn(C,"Close",1,IIf(C>Ref(C,-1),colorGreen,colorRed));
AddTextColumn(TrendStatus,"Trend",1.2,colorWhite,TrendColor);
_SECTION_END();