Amibroker Afl Collection -

// ----------------------------------------------------------- // HIGHER TIMEFRAME TREND (e.g., Weekly) // ----------------------------------------------------------- TimeFrameSet(TF1); HTF_Close = C; HTF_MA = MA(C, PeriodMA); HTF_RSI = RSI(RSIPeriod); HTF_TrendUp = HTF_Close > HTF_MA; HTF_TrendDown = HTF_Close < HTF_MA; TimeFrameRestore();

// Trend Zone Background if(ShowZones)

// ----------------------------------------------------------- // USER INPUTS // ----------------------------------------------------------- TF1 = ParamTimeFrame("Higher Timeframe", "Weekly"); TF2 = ParamTimeFrame("Lower Timeframe", "Daily"); amibroker afl collection

// Lower Timeframe MA Plot(LTF_MA, "LTF MA", colorYellow, styleLine | styleDots); HTF_Close = C

Plot(1, "", HTF_TrendUp_Exp ? ColorRGB(0,60,0) : ColorRGB(60,0,0), styleOwnScale HTF_MA = MA(C

// Higher Timeframe MA Plot(HTF_MA_Exp, "HTF MA (" + Name() + ")", colorOrange, styleLine | styleThick);