Welcome to Forex-TSD!, one of the largest Forex forums worldwide, where you will be able to find the most complete and reliable Forex information imaginable.
From the list below, select the forum that you want to visit and register to post, as many times you want. It’s absolutely free. Click here for registering on Forex-TSD.
Exclusive Forum
The Exclusive Forum is the only paid section. Once you subscribe, you will get free access to real cutting-edge Trading Systems (automated and not), Indicators, Signals, Articles, etc., that will help and guide you, in ways that you could only imagine, with your Forex trading.
Elite Section
Get access to private discussions, specialized support, indicators and trading systems reported every week.
Advanced Elite Section
For professional traders, trading system developers and any other member who may need to use and/or convert, the most cutting-edge exclusive indicators and trading systems for MT4 and MT5.
What is an LSMA? It stands for Least Squares Moving Average and the indicator plots the endpoint of the linear regression line. By comparing the current value to the prior value a determination is made of a possible trend, ie the linear regression line is pointing up or down.
Use the close of the current candle after it is finished and the next candle is forming as the end point. That avoids the problem of a candle changing the value of the indicator in real time.
What is an LSMA? It stands for Least Squares Moving Average and the indicator plots the endpoint of the linear regression line. By comparing the current value to the prior value a determination is made of a possible trend, ie the linear regression line is pointing up or down.
Use the close of the current candle after it is finished and the next candle is forming as the end point. That avoids the problem of a candle changing the value of the indicator in real time.
Is LSMA = Linear Regression? I understand the concept of least squares when fitting an average line, but had not heard it referred as a moving average. I tried this code and got a Linear Regression line that seemed to make the same basic movements as my control (a LR line off of a charting system I pay for). But on the paid version, the peaks of the LR go higher (& lower), often above and below the bollinger bands, while on this version, that effect is much more subdued.
Any ideas why I am seeing this behaviour, or where else I might get an algorithm for LR for MetaQuotes4?
Thanks for the info / post, but I do indeed need a good linear regression algorithm or mq4 program. Although I do use CCI, I prefer Linear Regression in combo with the bolliger bands for trading.
Also, it is a task I need to complete for others.
What struck me strange about the LSMA is that I had not read that LR is a MA calculation, although I do understand the concept of an algorithm to find a line that matches a 2 dimensional set of points best using the least squares method. I'd never seen indicator lines plotted in 3 colours
I am a long-term C/C++ programmer in Windows with Visual Studio, but using mq4 is new to me and, despite being very C-like, not having a good IDE to learn in is stunting my progress a bit.
So... does anyone else have any input on a different Linear Regression alorithm, or how I might tweak this one?
Thanks for the link. After all that I went and looked at the CCI / LSMA chart you posted. Interesting... when I use CCI it is not overlaid on the graph.
Would you mind giving me an explanation of what parameters you use and what you are looking for -it looks promising.
there are as many methods as there are traders.... I have failed at many things until I got to know the indicator well enough and most of what I do is probably hard to define and also wrong in many people's eyes. I guess I progressed the most by practise trading for a gazillion hours...
there are as many methods as there are traders.... I have failed at many things until I got to know the indicator well enough and most of what I do is probably hard to define and also wrong in many people's eyes. I guess I progressed the most by practise trading for a gazillion hours...
I know the feeling...
I'm also on the slow path of learning indicators one by one.