LinearRegression
Click the file above to Download.
NOTE: For easy import into your charts, save to some where that you will be able to remember, for example your computer's desktop. Be sure to save using .alt as the file extension.
Copy to Clipboard IF (LR[1](Close, 14) < LR[0](Close, 14) AND LR[1](Close, 14) < LR[2](Close, 14)) THEN addBuyEntry ENDIF IF (LR[1](Close, 14) > LR[0](Close, 14) AND LR[1](Close, 14) > LR[2](Close, 14)) THEN addSellEntry ENDIF
Enlarge Chart