RollSumλ(), RollMinλ(), RollMaxλ(), and RollAvgλ() are more convenient than using Rollingλ() where we must add the function we want to its arguments. They do the same thing. They create a window to roll over cells. The window has a size (number of values) and an offset (number of values prior (-1) or after (+) the current value). The array can be 1 or more rows or columns, oriented either horizontally or vertically.
RollSumλ( Row, [Size], [Offset], [AllowPartial], [RollRows?] )
RollMinλ( Row, [Size], [Offset], [AllowPartial], [RollRows?] )
RollMaxλ( Row, [Size], [Offset], [AllowPartial], [RollRows?] )
RollAvgλ( Row, [Size], [Offset], [AllowPartial], [RollRows?] )
Array
(Required) An array of values to roll the window over.
Size
(Optional) Window's size (number of values selected). Must be > 0. Default is 3
Offset
(Optional) Number of values after (+) or prior (-) current position. Default = -2..
AllowPartial
(Optional) TRUE (Default) = Apply function to window that starts or ends outside the array (the window will be smaller than Size). FALSE = Do not apply function when window starts or ends outside array.
RollRows?
(Optional) TRUE or 1 = Rolling proceeds horizontally by row. FALSE or 0 = Rolling proceeds Vertically by column. Default=TRUE
In this example we are smoothing Microsoft's (MSFT) adjusted close stock price for better analysis (See AI Analysis below).
The Decline Starting in January 2025: Microsoft's stock price fell in January 2025, despite the company reporting earnings and revenue that largely exceeded expectations. The primary reasons for this decline were:
Disappointing Cloud Growth Forecast: While Microsoft's "Intelligent Cloud" segment, which includes its Azure platform, showed significant growth, the company's forecast for the next quarter's revenue for this division fell short of Wall Street's high expectations. Investors were expecting a faster rate of growth, particularly in the company's crucial cloud and AI sectors.
Concerns over High Capital Expenditures: Microsoft was heavily investing in artificial intelligence (AI) and expanding its data center capacity to support this growth. These massive capital expenditures were raising concerns among investors. They were questioning whether the high spending was translating into a significant enough increase in revenue and earnings to justify the stock's high valuation.
Market-Wide Pressures: The broader stock market, particularly the tech-heavy Nasdaq, experienced a tough first quarter in 2025. This general market downturn contributed to the downward pressure on Microsoft's stock, as investors became more risk-averse.
Competition and Regulatory Scrutiny: Microsoft faced stiff competition in the cloud market from rivals like Amazon Web Services (AWS) and Google Cloud. Additionally, regulatory concerns, including antitrust probes and scrutiny over its acquisitions, added to investor anxiety.
The Climb Starting in April 2025: Microsoft's stock began to climb in April 2025, largely driven by a renewed sense of confidence in its core business and AI strategy. The key factors behind the rebound were:
Strong Earnings Report: In its quarterly earnings report, Microsoft demonstrated better-than-expected growth, particularly in its cloud and AI segments. This performance showed that the company's investments were beginning to pay off, easing the concerns that had driven the stock down earlier in the year.
Successful AI Monetization: Microsoft's strategy of integrating AI across its product suite, including its Copilot AI assistant and its Azure cloud platform, showed clear signs of success. The adoption of these AI-powered services led to increased revenue per user and higher subscription upgrades, demonstrating a clear path to monetizing its AI investments.
Positive Analyst Sentiment: Following the strong earnings report, Wall Street analysts became more bullish on the stock. They raised their price targets and issued "Strong Buy" ratings, citing the company's strong leadership in AI and its continued momentum in the cloud market as key drivers for future growth.
Solid Financial Position: The company's solid financial health, including strong cash flow and a healthy cash reserve, further reassured investors. This showed that Microsoft had the financial stability to continue its aggressive investments in AI and other growth areas.