The best trend-finding indicator - page 5

 

Here are three indicators created by Piligrimm that allow you to determine the trend. Perhaps it makes sense to upload them to the code base, but this is at the discretion of the moderators.

Once he sold them, but he has long since retired from all these cases, and now he does not mind if they appear in the public domain.

The only thing, in the "Indicator Trend" indicator, I threw out from it what I did not need, making it somewhat easier, if someone does not need all the options that are present in other indicators, then by analogy they can be deleted.

Instructions for use:

" Indicator power ".

The idea on the basis of which the indicator " Indicator " was developed power " is to dynamically monitor the struggle between the bullish and bearish trends that are taking place in the market at the moment. When the bullish trend dominates, as new bars arrive, the indicator values on the zero bar rise in proportion to the strength of the trend, and when the bearish trend dominates, they go down accordingly. With slight fluctuations in the trend, then in one direction, then in the other direction, the indicator values are reflected in the form of a straight line, which along its entire length from the last turning point slowly shifts in proportion to the strength of the dominant trend, and with a significant increase in any of the trends, it abruptly moves in the corresponding direction , forming a new breaking point. " Indicator Power " - uses at the heart of its work the threshold sampling algorithm developed by me with a tunable step in proportion to the dynamics of changes in quotations. As a result, such sampling, samples are obtained corresponding only to the extreme points of the signal. At the same time, the level of the signal shown by the indicator is determined by the strength of the currently dominant trend and slowly changes in proportion to the strength of the trend until the next sampling point is formed and fixes this level.

The indicator works on any instruments, any periods, any markets. The indicator can be used both for designing mechanical trading systems and for manual trading.

The indicator processes data upon arrival of a new bar. The indicator works in two modes, static and dynamic. In static mode, the indicator processes the entire length of a given history sample and recalculates it for the entire length when a new bar arrives, creating templates of a given length that can be displayed on a chart and saved to disk. In dynamic mode, the indicator calculates the value only on a newly arrived bar, gradually accumulating the calculated values as new data arrives. The length of the processed history is determined by the “ LengthSample ” variable on the “Properties – Input Parameters” tab, the length of the history can be any.

The signal values at the last fixed point corresponding to the last sampling point and the current value at the zero bar, are stored in global variables, the names of global variables can be changed, this allows you to set any number of indicators with different threshold levels on one instrument and organize communication with an Expert Advisor or other indicators through global variables. When the indicator is working, it is possible to optimize its parameters by rebuilding the threshold coefficient. The choice of a specific threshold value is determined by on which instrument and timeframe the indicator is installed, as well as what trading strategy you want to implement based on this indicator.

The calculation is visualized on the instrument chart in the window where the indicator is installed.

The operation parameters are set on the "Properties - Input Parameters" tab when the indicator is placed on a chart in the MetaTrader 4 window.

" Indicator Power " has the following input parameters:

one). LengthSample - the length of the processed history;

2). Threshold – threshold coefficient;

3). DynamicMode – indicator operation mode dynamic/static.

4). SaveFileData – flag of permission to write data calculated by the indicator to disk;

5). filenamedata – the name of the file where the data will be saved;

6). Subscripting_MT4 – indexing direction of arrays written to disk.

7). NameGlobalVariableGP_0 – name of the global variable that saves the current value of the signal on the zero bar;

eight). NameGlobalVariableGP_1 - the name of the global variable that stores the last fixed signal value.

one). The length of the processed history is determined by the variable " LengthSample ". The maximum size is not limited. At the same time, it is necessary that in the window and in the history for the instruments with which the indicator works, there should be no less number of bars than “ LengthSample + 100”.

2). Threshold coefficient, sets the sampling threshold in “points”.

3). DynamicMode - flag that determines the choice of dynamic or static mode of the indicator, with DynamicMode = 1 - dynamic mode, with DynamicMode = 0 – static mode. The dynamic mode allows you to speed up the work of the indicator due to the fact that the entire history will not be recalculated, but only newly arriving bars will be processed. In this case, the calculated values will be accumulated. Only the data accumulated as a result of the calculation will be displayed on the chart, as well as when writing to disk is enabled, and saved to a file. In the static mode of operation, upon the arrival of a new bar, the entire history will be recalculated to the depth of “ LengthSample ”. Displayed on the chart, as well as when writing to disk is enabled, the data will be saved to a file along the entire length of the processed history.

