Skip to playerSkip to main content
  • 7 years ago
This new version of tutorial 49 (_Tutorial49-use bars in day) is very similar to the program in tutorial 49, except in this case the linear regression is calculated and drawn solely for the bars that have formed for the current day (or the most recent day).

_Tutorial49-use bars in day works with TradeStation (8.7 forward) and MultiCharts.

This tutorial uses the code originally written for tutorial 48 and tutorial 49 that creates a line using linear regression that best fits chart data. The linear regression technique uses the least squares method to calculate the slope and y-intercept of this line.

As in Tutorial 49, the standard deviation of the right most end of the regression line is calculated in order to create a channel made up of two parallel lines above and below the linear regression line. These lines are drawn a user input multiple of standard deviations above and below the original linear regression line.

See https://markplex.com/free-tutorials/tutorial-49-creating-linear-regression-channel/tutorial-49-2-linear-regression-using-just-todays-bars/

Category

📚
Learning
Be the first to comment
Add your comment

Recommended