Ticaret robotlarını ücretsiz olarak nasıl indirebileceğinizi izleyin
Bizi Twitter üzerinde bulun!
Fan sayfamıza katılın
Komut dosyasını ilginç mi buldunuz?
Öyleyse bir link gönderin -
başkalarının da faydalanmasını sağlayın
Komut dosyasını beğendiniz mi? MetaTrader 5 terminalinde deneyin
Komut dosyaları

SlipPage - MetaTrader 5 için komut dosyası

Görüntülemeler:
5025
Derecelendirme:
(27)
Yayınlandı:
2016.09.19 12:45
\MQL5\Scripts\ \MQL5\Include\
Bu koda dayalı bir robota veya göstergeye mi ihtiyacınız var? Freelance üzerinden sipariş edin Freelance'e git

During the execution, slippages induce non-system profit/loss.

This script outputs the values of these slippages in the account currency.

It is possible to evaluate the order execution of the trading system — contribution of slippages in its expected payoff.

In the "real ticks" mode, the tester executes both limit and TP orders with unrealistically high positive slippage. Solving the problem if imaginary (inflated) backtest results, caused by this peculiarity of the MT5 tester, is possible by calling the following OnTester and/or OnDeinit

#include <SlipPage.mqh>

// After the backtest completes, first the OnTester, then the OnDeinit are called
double OnTester( void )
{
  // Returns the backtest balance net of positive slippages of limit and TP orders in the tester (running instrument)
  return(SLIPPAGE::OnTesterBalance());
}

// After the backtest completes, first the OnTester, then the OnDeinit are called
void OnDeinit( const int Reason )
{
  // Subtracts the value of positive slippages of limit and TP orders (running instrument) from the backtest balance
  SLIPPAGE::CorrectBackTestBalance();

  return;
}

MetaQuotes Ltd tarafından Rusçadan çevrilmiştir.
Orijinal kod: https://www.mql5.com/ru/code/16134

XPFE_HTF XPFE_HTF

The XPFE indicator with the timeframe selection option available in input parameters.

XTrendlessOS_HTF XTrendlessOS_HTF

The XTrendlessOS indicator with the timeframe selection option available in input parameters.

STLMCandle STLMCandle

The STLM digital filter implemented as a sequence of candlesticks.

JSatl JSatl

This indicator is a hybrid of the SATL (Slow Adaptive Trend Line) digital filter and the JMA analog adaptive averaging.