Skip to content
All library documents

Exporting and Normalizing MetaTrader Price Data for Blender Animation

Article MQL5 articles

Summary

This project describes a workflow for turning MetaTrader 5 bar data into an animated visual in Blender. An MQL5 script exports open and close prices over a user-selected time range and timeframe, along with price change and a duration value adjusted by a timescale factor. A Python post-processing step normalizes the exported data for use in Blender, where it drives a 2D character animation and can be inspected in the graph editor.

The article explains the export inputs, the calculations for price change and elapsed time, and the handoff between the CSV, Python, and Blender stages. It presents the resulting animation as a demonstration of integrating financial data with creative software, not as a trading signal or analytical test. The visual depends on choices made during normalization and timing, and the described workflow requires MetaTrader 5, Python, Blender, and the character image asset. It does not establish that the resulting representation preserves all market context or supports investment conclusions.

Key ideas

  • An MQL5 script can export bar open and close prices for a configurable time range and timeframe.
  • The export adds price change and a scaled duration field to support animation timing.
  • Python post-processing normalizes the exported data before it is used in Blender.
  • Blender can map processed price data to a character animation and expose the motion in its graph editor.
  • The project demonstrates visualization and software integration, not trading performance or predictive value.

Tags

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