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
- `high_fetch.mq5`
---
> Made with ❤️ for the trading community.
Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

@@ -0,0 +1,43 @@
//+------------------------------------------------------------------+
//| High Fetch.mq5 |
//| Sj |
//| https://www.mql5.com |
//+------------------------------------------------------------------+
#property copyright "Sj"
#property link "https://www.mql5.com"
#property version "1.00"
// ---- Global variables ----
int StartHour = 12;
int StartMins = 0;
int EndHour = 16;
int EndMins = 0;
//+------------------------------------------------------------------+
//| Script program start function |
//+------------------------------------------------------------------+
void OnStart()
{
double highPrice = RangeHighs(StartHour,StartMins,EndHour,EndMins);
Print(highPrice);
}
//+------------------------------------------------------------------+
double RangeHighs(int pStartHour,int pStartMins, int pEndHour,int pEndMins)
{
MqlDateTime time{};
TimeCurrent(time);
time.sec = 0;
time.hour = pStartHour;
time.min = pStartMins;
datetime timeStart = StructToTime(time);
//-------------------
time.hour = pEndHour;
time.min = pEndMins;
datetime timeEnd = StructToTime(time);
//-------------------
double high[];
ArraySetAsSeries(high,true);
CopyHigh(_Symbol,PERIOD_CURRENT,timeStart,timeEnd,high);
int highestbar = ArrayMaximum(high,0,WHOLE_ARRAY);
return high[highestbar];
}
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