4). SaveFileData Flag forbids writing the data calculated by the indicator to disk at a value of 0, if subsequent data processing is not needed. If it is necessary to further process and save the data to disk, the SaveFileData value should be set to 1.

5). filenamedata – the name of the file where the data will be stored on the disk. You can set any name, but the file extension must remain unchanged. csv , otherwise an error will occur when writing the file. The size of the stored array in static mode is determined by LengthSample ”, in dynamic mode, the number of bars that have come since the indicator was turned on.

6). Variable Subscripting_MT4 – determines the indexing direction of the array being written to disk, if set to 1, then the indexing will correspond to that adopted for MetaTrader 4, from the most significant digit to zero, if the value is set to 0, then there will be a standard indexing from zero to the most significant digit. This applies to both FileNameData and FileNamePointsFracture .

7). NameGlobalVariableGP_0 – name of the global variable that saves the current value of the signal on the zero bar;

eight). NameGlobalVariableGP_1 - the name of the global variable that stores the last fixed signal value.

" Indicator channel ".

There are two trends in the market, ascending - bullish, and descending - bearish. The nature of these tendencies is somewhat different from each other, but, nevertheless, they are dependent on each other and influence one another. This indicator is based on the idea of separating these two trends from the general flow of quotations, formalizing their nature in the form of a time series that reflects them. development and mutual influence, as well as the result of their struggle among themselves. " Indicator Channel " creates a trend channel and reflects the dynamics of its behavior, extrapolating the direction of the market trend development. The upper line reflects the nature of the bullish trend under the influence of the bearish one, the lower line reflects the nature of the bearish trend under the influence of the bullish one, the middle line is the result of their struggle, and in fact is one of the trend harmonics corresponding to the specified level of quotes flow discretization. A different level of the sampling threshold allows you to select harmonics that are different in amplitude - frequency characteristics. " Indicator Channel " - uses at the heart of its work the algorithm of threshold sampling developed by me with a tunable step in proportion to the dynamics of changes in quotes. As a result, such sampling, samples are obtained corresponding only to the extreme points of the signal for each of the trends separately. At the same time, the signal level of each of the three lines indicator, is determined by the dynamics of the corresponding trend and slowly changes in proportion to the strength of the trend, and the nature of the predominance of one over the other, until the next discretization point is formed and fixes this level.

The informative components of the indicator are: narrowing and widening of the channel, angles of divergence of the upper and lower beams, inflection points and moments of reversal of the central line of the channel. When new bars arrive, the indicator dynamically reflects the changing market trend, rebuilding the rays from the last breaking point to the zero bar.

The indicator works on any instruments, any periods, any markets. The indicator can be used both for designing mechanical trading systems and for manual trading.

The indicator processes data upon arrival of a new bar. The length of the processed history is determined by the “ LengthSample ” variable on the “Properties – Input Parameters” tab, the length of the history can be any.

Signal values at the last fixed point for the upper and lower rays (breaking points), and for the middle line, the signal value for the first local minimum or maximum, depending on the direction of the trend, and current values on the zero bar, stored in global variables. The names of global variables can be changed, this allows you to set any number of indicators with different threshold levels on one instrument and organize communication with an Expert Advisor or other indicators through global variables. When the indicator is working, it is possible to optimize its parameters by rebuilding the threshold coefficient. The choice of a specific threshold value is determined by on which instrument and timeframe the indicator is installed, as well as what trading strategy you want to implement based on this indicator.

The calculation is visualized on the instrument chart in the window where the indicator is installed.

The operation parameters are set on the "Properties - Input Parameters" tab when the indicator is placed on a chart in the MetaTrader 4 window.

" Indicator Channel " has the following inputs:

one). LengthSample - the length of the processed history;

