Initial commit: MQL5 Scripts Collection (MetaTrader 5)

This commit is contained in:
GeneralTradingSarl
2025-06-24 00:33:04 +01:00
commit 60a549d89c
1959 changed files with 31907 additions and 0 deletions
@@ -0,0 +1,30 @@
# 🚀 Unlock the Power of Trading!
Welcome to this open-source trading project. Here you will find powerful tools to enhance your trading journey. If you find this project useful, please consider starring ⭐, sharing, or donating to support further development!
---
**Support the project:**
- Star this repository on GitHub
- Share it with your trading friends
- [Donate here](https://www.paypal.com/donate/?hosted_button_id=YOUR_BUTTON_ID) to help us grow!
---
![Screenshot](library.png)
![Screenshot](Sample1.png)
![Screenshot](Sample10.png)
![Screenshot](Sample2.png)
![Screenshot](Sample3.png)
![Screenshot](Sample4.png)
![Screenshot](Sample5.png)
![Screenshot](Sample6.png)
![Screenshot](Sample7.png)
![Screenshot](Sample8.png)
![Screenshot](Sample9.png)
![Screenshot](script.png)
## Source Files
- `colorchart.mq5`
---
> Made with ❤️ for the trading community.
Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

@@ -0,0 +1,61 @@
//+------------------------------------------------------------------+
//| ColorChart.mq5 |
//| OpenSource |
//| http://www.mql5.com |
//+------------------------------------------------------------------+
#property copyright "OpenSource"
#property link "http://www.mql5.com"
#property version "1.00"
//+------------------------------------------------------------------+
//| Script program start function |
//+------------------------------------------------------------------+
void OnStart()
{
//---
RandomColor rndColor;
ChartSetInteger(0,CHART_COLOR_CANDLE_BEAR,rndColor.GetColor());
ChartSetInteger(0,CHART_COLOR_CANDLE_BULL,rndColor.GetColor());
ChartSetInteger(0,CHART_COLOR_BACKGROUND,rndColor.GetColor());
ChartSetInteger(0,CHART_COLOR_ASK,rndColor.GetColor());
ChartSetInteger(0,CHART_COLOR_BID,rndColor.GetColor());
ChartSetInteger(0,CHART_COLOR_CHART_DOWN,rndColor.GetColor());
ChartSetInteger(0,CHART_COLOR_CHART_LINE,rndColor.GetColor());
ChartSetInteger(0,CHART_COLOR_CHART_UP,rndColor.GetColor());
ChartSetInteger(0,CHART_COLOR_FOREGROUND,rndColor.GetColor());
ChartSetInteger(0,CHART_COLOR_GRID,rndColor.GetColor());
ChartSetInteger(0,CHART_COLOR_LAST,rndColor.GetColor());
ChartSetInteger(0,CHART_COLOR_STOP_LEVEL,rndColor.GetColor());
ChartSetInteger(0,CHART_COLOR_VOLUME,rndColor.GetColor());
ChartRedraw();
}
//+------------------------------------------------------------------+
//| |
//+------------------------------------------------------------------+
class Random
{
public:
int Rand(int from,int to)
{
long rnd=(long)this.Rand()*((long)to-(long)from)/(long)SHORT_MAX;
return(int)rnd;
}
int Rand()
{
return MathRand();
}
};
//+------------------------------------------------------------------+
//| |
//+------------------------------------------------------------------+
class RandomColor : Random
{
public:
color GetColor()
{
int red=Rand(0x0000FFFF,0x00FF0000);
int green= Rand(0x000000FF,0x0000FF00);
int blue = Rand(0x00000000,0x000000FF);
return(color)(red+green+blue);
}
};
//+------------------------------------------------------------------+
Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB