Pine Scipt conversion – Polynomial Regression Extrapolation

Viewing 8 posts - 16 through 23 (of 23 total)
  • Author
    Posts
  • #220224 quote
    Khaled
    Participant
    Veteran

    @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.

    #220250 quote
    LucasBest
    Participant
    Average

    @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 🙂

    Khaled thanked this post
    #220253 quote
    Khaled
    Participant
    Veteran

    Bravo 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?

    i = Lookback
    Hipast = highest[i] (high[1])
    Lopast = lowest[i] (low[1])
    MAF = average[P,T](close)
    
    ca = close crosses over hipast and close>MAF 
    CV = close crosses under lopast and close<MAF
    #220257 quote
    LucasBest
    Participant
    Average

    For 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 profile

    #220457 quote
    Meta Signals Pro
    Participant
    Veteran

    piece of coding art; congrats and thanks

    #220471 quote
    LucasBest
    Participant
    Average

    piece 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 ?

    #220508 quote
    Madrosat
    Participant
    Master

    Lucabest

    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 ??

    #220631 quote
    LucasBest
    Participant
    Average

    Lucabest

    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)

    robert123 thanked this post
Viewing 8 posts - 16 through 23 (of 23 total)
  • You must be logged in to reply to this topic.

Pine Scipt conversion – Polynomial Regression Extrapolation


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
Khaled @khaled Participant
Summary

This topic contains 22 replies,
has 6 voices, and was last updated by LucasBest
2 years, 5 months ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 10/05/2022
Status: Active
Attachments: 7 files
Logo Logo
Loading...