Initial commit: MQL5 Scripts Collection (MetaTrader 5)
@@ -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!
|
||||
|
||||
---
|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||
|
||||
## Source Files
|
||||
- `colorchart.mq5`
|
||||
|
||||
---
|
||||
> Made with ❤️ for the trading community.
|
||||
|
After Width: | Height: | Size: 3.0 KiB |
|
After Width: | Height: | Size: 3.0 KiB |
|
After Width: | Height: | Size: 3.0 KiB |
|
After Width: | Height: | Size: 3.0 KiB |
|
After Width: | Height: | Size: 3.0 KiB |
|
After Width: | Height: | Size: 3.0 KiB |
|
After Width: | Height: | Size: 2.9 KiB |
|
After Width: | Height: | Size: 2.9 KiB |
|
After Width: | Height: | Size: 3.0 KiB |
|
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);
|
||||
}
|
||||
};
|
||||
//+------------------------------------------------------------------+
|
||||
|
After Width: | Height: | Size: 3.1 KiB |
|
After Width: | Height: | Size: 2.6 KiB |
|
After Width: | Height: | Size: 1.6 KiB |
|
After Width: | Height: | Size: 1.8 KiB |
|
After Width: | Height: | Size: 2.4 KiB |