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

After

Width:  |  Height:  |  Size: 9.5 KiB

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

@@ -0,0 +1,24 @@
#property copyright "*"
#property link "*"
#property version "1.00"
//+------------------------------------------------------------------+
//| Script program start function |
//+------------------------------------------------------------------+
void OnStart()
{
double d=DotToLineDist(78,251,138,226,346,208);
Alert(d);
}
//+------------------------------------------------------------------+
double DotToLineDist(double LX1,double LY1,double LX2,double LY2,double DX, double DY){
double K=(LY2-LY1)/(LX2-LX1);
double LA=LY1-K*LX1;
double DA=DX+K*DY;
double CX=(DA-K*LA)/(1.0+K*K);
double CY=LA+K*CX;
return(MathSqrt(MathPow(DX-CX,2)+MathPow(DY-CY,2)));
}