• Get $30 off VIP with code SUMMER30. Ends July 27. Happy trading!

Kaufman Efficiency Ratio Buy / Sell Signals

Ananas

New member
# Kaufman Efficiency Ratio by Bezna$
# It's a good idea to have one at n=50 and an othe one at n=80
# ----------------------------------------------------------
declare lower;
input N = 50;
input Threshold = .80;
def netchg = close - close[N];
def sumchg = Sum(AbsValue(close - close[1]), N);
plot KER = round((netchg / sumchg), 2);
KER.SetStyle(Curve.FIRM);
KER.SetDefaultColor(Color.light_gray);
KER.SetLineWeight(1);

plot Zero = 0;
Zero.SetDefaultColor(Color.white);

plot OS = HighestAll(KER) * Threshold; #.8;
OS.SetDefaultColor(Color.RED);

plot OB = LowestAll(KER) * Threshold; #.8;
OB.SetDefaultColor(Color.GREEN);

def Buy = KER < OB;
def Sell = KER > OS;

AddLabel(Buy or Sell, if Buy then " Kaufman Buy Signal " else " Kaufman Sell Signal ", if Buy then Color.GREEN else Color.RED);
#=============
KER.DefineColor("Buy", Color.GREEN);
KER.DefineColor("Neutral", Color.gray);
KER.DefineColor("Sell", Color.RED);
KER.AssignValueColor(if Buy then KER.Color("Buy") else if Sell then KER.Color("Sell") else KER.Color("Neutral"));
#==================
def SellSignal = if KER crosses above OS then KER else Double.NaN;
def BuySignal = if KER crosses below OB then KER else Double.NaN;

AddCloud(KER, 0, Color.green, color.dark_orange);
AddVerticalLine(BuySignal, round(close,2), Color.GREEN, Curve.FIRM);
AddVerticalLine(SellSignal, round(close,2), color.red, Curve.FIRM);
 

germanburrito

Active member
# Kaufman Efficiency Ratio by Bezna$
# It's a good idea to have one at n=50 and an othe one at n=80
# ----------------------------------------------------------
declare lower;
input N = 50;
input Threshold = .80;
def netchg = close - close[N];
def sumchg = Sum(AbsValue(close - close[1]), N);
plot KER = round((netchg / sumchg), 2);
KER.SetStyle(Curve.FIRM);
KER.SetDefaultColor(Color.light_gray);
KER.SetLineWeight(1);

plot Zero = 0;
Zero.SetDefaultColor(Color.white);

plot OS = HighestAll(KER) * Threshold; #.8;
OS.SetDefaultColor(Color.RED);

plot OB = LowestAll(KER) * Threshold; #.8;
OB.SetDefaultColor(Color.GREEN);

def Buy = KER < OB;
def Sell = KER > OS;

AddLabel(Buy or Sell, if Buy then " Kaufman Buy Signal " else " Kaufman Sell Signal ", if Buy then Color.GREEN else Color.RED);
#=============
KER.DefineColor("Buy", Color.GREEN);
KER.DefineColor("Neutral", Color.gray);
KER.DefineColor("Sell", Color.RED);
KER.AssignValueColor(if Buy then KER.Color("Buy") else if Sell then KER.Color("Sell") else KER.Color("Neutral"));
#==================
def SellSignal = if KER crosses above OS then KER else Double.NaN;
def BuySignal = if KER crosses below OB then KER else Double.NaN;

AddCloud(KER, 0, Color.green, color.dark_orange);
AddVerticalLine(BuySignal, round(close,2), Color.GREEN, Curve.FIRM);
AddVerticalLine(SellSignal, round(close,2), color.red, Curve.FIRM);
this does a great job at calling tops and bottoms, what is it? where did you get this idea my good sir.
 

ktp

New member
It would depend on the time frame you are using to trade since the signal is using highestall/lowestall.
 

MerryDay

Well-known member
VIP
In his book "Measuring Cycle Periods", John Ehlers identifies dominant market cycle periods by use of multiple bandpass filtering.
 

Similar threads

Top