This forum is in read-only mode now. You may discuss your questions on forums of MQL4.community and MQL5.community
How Can I: alert when price cross a drawn trendline?Back to topics list |
|
ivo
2005.06.02 15:02
Hello
Is it possible to create an alert to jump out when a price cross a previously drawn trend line? What I mean is: I have a pattern and appropriate trendline already existing on the chart. I'd like to be alerted when this trendline is broken. Is it possible? How or any hints about? If I get subsequent high/lows to draw a line it won't be streight, but rather zig-zag. I want 1st to drow the streight line and then ti lock for a break. I hope I've explained clear the idea . . . Thank you Ivo |
|
MartinCooney
2005.06.02 15:58
Ivo,
I have an expert which does essentially this. To be able to query the trendline though, I've had to ensure each different trendline has a specific label. price_top=NormalizeDouble(ObjectGetValueByShift("TrendlineTop", 1),MarketInfo(Symbol(),MODE_DIGITS)) The trendline in this case has the name "TrendlineTop" Hope this helps you out - certainly works for me. Cheers Martin |
Download MetaTrader 5 (450 Kb, web installer) — a new terminal for financial markets
