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

TimeManagement - MetaTrader 4용 라이브러리

조회수:
11040
평가:
(19)
게시됨:
2017.03.21 09:01
\MQL4\Include\
이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동

Time management functions are often used in Expert Advisors and Scripts. This header file contains functions and input variables for checking time and day of week.

Function Description
bool CheckTime()

The function checks current time and returns true when trade is allowed, false - trade is not allowed.

It uses input variables:

  • UseTimeManagement - Enable/disable time management. If true is enabled, false - disabled
  • StartHour - Trading start hour (0-24)
  • StartMinutes - the trading start minutes (0-59)
  • EndHour - End hour (0-24) of trade
  • EndMinutes - End hour (0-24) of trade.
bool CheckDayOfWeek()

The function checks week day returns true when trade is allowed, false - trade is not allowed.

It uses input variables:

  • UseDayManagement - Enable/disable day management. If true is enabled, false - disabled
  • TradeMonday - On/off trade on Monday. True - on, false - off.
  • TradeTuesday - On/off trade on Tuesday.
  • TradeWednesday - On/off trade on Wednesday.
  • TradeThursday - On/off trade on Thursday.
  • TradeFriday - On/off trade on Friday.

Example

#include <TimeManagement.mqh>

void OnTick()
{
   if( !CheckTime() )
   {
      Print("The trade is not allowed by time management");
      return;
   }

   if( !CheckDayOfWeek() )
   {
      Print("The trade is not allowed in this day of week");
      return;
   }
}
Proper Bot Proper Bot

The Proper Bot is for those who like Martingale style trading. Features: Stop Loss, Take Profit, Trailing Stop Loss functions. All are calculated in POINTS.

Precision trend (histo) Precision trend (histo)

Precision trend (histo) - MetaTrader 4

Laguerre RSI with Laguerre filter Laguerre RSI with Laguerre filter

Laguerre RSI with Laguerre filter.

Pending order grid Pending order grid

This EA Opens a grid of Buy Stops and Sell Stops at a specified distance from price. Has Stop Loss, Take Profit and Trailing Stop.