Fan sayfamıza katılın
Öyleyse bir link gönderin -
başkalarının da faydalanmasını sağlayın
- Görüntülemeler:
- 11361
- Derecelendirme:
- Yayınlandı:
- 2017.03.21 09:01
-
Bu koda dayalı bir robota veya göstergeye mi ihtiyacınız var? Freelance üzerinden sipariş edin Freelance'e git
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:
|
bool CheckDayOfWeek() |
The function checks week day returns true when trade is allowed, false - trade is not allowed. It uses input variables:
|
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](https://c.mql5.com/i/code/expert.png)
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)](https://c.mql5.com/i/code/indicator.png)
Precision trend (histo) - MetaTrader 4
![Laguerre RSI with Laguerre filter](https://c.mql5.com/i/code/indicator.png)
Laguerre RSI with Laguerre filter.
![Pending order grid](https://c.mql5.com/i/code/expert.png)
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.