日銀の為替介入を検知するフーリエ逆変換mql4プログラム
Deep Seekの回答 # MQL4プログラム: 為替介入前の波形分析 以下は、FXチャートの価格データをフーリエ変換し、上位10成分を分解して表示するMQL4プログラムです。このプログラムは、為替介入の影響が表れる前の市場波形を分析するために設計されています。 ```mql4 //+------------------------------------------------------------------+ //| FourierAnalysis.mq4 | //| Copyright 2023, MetaQuotes Software Corp. | //| https://www.metaquotes.net/ | //+------------------------------------------------------------------+ #property copyright "Copyright 2023, MetaQuotes Software Corp." #property link "https://www.metaquotes.net/" #property version "1.00" #property strict #property indicator_separate_window #property indicator_buffers 11 #property indicator_plots 11 #property indicator_type1 DRAW_LINE #property indicator_color1 clrRed #property indicator_style1 STYLE_SOLID #property indicator_width1 1 // 同様に他のバッファも設定 (indicator_type2~11, indicator_color2~11など) // 入力パラメータ input int SampleSize = 256; // 分析サンプルサイズ (2のべき乗推奨) input int DominantComponents = 10; // 表示する主要成分数 ...