Announcement

Collapse
No announcement yet.

Need second line of Linear regration indicator which is smoothed by EMA

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

  • Need second line of Linear regration indicator which is smoothed by EMA

    I am trying to make this indicator from such long time, i hope this time some one will help me out.

    I am using Linear regration indicator, i need second same line but it should be smoothen by ema.

    I have attached the Linear regration indicator and another file which i have tried to make that indicator, please have a look and help to make it.

    i have tried some coding in ema_of_linearregration _indicator , i have attached that file.

    what i am trying to make is explained below.


    EMA_linearregration(Close,20,8) plots two lines
    One line is a Linear Regression -- LenReg(20)
    Second line is an EMA applied to that Linear Regression -- EMA(8)
    When the two lines cross, they change color
    When LenReg > EMA(LenReg), the color is green
    When LenReg < EMA(LenReg), the color is red

    so please help me too make this indicator.
    Attached Files
Working...
X