Determine slope end or start

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

Determine slope end or start

Postby Januson » 17 Nov 2008

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) Downloaded 785 times

User avatar
TJ
Posts: 7739
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1032 times
Been thanked: 2221 times

Postby TJ » 17 Nov 2008

if all you need to know is pos/neg... just substract one price with the other.

User avatar
Januson
Posts: 119
Joined: 18 Apr 2007
Location: Denmark

Postby Januson » 18 Nov 2008

:? not quite, two prices observed within the blue line would both give a positive result i.e. close[1] - close or jtHMA[1] - jtHMA

Could you explain your answer a bit more?

User avatar
Januson
Posts: 119
Joined: 18 Apr 2007
Location: Denmark

Postby Januson » 19 Nov 2008

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) Downloaded 791 times

User avatar
Januson
Posts: 119
Joined: 18 Apr 2007
Location: Denmark

Postby Januson » 20 Nov 2008

Solved.

tosk

Postby tosk » 21 Nov 2008

Janus,

So how did you solve it?

Tom

User avatar
Januson
Posts: 119
Joined: 18 Apr 2007
Location: Denmark

Postby Januson » 26 Nov 2008

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) Downloaded 772 times


Return to “MultiCharts”