Watch how to download trading robots for free
Find us on Telegram!
Join our fan page
Interesting script?
So post a link to it -
let others appraise it
You liked the script? Try it in the MetaTrader 5 terminal
Indicators

Regression Analysis - indicator for MetaTrader 4

Views:
50188
Rating:
(12)
Published:
2011.03.21 13:22
Updated:
2014.04.21 14:55
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance


Description:

This indicator compares four types of regression (linear, quadratic, logarithmic and exponential) and chooses the one that best fits the data analyzed.

This analysis is done every time there is a new tick.

// ---- inputs
// dp_limiter  It should be >2 . If not it will be autoset to default value
// endpos      Last value position to the right. It should be >0. If not it
//             will be autoset to default value
// record      [true] - record on; [false] - record off
extern int       dp_limiter   =100;        // Number of data points
extern int       endpos       =0;          // Last value position
extern double    multStdDev   =1.96;       // Bands separation
extern bool      record       =false;      // Record info into a file text

In the left top corner of the chart four values are displayed. These values represent the dispersion of data regarding to its regression, so the smallest value indicates the best option. Additionally, the indicator allows recording these values into a text file for further analysis.


Kaufman Efficiency Ratio Kaufman Efficiency Ratio

Kaufman Efficiency Ratio (also called "generalized fractal efficiency") according to Perry Kaufman books "Smarter Trading" and "Trading Systems & Methods".

Kaufman Volatility Kaufman Volatility

Kaufman Volatility according to Perry Kaufman books "Smarter Trading"

ZMFX Forex Trend v3 ZMFX Forex Trend v3

Trend of 8 pairs on one chart

EMAplusWPRv1_1 EMAplusWPRv1_1

Expert advisor that trade in the trend of EMA and buy/sell signals get from Williams %R