niceno

Trader
Jun 28, 2023
6
0
7
54
Hi everyone,

A couple of days back, I started to use the Candlestick Pattern Indicator for MT4 and MT5 downloaded from this site, namely from here: https://www.earnforex.com/metatrader-indicators/candlestick-pattern-indicator/

However, I think I have found an error in the include file "MQLTA Candlestick Patterns.mqh". If you go to line 149, inside the function "IsTweezerTop", you will see that it checks as following:

if(IsInvertedHammer(Instrument,TimeFrame,j) && IsShootingStar(Instrument,TimeFrame,i)

which makes no sense, because these two single-channel patterns have their boddies down and shadows on top, opposite of what Tweezer Top should look. If you check the sister function "IsTweezerBottom", you will see the opposite. Namely line 164 reads:

if(IsHangingMan(Instrument,TimeFrame,j) && IsHammer(Instrument,TimeFrame,i)

which, like above makes no sense.

I believe these two lines should be swapped with one another. If you have doubts, try to run this candlestick indicator as it is, and it will find no Tweezer patterns. If you swap the lines as I suggested above, you will find them.


Cheers
 

Enivid

Administrator
Staff member
Nov 30, 2008
18,097
1,264
144
Odesa
www.earnforex.com
I don't think that's an error. This definitely depends on how you define a tweezer top/bottom, but we go the definition that has the top with the upper shadows and bottom with the lower shadows. See our candlestick patterns cheat sheet.

As you can see, the indicator does detect tweezer tops and bottoms when it finds such a pattern.
Here is an example for the tops:
1688115088460.png
And here is the example for the bottom:
1688115099471.png
 
  • 👍
Reactions: niceno

niceno

Trader
Jun 28, 2023
6
0
7
54
Thanks for looking into this and, yes, you are right, my idea of top and bottom tweezers was wrong, quite the opposite from what you have in your "Cheat Sheet"

Cheers
 

lei xu

Newbie
Oct 26, 2023
1
0
1
27
0cd1fa1b1fe92ea294b247de2ef32bd.pngDear author, I am a trader from China, I use this indicator on the MT4 software, but my English level is not good, many words can not be understood, so I would like to ask how to modify it to Chinese?
 

Attachments

  • 2f485f987d42c9c11a6e3f54ea4e1fd.png
    2f485f987d42c9c11a6e3f54ea4e1fd.png
    11.5 KB · Views: 3
  • 7e45336841f52deb9327ebbe84b21c3.png
    7e45336841f52deb9327ebbe84b21c3.png
    52.6 KB · Views: 3
  • d996bbd88836c84bd7e19aa50d38567.png
    d996bbd88836c84bd7e19aa50d38567.png
    742.6 KB · Views: 3

Enivid

Administrator
Staff member
Nov 30, 2008
18,097
1,264
144
Odesa
www.earnforex.com
View attachment 25757Dear author, I am a trader from China, I use this indicator on the MT4 software, but my English level is not good, many words can not be understood, so I would like to ask how to modify it to Chinese?
You can change all these strings to Chinese via the source code.
To change the input parameter names, you only need to modify the commentaries, not the actual variables.
The alert texts are found inside the NotifyPattern() function at line 167.
The pattern names are found inside the DetectPattern() function at line 188.