Indicators: Theil_Sen Indicator

To add comments, please log in or register
Automated-Trading
157837
Automated-Trading  

Theil_Sen Indicator:

This indicator draws a trend-line directly on a chart. It uses the Theil Sen Estimation method to calculate the slope of the trend-line. Theil–Sen estimation is a method for robustly fitting a line to sample points in the plane (simple linear regression) by choosing the median of the slopes of all lines through pairs of points.

Theil_Sen Indicator Free

Author: Dwaine Hinds

8A553DAE
5
8A553DAE  
Automated-Trading:

Theil_Sen Indicator Free:

Author: Dwaine Hinds

Wow. This is really helpful. Thank you
Dwaine Hinds
541
Dwaine Hinds  

By default this indicator will easily identify large trends. The values I used for the max_ranging_value=0.0006, max_neutral_val=0.0001 are just based on my experience, which is approximately two years and I have never traded manually, only automated. The forex market is vast and there are also micro-trends i.e. small trends which can offer more tradable opportunities. I think this indicator will catch those small trends if I include the combined experiences of the community into the coding process to make the figures final.

Specifically, I need some consensus on what everyone agrees should be the ideal values for the max_ranging_value and max_neutral_val variables. I want you to change these values to your own; based on what you believe is more ideal towards answering the question of what is the maximum theilsen value for a market to be called ranging? All other relevant indicator calculations will be based on your answer to this question, that is why it's so important. And, any values that goes higher than ranging must be said to be trending, else this is a different universe. Submit the values you used in your backtests here. It will be combined in some way and the resulting figure will be coded into the final updated version of this indicator for everyone.


Testing trading strategies on real ticks
Testing trading strategies on real ticks
  • www.mql5.com
The article provides the results of testing a simple trading strategy in three modes: " 1 minute OHLC " using only Open, High, Low and Close prices of minute bars; detailed modeling in " Every tick " mode, as well as the most accurate " Every tick based on real ticks " mode applying actual historical data. Comparing the results allows us to...
Dwaine Hinds
541
Dwaine Hinds  
8A553DAE:
Wow. This is really helpful. Thank you

I appreciate your comment alot.

dapotoyin
7
dapotoyin  
The indicator is not loading on mt4. How can i load it pls
Dwaine Hinds
541
Dwaine Hinds  
dapotoyin:
The indicator is not loading on mt4. How can i load it pls

Why not? Please, give me a clue as to what you are seeing.

dapotoyin
7
dapotoyin  
The indicator cannot be attached to the chart
Dwaine Hinds
541
Dwaine Hinds  
dapotoyin:
The indicator cannot be attached to the chart

I am not at my computer right now. Try this:

* Ensure that the file with the ".mq4" extension is already in the "Indicators" folder. If it is not there then move it to the "Indicators" folder.

* After doing the above, double click the file with the ".mq4" extension to open it in MetaEditor.

* Once the mq4 file is opened in MetaEditor, just click the "Compile" button. You can click it a few times to make sure. Now try attaching the Indicator to any chart.

To add comments, please log in or register