Guarda come scaricare robot di trading gratuitamente
Ci trovi su Facebook!
Unisciti alla nostra fan page
Script interessante?
Pubblica il link!
lasciare che altri lo valutino
Ti è piaciuto lo script? Provalo nel Terminale MetaTrader 5
Sistemi Esperti

BHS system - sistema esperto per MetaTrader 5

Pubblicati da::
Vladimir Karputov
Visualizzazioni:
3822
Valutazioni:
(15)
Pubblicato:
2018.04.18 17:07
Hai bisogno di un robot o indicatore basato su questo codice? Ordinalo su Freelance Vai a Freelance

The author of the idea:  Yuri, the mq5 code author: barabashkakvn.

The Expert Advisor calculates the nearest upper and lower "round" price depending on Step of the "round" number (to see how the calculation of the "round" price is performed, comment out the line in OnDeinit:

//+------------------------------------------------------------------+
//| Expert deinitialization function                                 |
//+------------------------------------------------------------------+
void OnDeinit(const int reason)
  {
//--- how Math() function works:
   return;

An example will be printed in the Experts tab when you unload the EA from the chart). The EA checks the position of the price and the iAMA (Adaptive Moving Average, AMA) indicator to place an initial pending order.

  • If the Close price of bar #0 is above the indicator, a pending Buy Stop order will be placed at the upper round price.
  • If the Close price of bar #0 is below the indicator, a pending Sell Stop order will be placed at the lower round price.

Lifetime is set for each pending order: Life time of the pending order (in hours) is added to the last known server time.

Separate trailing methods are applied for BUY and SELL positions. They are configured in Trailing Stop BUY and Trailing Stop SELL.


Input Parameters

  • Lots - volume;
  • Stop Loss BUY - stop loss for the Buy Stop order;
  • Stop Loss SELL - stop loss for the Sell Stop order;
  • Trailing Stop BUY - trailing stop for Buy positions;
  • Trailing Stop SELL - trailing stop for Sell positions;
  • Step of the "round" number - the step value for the round price;
  • Life time of the pending order (in hours) - pending order life time in hours;
  • AMA: Period of calculation - AMA period;
  • AMA: Period of fast MA - fast moving average period;
  • AMA: Period of slow MA - slow moving average period;
  • AMA: Horizontal shift - horizontal shift of the indicator;
  • AMA: Type of price - price type used for the indicator calculation;
  • magic number - unique identifier for the EA.

Testing on EURUSD, H1:

BHS system

Tradotto dal russo da MetaQuotes Ltd.
Codice originale https://www.mql5.com/ru/code/20132

MathCeilRoundFloor MathCeilRoundFloor

Example of functions MathCeil, MathRound and MathFloor.

Fractured Fractals Fractured Fractals

The Expert Advisor uses the Fractals indicator signals to place pending orders and trail the Stop Loss level of positions.

Fractal_TL Fractal_TL

An indicator for automatic drawing of trendlines based on fractals of a given timeframe.

Ichimoku Ichimoku

An Expert Advisor based on the iIchimoku (Ichimoku Kinko Hyo) indicator. Separate Stop Loss, Take Profit and Trailing Stop for BUY and SELL positions. The EA operation time is configurable. A check is performed on the current bar: only one position can be opened.