# Determine slope end or start

Questions about MultiCharts and user contributed studies.
Januson
Posts: 119
Joined: 18 Apr 2007
Location: Denmark

### Determine slope end or start

Hi

Please take a look at my screenshot, is there any built-in og custom developed function packages that can tell me the slope and/ or if we are standing at point A or point B?

Somehow I need to determine if it's a positive or negative slope within the blue area... could we do something with Cosinus?
Attachments
endstartofslope.png (31.43 KiB) Viewed 726 times

TJ
Posts: 7151
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 988 times
Been thanked: 2041 times
if all you need to know is pos/neg... just substract one price with the other.

Januson
Posts: 119
Joined: 18 Apr 2007
Location: Denmark
not quite, two prices observed within the blue line would both give a positive result i.e. close[1] - close or jtHMA[1] - jtHMA

Januson
Posts: 119
Joined: 18 Apr 2007
Location: Denmark
Please take a look here. Am I confused? Or misunderstanding something?

Simple code, just to get myself into the basics:

Indicator: JK_LinearRegressionAngleDouble

Code: Select all

`Value1 = jtHMA(Close, 21);value2 =  LinearRegAngle(value1,1);value3 = LinearRegSlope(value2,2);Plot1(Value3, "LRADouble");plot2(0, "zero");`
Attachments
linregangledouble.png (102.87 KiB) Viewed 732 times

Januson
Posts: 119
Joined: 18 Apr 2007
Location: Denmark
Solved.

tosk
Janus,

So how did you solve it?

Tom

Januson
Posts: 119
Joined: 18 Apr 2007
Location: Denmark
Hello again

Take a look at the attached screenshot, I've plotted my ideas at it.

It's important for me to have a concise reading of trend start or trend end because I need it in my strategy.

Btw. what do you think about my other idea with trend reversal spotting?
Attachments
doubleregression.png (87.62 KiB) Viewed 713 times