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,19 @@
# 🚀 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](script.png)
## Source Files
- `chart_period_change.mq5`
---
> Made with ❤️ for the trading community.
@@ -0,0 +1,23 @@
//+------------------------------------------------------------------+
//| Chart_Period_Changer |
//| Copyright 2012,Karlson |
//+------------------------------------------------------------------+
#property copyright "2012, Karlson."
#property link "https://login.mql5.com/ru/users/Karlson"
//+------------------------------------------------------------------+
//| Script program start function |
//+------------------------------------------------------------------+
void OnStart()
{
if(ChartPeriod(0)==PERIOD_M1) {ChartSetSymbolPeriod(0,_Symbol,PERIOD_M5);return;}
if(ChartPeriod(0)==PERIOD_M5) {ChartSetSymbolPeriod(0,_Symbol,PERIOD_M15);return;}
if(ChartPeriod(0)==PERIOD_M15) {ChartSetSymbolPeriod(0,_Symbol,PERIOD_M30);return;}
if(ChartPeriod(0)==PERIOD_M30) {ChartSetSymbolPeriod(0,_Symbol,PERIOD_H1);return;}
if(ChartPeriod(0)==PERIOD_H1) {ChartSetSymbolPeriod(0,_Symbol,PERIOD_H4);return;}
if(ChartPeriod(0)==PERIOD_H4) {ChartSetSymbolPeriod(0,_Symbol,PERIOD_D1);return;}
if(ChartPeriod(0)==PERIOD_D1) {ChartSetSymbolPeriod(0,_Symbol,PERIOD_W1);return;}
if(ChartPeriod(0)==PERIOD_W1) {ChartSetSymbolPeriod(0,_Symbol,PERIOD_MN1);return;}
if(ChartPeriod(0)>=PERIOD_MN1) {ChartSetSymbolPeriod(0,_Symbol,PERIOD_M1);return;}
if(GetLastError()>0) {Print("Error (",GetLastError(),") ");} ResetLastError();
}
//+------------------------------------------------------------------+
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.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB