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
Binary file not shown.

After

Width:  |  Height:  |  Size: 132 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.9 KiB

@@ -0,0 +1,24 @@
# 🚀 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](BuffersValueDefault__4.png)
![Screenshot](ICustom__4.png)
![Screenshot](Input__2.png)
![Screenshot](library.png)
![Screenshot](script.png)
![Screenshot](ValueOfBuffers__1.png)
## Source Files
- `arrowdrawingindieu.mq5`
---
> Made with ❤️ for the trading community.
Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

@@ -0,0 +1,107 @@
//+------------------------------------------------------------------+
//| ArrowDrawingIndi.mq5 |
//| Copyright 2019, MetaQuotes Software Corp. |
//| https://www.mql5.com |
//+------------------------------------------------------------------+
#property copyright "Copyright 2019, MetaQuotes Software Corp."
#property link "https://www.mql5.com"
#property version "1.00"
#property indicator_chart_window
int MA_handle;
//-----------------------------------------------------
input string IndName=""; // Indicator name
input string ArrowUp="MyArrowUp"; // Name of up Signal
input string ArrowDown="MyArrowDown"; // Name of down Signal
input int upbuffer=1; // Number of up buffer
input int downbuffer=0; // Number of down buffer
//-----------------------------------------------------------------
double Label1Buffer[];
double Label1Buffer2[];
int timerup=0;
int timerdown=0;
datetime CurTime=0;
//+------------------------------------------------------------------+
//+------------------------------------------------------------------+
//| Custom indicator initialization function |
//+------------------------------------------------------------------+
int OnInit()
{
//--- indicator buffers mapping
MA_handle=iCustom(Symbol(),0,IndName,17,0,2,0,false,false,false);
//MA_handle=iCustom(Symbol(),0,IndName,param1, param2, param3, param4); // <-----------------Example of adding your params here
//---
return(INIT_SUCCEEDED);
}
//+------------------------------------------------------------------+
//| |
//+------------------------------------------------------------------+
int OnDeinit()
{
//--- indicator buffers mapping
ObjectDelete(0,ArrowUp);
ObjectDelete(0,ArrowDown);
//---
return(INIT_SUCCEEDED);
}
//+------------------------------------------------------------------+
//| Custom indicator iteration function |
//+------------------------------------------------------------------+
int OnCalculate(const int rates_total,
const int prev_calculated,
const datetime &time[],
const double &open[],
const double &high[],
const double &low[],
const double &close[],
const long &tick_volume[],
const long &volume[],
const int &spread[])
{
CurTime=time[rates_total-1];
if(timerup>0)
{timerup --;}
else
{
ObjectDelete(0,ArrowUp);
}
if(timerdown>0)
{timerdown --;}
else
{
ObjectDelete(0,ArrowDown);
}
//---
if(rates_total==prev_calculated)
{
return(rates_total);
}
int i=rates_total-2;
CopyBuffer(MA_handle,upbuffer,0,rates_total,Label1Buffer);
CopyBuffer(MA_handle,downbuffer,0,rates_total,Label1Buffer2);
while(i<rates_total-1)
{
if(Label1Buffer[i]>0 /*&& CurTime<=time[i]*/)
{
ObjectCreate(0,ArrowUp,OBJ_ARROW_BUY,0,time[i],low[i]);timerup=5;
}
if(Label1Buffer2[i]>0 /*&& CurTime<=time[i]*/)
{
ObjectCreate(0,ArrowDown,OBJ_ARROW_SELL,0,time[i],high[i]);timerdown=5;
}
i++;
}
return(rates_total);
}
//+------------------------------------------------------------------+
Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 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