Exp_SpearmanRankCorrelation_Histogram_TimeWeekPeriod - expert for MetaTrader 5




Exp_SpearmanRankCorrelation_Histogram_TimeWeekPeriod - expert for MetaTrader 5


Expert Advisor Exp_SpearmanRankCorrelation_Histogram with the added option of trading within the weekly range only, the borders of which are specified in the EAs input settings:

input bool   TimeTrade=true;      //Allow trading by intervals
//----
input DAYS_OF_WEEK StartD=ENUM_DAY_OF_WEEK_2;  //Trading start (Day of the week)
input HOURS  StartH=ENUM_HOUR_8;  //Trading start (Hour)
input MINUTS StartM=ENUM_MINUT_0; //Trading start (Minute)
input SECONDS StartS=ENUM_SECOND_0; //Trading start (Second)
//----
input DAYS_OF_WEEK EndD=ENUM_DAY_OF_WEEK_5;  //Trading end (Day of the week)
input HOURS  EndH=ENUM_HOUR_20;   //Trading end (Hour)
input MINUTS EndM=ENUM_MINUT_59;  //Trading end (Minute)
input SECONDS EndS=ENUM_SECOND_40; //Trading end (Second)

For the generated EA to operate correctly, the compiled SpearmanRankCorrelation_Histogram.ex5 indicator file should be available in the <terminal_data_directory>MQL5Indicators folder.

Note that the TradeAlgorithms.mqh library file allows using Expert Advisors with brokers who offer nonzero spread and the option of setting Stop Loss and Take Profit together with position opening.

Default Expert Advisors input parameters have been used during the tests shown below. Stop Loss and Take Profit have not been used during the tests.


Fig. 1. Sample deals on the chart within the intraweek interval

Fig. 1. Sample deals on the chart within the intraweek interval


Download Exp_SpearmanRankCorrelation_Histogram_TimeWeekPeriod - expert for MetaTrader 5




Related News




Latest News
Fiat-Renault deal hopes lift European shares
21.08.2019 08:24
(Reuters) - European shares rebounded from the previous session's sharp falls on Wednesday, with brokers pointing to an Italian report on continuing merger talks between Fiat Chrysler Automobiles (MI:FCHA) and Renault SA (PA:RENA) as pushing car industry shares higher. The pan-European STOXX 600 index (STOXX) rose 0.5% at 0716 GMT, with
Read more
Forex - Dollar Hovering Near 3-Week Highs ahead of Fed Minutes
21.08.2019 08:21
Investing.com - The U.S. dollar was hovering just below three-week highs in subdued trade on Wednesday as investors looked ahead to the minutes of the Federal Reserve’s July meeting later in the day for fresh clues on the monetary policy outlook. The Fed cut rates for the first time since 2008 last month in what Chairman Jerome Powell called
Read more
China says natural for China, U.S. to have differences on trade
21.08.2019 08:18
BEIJING (Reuters) - China's Foreign Ministry said on Wednesday it was natural for the United States and China to have differences on trade, but the key was to resolve issues through dialogue. Ministry spokesman Geng Shuang made the comments at a daily news briefing in Beijing.
Read more
Goldman moves to take majority control of China joint venture
21.08.2019 08:15
By Jennifer Hughes and Alun John HONG KONG (Reuters) - Goldman Sachs (N:GS) has applied for majority control of its Chinese joint venture, the bank confirmed on Wednesday, the latest international bank to do so ahead of Chinese plans to eventually allow foreigners full control. The bank submitted an application with the China Securities Regulatory
Read more
Citigroup, BNP caught up in U.S. case against Huawei CFO: documents
21.08.2019 08:12
By Karen Freifeld NEW YORK (Reuters) - U.S.-based Citigroup (N:C) and French bank BNP Paribas (PA:BNPP) are caught up in the U.S. criminal case against the chief financial officer of China's Huawei Technologies, according to newly available documents. The banks were named in documents released on Tuesday after a hearing in British Columbia
Read more