Unlock Trading Success with the BHS System for MetaTrader 5

Mike 2018.04.19 02:07 11 0 0
Attachments

Meet the Creators: Yuri is the mastermind behind this innovative system, with the mq5 code crafted by barabashkakvn.

The BHS System is a powerful Expert Advisor that identifies the nearest upper and lower "round" price levels based on a defined Step of the "round" number. If you're curious about how these calculations work, simply comment out the line in the OnDeinit function:

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

When you unload the EA from the chart, you'll see an example printed in the Experts tab. The EA evaluates the current price position relative to the iAMA (Adaptive Moving Average) indicator to set initial pending orders.

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

Each pending order has a defined lifetime, which is calculated by adding the Life time of the pending order (in hours) to the last known server time.

The BHS System also implements separate trailing methods for both BUY and SELL positions, allowing customization through 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.

For optimal results, this system has been tested on the EURUSD pair using the H1 timeframe:

BHS system

List
Comments 0