I have tried to code a Show Me alert that shows up when the close of the candle is within 5% of the high or low of the same candle. I thought I could modify the existing Doji "Show Me" but somehow I messed it up. The alert should ignore doji candles (open=close), and should not consider the other wick (ie. bull candle only checks the upper wick, bear candle only checks the lower wick. This indicator seems to exist in mq4 but I can't find it for Easy Language and cant seem to get it right.
If any of you have thoughts on how I could code this or have the code yourself I would really appreciate it.
what symbol did you test? A bar closing within 5% from the high or 5% from the low is very common by the way. In fact I'd expect almost all bars to trigger this condition, expect the dojis that are ruled out in the code. Think about a bar that makes a high of 1000, as long as the close is within 50 points of the high your condition is valid.
Maybe you could clarify the condition you are looking for and give an example.
Regards,
ABCTG
The following user says Thank You to ABCTG for this post:
I think the filter here that makes them more rare is the close has to be in the direction of the bar. For instance, using your example of a high of 1000. The close would need to be between 95 to 100 points. It has to be in the direction of the bar for it to filter.
I tested USD/JPY on a daily chart, btw.
I hope my explanation helped to clarify things a bit.
can you show a picture of a bar you'd like to see labeled? The code checks for up bars or down bars, which is in the direction of the bar in my opinion.