Pine Scipt conversion – Polynomial Regression Extrapolation
Forums › ProRealTime English forum › ProBuilder support › Pine Scipt conversion – Polynomial Regression Extrapolation
- This topic has 22 replies, 6 voices, and was last updated 1 year ago by LucasBest.
-
-
09/02/2023 at 2:55 PM #220224
@Lucas, A big thank you. I tried the last version and it works well.
@Aragorna, you just need to download the itf and then key in the variable Degree, Lock, Length and Extrapolate. Without these variable, it will not work. Then look at the right hand side of your graph and you should see the curve. The plotting of the curve depends of Length you chose.
09/03/2023 at 1:34 PM #220250@Lucas, A big thank you. I tried the last version and it works well.
You’re welcome.
If you want to make it work for higher degree, you have to add temporary Minor Matrix for each degree you add and you will have to add also some lines of code for each more degree… Too lazzy to do it now, as i have more interesting (more tradable ones) code to do 😉
Polynomial regression can’t prdict the future 🙂1 user thanked author for this post.
09/03/2023 at 3:11 PM #220253Bravo en tous cas. I check your other codes. They are all clean. In my humble opinion, we spend much more time refining the condition of Entry (taking a trade) and don’t pay enough attention to the Exit (this where you make money, lose money, leave money on the table or lose big, etc.). We generally also spend more time optimizing the PROFIT instead of reducing the DRAWDOWN (which can lead to total loss of capital). If it can help, I found the code below spotting early entries (cheaper stop loss, but lower win rate. And cheaper stop loss generally leads to lower drawdown). What’s the easiest way to contact you?
small code1234567i = LookbackHipast = highest[i] (high[1])Lopast = lowest[i] (low[1])MAF = average[P,T](close)ca = close crosses over hipast and close>MAFCV = close crosses under lopast and close<MAF09/03/2023 at 3:47 PM #220257For my point of view, if you want quick entries, there is no better than RSI (which is kind of leading indicator) or breakout/down of oblique support/resistance.
Moving averages (also MACD) and ATR are slow and can lead to desastrous results if used in ranging markets. If you want to use averages, then you need a range market indicator (which won’t be late also), or you will loose at both ntry and exit.
Look at my profile09/06/2023 at 6:36 PM #220457piece of coding art; congrats and thanks
09/06/2023 at 10:37 PM #220471piece of coding art; congrats and thanks
Thanks you, but i am still just a beginer who try to do his best.
Your indicators are awesome and looks very professional. I bougth 2 of them.
Will you sell strategies/trading bots ?09/07/2023 at 1:31 PM #22050809/10/2023 at 8:10 AM #220631Lucabest
you say ” there is no better than RSI (which is kind of leading indicator) or breakout/down of oblique support/resistance.”
What indicator do you use for breakout /down of oblique support resistance ??
For now, i use my eyes to see them and draw them by my self on th chart…
But as i want to automate my trading, i am coding an indicator which will be able to look for accurate trendlines and breaks (still in progress)1 user thanked author for this post.
-
AuthorPosts