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,20 @@
# 🚀 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](script.png)
## Source Files
- `opencharts.mq5`
---
> Made with ❤️ for the trading community.
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

@@ -0,0 +1,33 @@
#property script_show_inputs true
input ENUM_TIMEFRAMES timeFrame = PERIOD_H1; //Timeframe
input string tplName = "Momentum.tpl"; //Template
input uint ptsSpread = 20; //Spread Filter
int symIndex = 0;
int symSpread = 0;
string symName = "";
long chartID = 0;
void OnStart()
{
for(symIndex = 0; symIndex < SymbolsTotal(false); symIndex++)
{
symName = SymbolName(symIndex, false);
if(SymbolInfoInteger(symName, SYMBOL_SELECT) == false) SymbolSelect(symName, true);
}
Sleep(1000);
for(symIndex = 0; symIndex < SymbolsTotal(false); symIndex++)
{
symName = SymbolName(symIndex, false);
symSpread = SymbolInfoInteger(symName, SYMBOL_SPREAD);
if(symSpread > ptsSpread)
{
SymbolSelect(symName, false);
continue;
}
chartID = ChartOpen(symName, timeFrame);
ChartApplyTemplate(chartID, "//Profiles//Templates//" + tplName);
ChartSetInteger(chartID, CHART_SHIFT, 0, true);
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB