Just wondering if there is a holy grail for coding/ defining/ formulas for Candlesticks and patterns...
I'll set TOS as a reference, seem OK but perhaps not the best.
I have not done a full comparison yet, thought I'd question the experts...
Found a detailed list on TC2000 with formulas.
Samples of code some Trade View are using...
Appears to be some subjectivity in describing things "pretty short wick", "slightly more than" "slightly less than", "Close to" etc. maybe an occasional "if /then/ else/ BUT what if......"
Here is an example of what I'm seeing (not complete codes) for the "Hammer" looking for Best Practice...
Even the descriptions I've read are vague at times.
Source: TOS ( averages 20 candles)
def BodyHeight = BodyHeight();
def AverageBodyHeight = Average(BodyHeight, length);
def ErrMargin = 0.05 * AverageBodyHeight;
def IsShort = BodyHeight < bodyFactor * AverageBodyHeight;
Source 1: Averages 10
5 * ABS(C - O) <= H - L AND 10 * ABS(O - C) >= H - L AND 2 * O >= H + L AND STOC1 >= 50 AND (20 * O >= 19 * H + L OR STOC1 >= 95) AND 10 * (H - L) >= 8 * (AVGH10 - AVGL10) AND L = MINL5 AND H > L
Source 2: Plain and simple...
(((H-L)>3*(O-C)AND((C-L)/(.001+H-L)>0.6)AND((O-L)/(.001+H-L)>0.6)))
Source 3: averages 20
if( wick > ( body*2.0 ) && tip < (body/2) ){ BufferBullishHammer = Low - 20*Point;
Source 4: Close above or below 52 ma
def MovingAvg = 52;
def Avg2 = SimpleMovingAvg(close, MovingAvg);
def CandleBody = AbsValue(open - close);
def UpperWick = high - Max(open, close);
def LowerWick = Min(open, close) – low;
def Hammer = LowerWick > CandleBody * 2 and UpperWick <= LowerWick * 0.2 and low < low[1] and low < low[2] and low < low[3] and low < low[4] and low < low[5] and low < low[6] and low < low[7] and low < low[8] and close > Avg;
Source 5: No averages but plots on a 20 day pivot
def hammer = pl and min(open,close) - low> d and high - max(close,open) < d;
######################################
The list goes on....
Tweezers... well... I'm just going to code that one.
Exact Tweezers, Close enough Tweezers and Fuzzy tweezers... and not necessarily together.
I'll set TOS as a reference, seem OK but perhaps not the best.
I have not done a full comparison yet, thought I'd question the experts...
Found a detailed list on TC2000 with formulas.
Samples of code some Trade View are using...
Appears to be some subjectivity in describing things "pretty short wick", "slightly more than" "slightly less than", "Close to" etc. maybe an occasional "if /then/ else/ BUT what if......"
Here is an example of what I'm seeing (not complete codes) for the "Hammer" looking for Best Practice...
Even the descriptions I've read are vague at times.
Source: TOS ( averages 20 candles)
def BodyHeight = BodyHeight();
def AverageBodyHeight = Average(BodyHeight, length);
def ErrMargin = 0.05 * AverageBodyHeight;
def IsShort = BodyHeight < bodyFactor * AverageBodyHeight;
Source 1: Averages 10
5 * ABS(C - O) <= H - L AND 10 * ABS(O - C) >= H - L AND 2 * O >= H + L AND STOC1 >= 50 AND (20 * O >= 19 * H + L OR STOC1 >= 95) AND 10 * (H - L) >= 8 * (AVGH10 - AVGL10) AND L = MINL5 AND H > L
Source 2: Plain and simple...
(((H-L)>3*(O-C)AND((C-L)/(.001+H-L)>0.6)AND((O-L)/(.001+H-L)>0.6)))
Source 3: averages 20
if( wick > ( body*2.0 ) && tip < (body/2) ){ BufferBullishHammer = Low - 20*Point;
Source 4: Close above or below 52 ma
def MovingAvg = 52;
def Avg2 = SimpleMovingAvg(close, MovingAvg);
def CandleBody = AbsValue(open - close);
def UpperWick = high - Max(open, close);
def LowerWick = Min(open, close) – low;
def Hammer = LowerWick > CandleBody * 2 and UpperWick <= LowerWick * 0.2 and low < low[1] and low < low[2] and low < low[3] and low < low[4] and low < low[5] and low < low[6] and low < low[7] and low < low[8] and close > Avg;
Source 5: No averages but plots on a 20 day pivot
def hammer = pl and min(open,close) - low> d and high - max(close,open) < d;
######################################
The list goes on....
Tweezers... well... I'm just going to code that one.
Exact Tweezers, Close enough Tweezers and Fuzzy tweezers... and not necessarily together.