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

TimeInRange time checking function - MetaTrader 4용 라이브러리

조회수:
9505
평가:
(11)
게시됨:
2016.09.29 17:09
업데이트됨:
2016.11.22 07:32
이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동

Fast time range checking function. Doesn't use slow string parsing.

Function returns TRUE if time in range, FALSE otherwise.


Usage:

Drop .mq4 file to MQL4\Libraries\ folder.

Add this line inside your EA:

#include "..\libraries\time_in_range.mq4"
There are three versions of the function:

1. With separated hours and minutes input. Example:
if(TimeInRange(TimeCurrent(),23,00,02,15)) { /* trade */ } // checks if current time is in range 23:00-02:15

2. With fractional hours input. Example:

if(TimeInRange(TimeCurrent(),05.50,09.25)) { /* trade */ } // checks if current time is in range 05:30-09:15
Please note that fractional part represents whole hour.

3. With time coded in single variable:
if(TimeInRange(TimeCurrent(),0200,0835)) { /* trade */ } // checks if current time is in range 02:00-08:35
Modify All TP SL Modify All TP SL

The script modifies all orders (market and pending) on the symbol with specified Take Profit and Stop Loss.

iFractals 4all TF iFractals 4all TF

Buy or sell just by looking at the "arrow" as a signal. Very easy and simple.

Renko Chart from ticks (Most precise method) Renko Chart from ticks (Most precise method)

Renko chart generator using the tick values.

Stop & Limit Bots Stop & Limit Bots

Two EA's. One places Stop orders the other places Limit orders.