New! Stock Portfolio Organizer is now available:
  • Shares, Margin, Futures and Forex
  • EOD and Realtime data
  • And Much More...
GoTo Stock Portfolio Organizer

Contribute

Contribute an indicator to the library by clicking here. Note you must be logged in.

Sponsors

Popular Indicators

Price With Regression and Trend for Amibroker (AFL)

3 / 5 (Votes 7)

Shows Trendlines of Prices as well as the linear regression of the price.

When Trend is up, trendline is green.
When Trend is down, trendline is red.

Just modify the period of the regression line to what you would like to use.

Here is a screenshot of how the indicator looks:
Linearregwithtrend

Similar Formulas

Formula

4 Comments

Not bad

2. faruq11

good one. Helps to cut out the losing trades.

Dear Boknoy9999: Nice code! But how do you combine this code with your existing trading system? Don’t you have problems with the fact that this code looks into the future?

how to generate buy and sell signal

Please login here to leave a comment.

Main Menu

Indicators

Sponsors