Initial commit: MQL5 Scripts Collection (MetaTrader 5)
This commit is contained in:
@@ -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!
|
||||
|
||||
---
|
||||

|
||||

|
||||
|
||||
## Source Files
|
||||
- `slippage.mq5`
|
||||
|
||||
---
|
||||
> Made with ❤️ for the trading community.
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 2.4 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,33 @@
|
||||
// MQL5-code
|
||||
|
||||
// Выводит величины проскальзываний совершенных сделок в валюте счета
|
||||
|
||||
#include <SlipPage.mqh>
|
||||
//+------------------------------------------------------------------+
|
||||
//| |
|
||||
//+------------------------------------------------------------------+
|
||||
void OnStart(void)
|
||||
{
|
||||
::MessageBox(SLIPPAGE::GetProfitData().ToString(),::Symbol()+" slippage");
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
/*
|
||||
// После окончания бэктеста сначала вызывается OnTester, затем OnDeinit
|
||||
double OnTester( void )
|
||||
{
|
||||
// Возвращает баланс бэктеста за вычетом положительных проскальзываний лимитных и TP-ордеров в тестере (запущенный инструмент)
|
||||
return(SLIPPAGE::OnTesterBalance());
|
||||
}
|
||||
|
||||
// После окончания бэктеста сначала вызывается OnTester, затем OnDeinit
|
||||
void OnDeinit( const int Reason )
|
||||
{
|
||||
// Вычитает из баланса бэктеста величину положительных проскальзываний лимитных и TP-ордеров (запущенный инструмент)
|
||||
SLIPPAGE::CorrectBackTestBalance();
|
||||
|
||||
return;
|
||||
}
|
||||
*/
|
||||
//+------------------------------------------------------------------+
|
||||
Reference in New Issue
Block a user