Download MetaTrader 5

Watch how to download trading robots for free

Interesting script?
So post a link to it -
let others appraise it

You liked the script? Try it in the MetaTrader 5 terminal

2014.07.11 14:29
Libraries

Time Filter Library - library for MetaTrader 4

| English Español Português 日本語 Deutsch

Views:
5622
Rating:
votes: 19

The function will filter the trade positon. If the current time in the time you set, the function will return true.

Usage:

extern string   TimeStart="12:00";
extern string   TimeStop="14:00"; 

bool TradeAlow=sTimeFilter(TimeStart,TimeStop);

if(TradeAllow==true)
{
//Put your trade function here
//OrderSend(...); 
} 

//Ea will open position bettween 12:00 ---> 14:00
//If you set start=20:00, stop=08:00----> ea will start trade from 20:00 of today to 8:00 tomorrow.
Accelerator Oscillator (AC) Accelerator Oscillator (AC)

The Acceleration/Deceleration Indicator (AC) measures acceleration and deceleration of the current driving force.

Average Directional Movement Index (ADX) Average Directional Movement Index (ADX)

The Average Directional Movement Index Indicator (ADX) helps to determine if there is a price trend.

Example of MACD Automated Example of MACD Automated

Code example of MACD automated with advanced money management function.

Pivot Star Pivot Star

Pivot indicator. Standard, Fibonacci, Camarilla, Woody's, Demark. Calculates pivot points from previous bar of chosen period (M5 - MN).