Skip to content
All library documents

Using Moving Average Periods to Request Multi-Day Averages

Article FMZ forum · Author: 哈哈哈哈1

Summary

This post asks how to obtain moving averages covering seven, fifteen, and thirty days through a trading platform’s data and technical-analysis functions. It shows sample calls that request records at several candle intervals and then apply moving-average calculations with different period arguments. The author logs the resulting arrays and asks which output corresponds to the desired averages, because the printed results contain many values.

The excerpt is a troubleshooting question, not a resolved tutorial. It does not establish whether the requested periods should be expressed in daily candles or calculated from intraday records, nor does it explain the output array’s indexing or handling of insufficient history. As a result, it illustrates the distinction between requesting records at a timeframe and selecting a moving-average period, but does not provide a verified way to produce the requested averages.

Key ideas

  • The author wants moving averages spanning seven, fifteen, and thirty days.
  • The sample requests data at multiple candle intervals and applies moving-average calculations.
  • The resulting logs contain arrays, leaving the desired values unclear to the author.
  • The excerpt does not explain how to map daily lookback periods to the requested data or interpret the output.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.