Attachments forums

List of attachments posted on this forum.


All files on forums: 136041

Re: Something interesting please post here (Metatrader)

bilbao, Wed Apr 26, 2017 4:47 pm

The basic principle of the indicator : Search the current timeframe (hereinafter TF) of two consecutive bars in which the first bar is less than a second distance between High and Low not more than 3 points, and the distance between Open and Close not more than 2 points.
All the necessary parameters are output to external variables, which allows you to set any values ​​that are optimal for you. If the indicator finds such a pair, then it draws two lines at a distance of 10 points and a length of 5 bars ahead. The meaning of the indicator: find the levels of entry into the market after the flat . For example, we give a graph of gold for August, September 2014 ( timeframe M5).Float indicator

Why are these conditions for the indicator chosen? The main idea for creating such an indicator was the well-known proverb: "Calm is before battle". Before the start of the normal trend of the market usually freezes. This is where you need to look for entry points to the market.
The indicator only works with bars and is not redrawn. At initialization, the information on the history of bars is calculated first, and then after the appearance of a new bar, the search for entry points begins. But history does not get moved.
Calculations of points should be carried out for 4 decimal places. The indicator itself will recalculate to the desired format for any chart.
You can choose the optimal settings for yourself. And the older the TF, the more you need to set the values ​​of HighLow and OpenClose.
Description of variables:
HighLow = 3 - Maximum distance between High and Low values (in points) of one bar;
OpenClose = 3-The maximum distance between the Open and Close values ​​(in points) of one bar;
Clr_Bull = clrBlue - The color of the signal line for the possible opening of the LONG position;
Clr_Beer = clrRed -The color of the signal line for the possible opening of the position SHORT;
BarLine = 5 - Length of the signal line (in bars). I do not recommend doing too long, since the signal can already change. The optimal value is 5-7 bars;
Distance = 3 - Distance of the line from the bars (in points);
Bar0 = 20000 - The number of bars in history (Max 20000);
All files in topic