TrendLine Touch Alert:
This indicator simply alerts and sends email every time the trend line touched by the price.
Fig.1 Price touches the trendline down.
Author: Ahmed Soliman
I am very interested in your indicator which should be very helpful indeed.
I feel a bit embarrassed to say that I know nothing of the MTQL5 Meta language, and I have no idea how to configure your indicator.
Is there any possibility to give me some hints on how and where (i.e. on which line) I should enter the data?
Thanks a lot for your help.
that is very good job from codersguru,
and you can see this also;
ADrawTrendLine can draw trendline automatically and notify you when price meet it
Something Interesting in Financial Video June 2013
newdigital, 2013.06.17 08:41
Metatrader 5 Trend line Hit Alert Demonstration
A Quick demonstration for mine fellow traders of simple trend line alert that can be found here: https://www.mql5.com/en/code/1517
Simple Way to Trade Trendline Breakouts
Step 1. - Locating the Trendline
As a review, a trendline is a line connecting two or more lows or two or
more highs, with the lines projected out into the future. Traders than
look at these projected lines and look for future prices to react around
Step 2. – Wait For a Confirmed Breakout
Next, we need to see how the price reacts to the projected trendline.
There are two potential outcomes when price comes into contact with a
So we wait to see if the price does in fact break through the price. But
we aren’t ready to place a trade just because the price breaks through
the trendline. We need to wait and see if the current candle closes
beyond the trendline. We require a candle to close beyond the trendline
to confirm the breakout. This is a very important rule.
Check out the chart above depicting a trendline on a current USD/JPY
Hourly chart. There were two times in the past week where this trendline
was broken, but look what happened. They were false breakouts. Sellers
were not able to keep the price down below the trendline and both
potential breakout candles closed above the trendline. Had we sold at
either of those two opportunities, we would have been crushed two times
in a row. Something we definitely want to avoid.
So even though it is tempting to get immediately into a trade as price
breaks a trendline in real-time, you would be susceptible to false
breaks. Patience is a virtue.
Step 3. Set Up The Trade
Remember the first image I showed you of the GBP/USD Hourly chart? Let’s
go back to that example because it actually ended up producing a near
perfect breakout setup. Soon after that snapshot was taken, the GBP/USD
fell and broke through our trendline with authority. A very short time
after that, the Hourly candle closed below the trendline and confirmed
the breakout as well. Once this happened, it was time to get to work to
setup this trade.
There are 3 things we needed to do to execute this breakout trade:
There is a saying that goes “What once was resistance, can later become
support. And what once was support, can later become resistance.” This
is the mantra we rely on when setting an Entry order near the original
trendline. We are looking for price to retrace back to the point of
support/resistance it just broke through, and then continue back into
the direction of the original breakout. Take a look at how the trade was
Our Entry order to Sell was placed a couple pips below the trendline,
our Stop Loss was set several pips above the trendline (approx.. 15 pips
from our Entry) and our Limit was set twice as far as our stop (approx.
30 pips from our Entry). Within the next hour, the price retraced back
to the original trendline, and then move back in the direction of
original breakout, exactly what we wanted.
So to recap, we were able to enter into a trade on a confirmed breakout,
we were able to get in at a much more favorable price than entering the
break in real-time, and we were able to set an extremely tight stop
(read: lower our risk) beyond what should be a valid resistance level.
As it turned out, this particular trade was a success, but that
doesn’t mean every trade will be a winner. However, you should take
comfort in the fact that as long as you are using a 1:2 risk/reward
ratio, you only need to be correct 33% of the time to break even. If you
are right more than 33% of the time, you should be a profitable trader
in the long run with this strategy.
Trendline breaks can be tricky to trade, but hopefully this article gave
you a clear approach to mastering them. We've learned that you should
always wait for confirmation of a break by requiring the current candle
to close. We also learned placing our Entry order near the trendline
will give us a better entry price and reduce our risk by allowing a
tighter Stop. Setting our Limit as least twice as far as our Stop should
also help shift the odds in our favor. Good luck with your trading!
Please enable the necessary setting in your browser, otherwise you will not be able to log in.