2). Threshold – threshold coefficient;

3). SaveFileData – flag of permission to write data calculated by the indicator to disk;

4). filenamedata – the name of the file where the data will be saved;

5). Subscripting_MT4 – indexing direction of arrays written to disk.

6). NameGlobalVariableUpper_0 – name of the global variable that saves the current value of the signal on the zero bar for the upper beam;

7). NameGlobalVariableUpper_1 - the name of the global variable that stores the last fixed signal value for the upper beam.

eight). NameGlobalVariableMedium_0 – name of the global variable that saves the current value of the signal at the zero bar for the middle line;

nine). NameGlobalVariableMedium_1 - the name of the global variable that stores the last signal value in the last local minimum or maximum for the middle line.

ten). NameGlobalVariableLower_0 – name of the global variable that saves the current value of the signal at the zero bar for the lower beam;

eleven). NameGlobalVariableLower_1 - the name of the global variable that saves the last fixed signal value for the lower beam.

one). The length of the processed history is determined by the variable " LengthSample ". The maximum size is not limited. At the same time, it is necessary that in the window and in the history for the instruments with which the indicator works, there should be no less number of bars than “ LengthSample + 100”.

2). Threshold coefficient, sets the sampling threshold in “points”.

3). SaveFileData Flag forbids writing the data calculated by the indicator to disk at a value of 0, if subsequent data processing is not needed. If it is necessary to further process and save the data to disk, the SaveFileData value should be set to 1.

4). filenamedata – the name of the file where the data will be stored on the disk. You can set any name, but the file extension must remain unchanged. csv , otherwise an error will occur when writing the file. The size of the stored array is determined LengthSample .

5). Variable Subscripting_MT4 – determines the indexing direction of the array being written to disk, if set to 1, then the indexing will correspond to that adopted for MetaTrader 4, from the most significant digit to zero, if the value is set to 0, then there will be a standard indexing from zero to the most significant digit.

6). NameGlobalVariableUpper_0 – name of the global variable that saves the current value of the signal on the zero bar for the upper beam;

7). NameGlobalVariableUpper_1 - the name of the global variable that stores the last fixed signal value for the upper beam.

eight). NameGlobalVariableMedium_0 – name of the global variable that saves the current value of the signal at the zero bar for the middle line;

nine). NameGlobalVariableMedium_1 - the name of the global variable that stores the last signal value in the last local minimum or maximum for the middle line.

ten). NameGlobalVariableLower_0 – name of the global variable that saves the current value of the signal at the zero bar for the lower beam;

eleven). NameGlobalVariableLower_1 - the name of the global variable that saves the last fixed signal value for the lower beam.

 
I don't understand how to use these 3 inds. are overdrawn, i.e. underdrawn
 

Try as a trend indicator:

N - hindsight in question;

Future - possible trend direction for a specified number of bars from the current bar;

iB =1 - data up to the previous bar is considered;

iB =0 - data up to the current bar including the last tick is considered;

Files:
 
yosuf:

Try it as a trend indicator:


What a program you recommended! After removing the indicator there are columns of numbers on the left side, which even with an eraser cannot be removed from the monitor! How do I remove them?
 
What's wrong with sperandeo? It just draws a trend line. Cheap and sour.
 
tara:
What's wrong with sperandeo? It just draws a trend line. Cheap and sour.
It might be good, but who is it?
 
nikost:
maybe a chorus, but who is it?

You can't google it, can you?
 
nikost:
I don't understand how to use these 3 inds. are overdrawn, i.e. underdrawn
This is the way it is designed: until the threshold is exceeded, it is not displayed.
 
tara:
but can't you google it?
Googling the site mostly yields your snide comments on different versions of the sperandeo indicator :))
Do not be obscure, just show us with your finger which indicator you think is right. Maybe it will work for us too.
 
granit77:
Googling the site basically gives up your snide comments on the different versions of the Sperandeo indicator :))
Don't be shady, show us with your finger which indicator you think is the right one. Maybe it will work for us too.

I'd better draw it - there have long been interested :) A day or two...