Daily range - expert for MetaTrader 5




Daily range - expert for MetaTrader 5


The EA searches for a daily range. It uses objects OBJ_HLINE and OBJ_VLINE.

A daily range within Sliding window size days (current bar #0 is not involved in calculations) can be calculated as Highest - Lowest or as a mean value by module Close #i - Close #i+1. Calculation mode is set in Daily range

The daily range is then used in the calculations of levels Stop Loss and Take Profit:

SL = daily_range * Stop Loss Coefficient

TP = daily_range * Take Profit Coefficient

The daily range is calculated once a day (time Start hour::Start minute) and at the first launch of the EA.

BUY signal:

Price Ask >= Highest of the daily range + daily_range * Offset Coefficient

SELL signal:

Price Bid <= Lowest of the daily range - daily_range * Offset Coefficient

Number of positions opened within the current day shall be limited by parameter Max Positions.


Search for a daily range is visualized using two vertical lines (the limit the search range) and two horizontal lines (that show the lines of position opening signals) :

Daily range

-


Download Daily range - expert for MetaTrader 5




Related News




Latest News
UK posts small budget surplus as government spending rises before Brexit
21.08.2019 09:15
LONDON, Reuters) - Britain posted a smaller-than-expected budget surplus in July as government expenditure rose, underlining budget constraints on new Prime Minister Boris Johnson as he promises to boost spending ahead of Brexit. The surplus, excluding state-owned banks, stood at 1.319 billion pounds, compared with 3.562 billion pounds in July
Read more
DHL stops deliveries for Amazon Fresh in Germany
21.08.2019 09:12
BERLIN (Reuters) - Deutsche Post DHL (DE:DPWGn) will no longer deliver fresh food in Germany for Amazon (O:AMZN) as demand for the service launched in 2017 has been disappointing, a spokeswoman said on Wednesday. Selling food is a key part of the strategy of the world's top online retailer, especially since it bought the U.S. chain Whole
Read more
Hong Kong protests spread to subway as bank warns of economic fallout
21.08.2019 09:09
By Felix Tam and Alun John HONG KONG (Reuters) - A major bank warned on Wednesday that weeks of protests in Hong Kong could hit the economies of the Chinese-ruled city and mainland China itself as demonstrators prepared a sit-in at a subway and site of a mid-summer mob attack. Hong Kong-based Bank of East Asia Ltd (BEA) posted a 75% slump in
Read more
Porsche invests in Israeli road visibility startup TriEye
21.08.2019 09:06
TEL AVIV (Reuters) - Israel's TriEye, whose short-wave-infra-red sensing technology enables vision in adverse weather and night-time conditions, has expanded its funding round to $19 million with an investment from German sports car manufacturer Porsche (DE:PSHG_p). The amount invested by Porsche was not disclosed. TriEye said on Wednesday
Read more
Exclusive: China's Tianjin government orders Bohai Steel restructuring start by September: sources
21.08.2019 09:03
By Shu Zhang and Muyu Xu SINGAPORE/BEIJING (Reuters) - The government of the Chinese city of Tianjin, the only shareholder of bankrupt Bohai Steel Group Ltd, is demanding that Bohai's creditors and strategic investor implement a bankruptcy restructuring plan by the end of September, two creditor sources with direct knowledge of the matter
Read more