Kaufman Efficiency Ratio


Category:
0
0

Hi,

Is there a way to convert the TC2000 code into thinkscript for the Kaufman Efficiency Ratio?  The scale range is from -100 to +100.  Thanks.

Here is the info on it from TC2000

https://help.tc2000.com/m/69404/l/749623-kaufman-efficiency-ratio

Marked as spam
Posted by (Questions: 5, Answers: 8)
Asked on December 1, 2019 5:44 pm
332 views
0
Before getting started. I see you posted this in the "Alerts and Notifications" topic. However you did not provide any parameters for using this as an alert. So I believe what you are asking for here is a chart study. Please confirm, and I will move this post into the correct topic if needed.
( at December 1, 2019 6:48 pm)
0
Private answer

From the example given in the link provided:

A 20 period Kaufman Efficiency Ratio can be written as follows.

100 * (C - C20) / SUM(ABS(C - C1), 20)

Directly translated into Thinkorswim also including a user input for length:

declare lower;
input length = 20;
plot ker = 100 * (close - close[length]) / Sum(AbsValue(close - close[1]), length);

Marked as spam
Posted by (Questions: 37, Answers: 4118)
Answered on December 2, 2019 10:42 am