Announcement

Collapse
No announcement yet.

Linear Regression - moving plot

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Linear Regression - moving plot

    Hello Forum,

    I am a brand new newbie to the forum, programming and e-signal.

    I am looking for an inidcator that plots a line based on the right-most point of a series of linear regression (LR) lines.

    The usual LR plot for say, a 5-period study will plot a straight line through the five bars. That is not what i need.

    I imagine that the following described LR plot has already been created by someone.

    I am looking for a script that will automatically plot only the point at the right for a series of moving LR calculations. The end result looks similar to a moving average.

    It would be excellent if the script also allowed for the plot to be based on a user-selectable input, such as high, low, open, close, H-L average, etc.

    Optional extras:
    Other usual user-selectable characteristics of the plot would include selectable drawing as a line, or a series of dots or dashes, or some other mark. The colour of the plot and its size or thickness.

    Another inclusion would be to calculate the next future point.

    It will be greatly appreciated if such a script exists or if assistance could be given as to creating a script.

    Thanks for your assistance.

    Firemonkey.




  • #2
    Re: Linear Regression - moving plot

    Firemonkey
    If you run a Search using either moving regression or LSMA as the keyword you will find several scripts (and variations thereof) that will compute the Moving Linear Regression also referred to as LSMA (Least Squares Moving Average) or EPMA (End Point Moving Average)
    Alex


    Originally posted by Firemonkey
    Hello Forum,

    I am a brand new newbie to the forum, programming and e-signal.

    I am looking for an inidcator that plots a line based on the right-most point of a series of linear regression (LR) lines.

    The usual LR plot for say, a 5-period study will plot a straight line through the five bars. That is not what i need.

    I imagine that the following described LR plot has already been created by someone.

    I am looking for a script that will automatically plot only the point at the right for a series of moving LR calculations. The end result looks similar to a moving average.

    It would be excellent if the script also allowed for the plot to be based on a user-selectable input, such as high, low, open, close, H-L average, etc.

    Optional extras:
    Other usual user-selectable characteristics of the plot would include selectable drawing as a line, or a series of dots or dashes, or some other mark. The colour of the plot and its size or thickness.

    Another inclusion would be to calculate the next future point.

    It will be greatly appreciated if such a script exists or if assistance could be given as to creating a script.

    Thanks for your assistance.

    Firemonkey.



    Comment

    Working...
    X