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


Daily range - expert for MetaTrader 5

Scriptor | English Русский Español

Published by:
Vladimir Karputov
votes: 11
2019.02.07 09:09
Daily range.mq5 (73.89 KB)view

Idea by: Scriptor

mq5 code by: barabashkakvn

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


Translated from Russian by MetaQuotes Software Corp.
Original code:

SetColorFiboLevels_Grand_xN SetColorFiboLevels_Grand_xN

The script builds the Fibonacci Levels graphical object with the option of selecting the number of its segments

CandlesAutoFibo_Grand_xN CandlesAutoFibo_Grand_xN

Indicator CandlesAutoFibo_Grand with the option of changing the number of segments in the graphical object of Fibo levels using one input parameter

Three neural networks Three neural networks

A trading system with a very simple neural network unit. It uses an iMA (Moving Average, MA) on H1, H4, and D1.

SupremAutoFibo SupremAutoFibo

The indicator builds graphical object Fibonacci Levels with many settings at High and Low prices over the period specified in the indicator input parameters