Polynomial Regression
-
Greetings,
I would like to create an expert advisor that will open positions and close positions using polynomial regression channel. I have the values I want to place, I just do not know how to create it, I do not know where to start.
Your earliest response is much appreciated.
Sincerely
-
@ramimoujaes I can help you. Do you have the formula to calculate those values?
-
@l-andorrà Greetings,
The basic polynomial function is represented as f (x) = c0 + c1 x + c2 x2 ⋯ cⁿ xⁿ. Where n is the degree of a polynomial, and c is a set of coefficients. The Polynomial Regression Channel uses the value of n is 2 or 3 to form the parabola.
Since there are 3 lines (top, middle, bottom), I want the expert advisor to buy once every bar when price is bellow the bottom line. And I want it to sell when price is above the top line. Take profit of 50 pips, no-stop-loss (yet I would like to close positions when I would like while the expert advisor is running). Lot size to be adjustable under my desire. All of which are operating on a 4 hour time-frame.
Thank you so much for helping me. Your earliest response is much appreciated.
Sincerely
-
It is worth nothing that I am using MT5
-
@ramimoujaes Ok. When I asked for the formula I meant if you have a custom indicator doing those calculations. Otherwise we will need a real programmer (I am not on of them) to calculate those values.
-
-
@ramimoujaes This indcator has a problem. Each buffer has two colours and fxDreema cannot work with that. Only one per buffer should be available. I'm afraid a real programmer is required to fix it, sorry.

-
@l-andorrà greetings,
Do you think you can build the indicator using the following link.
The script is found at the end of the pagehttps://www.tradingview.com/script/qusoEeMf-Pseudo-Polynomial-Channel/
-
@ramimoujaes I'm afraid not. I'm not a programmer, sorry.
