Announcement

Collapse
No announcement yet.

Can someone convert this TS code to EFS

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

  • Can someone convert this TS code to EFS

    inputs: Price(Close), length(25), BarsBack(1), Displace(0),UpColor(green), DownColor(red) ;
    var: LR(0);

    LR= LinearRegValue(Price.Lenght,0);

    If LR > LR[BarsBack] then setplotcolor[1](1, UpColor);
    If LR < LR[BarsBack] then setplotcolor[1](1, DownColor);

    Plot1[Displace](LR,"LinReg");

  • #2
    booker777
    If you click here you will find the amStudies.efsLib Function Library which contains also the Linear Regression function (amLSMA). Also in the same location you will find the amStudies.html help file that includes a sample script (Example #3) which does what you are looking for.
    For more information on the amStudies Function Library click here
    Alex

    Comment

    Working...
    X