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: 3.3 KiB

@@ -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](NewsVLine.png)
![Screenshot](script.png)
## Source Files
- `news_vline.mq5`
---
> Made with ❤️ for the trading community.
Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

@@ -0,0 +1,39 @@
//+------------------------------------------------------------------+
//| News VLine.mq5 |
//| Copyright 2010, Urain |
//| https://login.mql5.com/ru/users/Urain |
//+------------------------------------------------------------------+
#property copyright "Copyright 2010, Urain"
#property link "https://login.mql5.com/ru/users/Urain"
#property version "1.00"
#property script_show_inputs
//---
input color color_line=clrOrange; // Öâåò ëèíèé
input ENUM_LINE_STYLE style_line=STYLE_DASHDOT; // Ñòèëü ðèñîâàíèÿ ëèíèé
//+------------------------------------------------------------------+
//| Script program start function |
//+------------------------------------------------------------------+
void OnStart()
{
//---
long chid=ChartID();
int total=ObjectsTotal(chid,0,OBJ_EVENT);
for(int i=0;i<total;i++)
ObjectNews(chid,i,ObjectName(chid,i,0,OBJ_EVENT));
}
//+------------------------------------------------------------------+
//| ObjectNews |
//+------------------------------------------------------------------+
void ObjectNews(long chid,int num,string tool)
{
datetime time=StringToTime(tool);
string name="news"+(num>99?(string)num:num>9?"0"+(string)num:"00"+(string)num);
if(ObjectFind(chid,name)<0)
ObjectCreate(chid,name,OBJ_VLINE,0,time,0);
ObjectSetString(chid,name,OBJPROP_TOOLTIP,tool);
ObjectSetInteger(chid,name,OBJPROP_COLOR,color_line);
ObjectSetInteger(chid,name,OBJPROP_STYLE,style_line);
ObjectSetInteger(chid,name,OBJPROP_BACK,true);
ObjectSetInteger(chid,name,OBJPROP_SELECTED,false);
}
//+------------------------------------------------------------------+
Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB