GrapichsByLeo/Tests/Distribucion.mq5
67 行
4.3 KiB
MQL5
Nique_372
2025-11-17 17:02:53 -05:00
<EFBFBD><EFBFBD>//+------------------------------------------------------------------+
//| NormalDistribution.mq5 |
//| Copyright 2025, Test Example |
//+------------------------------------------------------------------+
#property copyright "Copyright 2025, Test Example"
Nique_372
2025-11-28 07:55:33 -05:00
#property strict
Nique_372
2025-11-17 17:02:53 -05:00
#include "..\\Histogram\\Main.mqh"
Nique_372
2025-11-28 07:55:33 -05:00
// https://forge.mql5.io/amrali/Xoshiro256
#include "..\\..\\Xoshiro256\\Xoshiro256.mqh"
//+------------------------------------------------------------------+
//| Script program start function |
//+------------------------------------------------------------------+
void OnStart()
{
//---
#define DATA_SIZE 5000
#define BINS 30
//--- Crear histograma
CHistogramVertical histograma;
histograma.Initialize(800, 600, "HistogramaNormal", 0, 0, ColorToARGB(clrWhite));
histograma.CreateBitmapLabel(50, 50, COLOR_FORMAT_ARGB_RAW);
Nique_372
2025-12-05 07:06:30 -05:00
Nique_372
2025-11-28 07:55:33 -05:00
//--- T<EFBFBD>tulo y copyright
histograma.TituloDefault(StringFormat("Distribucion Normal - %d Barras", BINS));
histograma.CreateCopyrightDefault("Test");
//--- Generar datos
Xoshiro256 random;
double datos_normales[DATA_SIZE];
for(int i = 0; i < DATA_SIZE; i++)