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
- `sct_fibonaccipotentialentries.mq5`
---
> Made with ❤️ for the trading community.
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.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,77 @@
//+------------------------------------------------------------------+
//| SCT_FibonacciPotentialEntries.mq5 |
//| Copyright 2020, Forex Jarvis. |
//| info@fxweirdos.com |
//+------------------------------------------------------------------+
#property copyright "Copyright 2020, Forex Jarvis. info@fxweirdos.com"
#property link "https://fxweirdos.com"
#property version "1.00"
#property script_show_inputs
#include <Trade\Trade.mqh>
CTrade trade;
input double dP50Level=0; // Price on 50% Level on M5 TF
input double dP61Level=0; // Price on 61% Level on M5 TF
input double dP100Level=0; // Price on 100% Level on M5 TF
input double dTarget2=0; // Second Target on H1 TF
input double dRisk = 2; // RISK in %
double dVolTradeBL1;
double dVolTradeBL2;
double dVolTradeSL1;
double dVolTradeSL2;
// INPUT TYPE PRICE ACTION
enum boolTypeMarket{
A1 = 1, // Bull
A2 = 2, // Bear
};
input boolTypeMarket bType = A1; // Bull/Bear
double dLotSize(string sSymbol, double dPrice, double dSL, double dRiskAmount) {
double dp=0;
if (SymbolInfoInteger(sSymbol,SYMBOL_DIGITS)==1 || SymbolInfoInteger(sSymbol,SYMBOL_DIGITS)==3 || SymbolInfoInteger(sSymbol,SYMBOL_DIGITS)==5)
dp=10;
else
dp=1;
double pipPos = SymbolInfoDouble(sSymbol,SYMBOL_POINT)*dp;
double dNbPips = NormalizeDouble(MathAbs((dPrice-dSL)/pipPos),1);
double PipValue = SymbolInfoDouble(sSymbol,SYMBOL_TRADE_TICK_VALUE)*pipPos/SymbolInfoDouble(sSymbol,SYMBOL_TRADE_TICK_SIZE);
double dAmountRisk = AccountInfoDouble(ACCOUNT_BALANCE)*dRiskAmount/100;
return NormalizeDouble(dAmountRisk/(dNbPips*PipValue), 2);
}
//+------------------------------------------------------------------+
//| Script program start function |
//+------------------------------------------------------------------+
void OnStart()
{
double dAsk = NormalizeDouble(SymbolInfoDouble(_Symbol,SYMBOL_ASK),_Digits);
double dBid = NormalizeDouble(SymbolInfoDouble(_Symbol,SYMBOL_BID),_Digits);
double dSpread = dAsk-dBid;
dVolTradeBL1 = dLotSize(_Symbol, dP50Level, dP61Level-3*dSpread, dRisk*0.33);
dVolTradeBL2 = dLotSize(_Symbol, dP61Level, (dP61Level+dP100Level)/2-(3*dSpread), dRisk*0.67);
dVolTradeSL1 = dLotSize(_Symbol, dP50Level, dP61Level+3*dSpread, dRisk*0.33);
dVolTradeSL2 = dLotSize(_Symbol, dP61Level, (dP61Level+dP100Level)/2+(3*dSpread), dRisk*0.67);
if (bType==1) {
trade.BuyLimit(dVolTradeBL1,dP50Level, _Symbol, dP61Level-3*dSpread, dTarget2,0,0,"1st Trade");
trade.BuyLimit(dVolTradeBL2,dP61Level, _Symbol, (dP61Level+dP100Level)/2-(3*dSpread), dTarget2,0,0,"2nd Trade");
} else if (bType==2) {
trade.SellLimit(dVolTradeSL1,dP50Level, _Symbol, dP61Level+3*dSpread, dTarget2,0,0,"1st Trade");
trade.SellLimit(dVolTradeSL2,dP61Level, _Symbol, (dP61Level+dP100Level)/2+(3*dSpread), dTarget2,0,0,"2nd Trade");
}
}