거래 로봇을 무료로 다운로드 하는 법을 시청해보세요
당사를 Telegram에서 찾아주십시오!
당사 팬 페이지에 가입하십시오
스크립트가 흥미로우신가요?
그렇다면 링크 to it -
하셔서 다른 이들이 평가할 수 있도록 해보세요
스크립트가 마음에 드시나요? MetaTrader 5 터미널에서 시도해보십시오
Experts

BHS system - MetaTrader 5용 expert

게시자:
Vladimir Karputov
조회수:
4100
평가:
(15)
게시됨:
2018.04.18 17:07
BHS system.mq5 (47.18 KB) 조회
MQL5 프리랜스 이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동

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

MetaQuotes Ltd에서 러시아어로 번역함.
원본 코드: 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.