Forex
Google

Go Back   Forex Trading > Metatrader Training > Metatrader 4 mql 4 - Development course > Questions
Forex Forum Register FAQ Members List Calendar Search Today's Posts Mark Forums Read


Register in Forex TSD!
Trading Systems Leaders in this forum (automated trading systems) are winning more than 3000 pips in a month (30000$ investing one lot every time).
Click here to register and get more information

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-19-2005, 07:34 PM
astro astro is offline
Junior Member
 
Join Date: Dec 2005
Posts: 6
astro is on a distinguished road
Simple Trend Line Break

Newbie Here;

Although there is a wealth of info on this forum, it doesn't make much sense to me because I don't get programming. I suppose I could spend weeks trying to figure it all out, but what I am looking for is so simple.

Each drawn trend line has a unique identifying number and all I want to do is set up a generic program to send an alert to signal me when price touches that trend line. And be able to change the identifying number as the new trend lines are drawn.

The type of trend line I am referring to is not a horizontal price but a line drawn from swing high to swing high or from swing low to swing low.

How can I create a simple adviser that says:

Alert when price (touched, is above, is below, has crossed through, etc…whatever) trendline 57086.

Thank-you for your patience and I deeply appreciate your help.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 12-20-2005, 02:00 PM
alp alp is offline
Senior Member
 
Join Date: Nov 2005
Posts: 108
alp is an unknown quantity at this point
you'd better post a picture of what are you trying to create.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 12-20-2005, 04:09 PM
astro astro is offline
Junior Member
 
Join Date: Dec 2005
Posts: 6
astro is on a distinguished road
Just your basic Trendline Break

Except I don't want auto trading, just to be alerted when trendline is touched or broken.

Picture borrowed from ykimyego Trendlines and Divergence Strategies

Thanks ykimyego
Attached Images
File Type: gif Trendline Break Setup.gif (13.7 KB, 509 views)

Last edited by astro : 12-20-2005 at 04:14 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 12-20-2005, 04:59 PM
alp alp is offline
Senior Member
 
Join Date: Nov 2005
Posts: 108
alp is an unknown quantity at this point
If you draw TLs manualy on a price chart then you may set up standard MT alerts on correspondent levels and adjust them again by hand.
If you want an automatic TLs drawing then you have to define the way they will appear on the chart. It can be either fractals or DeMark points.
Have no idea how to set alerts on TLs drawn on indicator.

Jacob must be more competent on this issue
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 12-20-2005, 05:34 PM
astro astro is offline
Junior Member
 
Join Date: Dec 2005
Posts: 6
astro is on a distinguished road
alert on manual TLs that I draw on chart only (no alert on indicators)

Since each TL line has its own unique identifying number, it seems like it should be easy to just say: “alert when price touches TL #xxxx.” As sophisticated as MT is, there has to be a way to program something so simple.

The standard MT alerts are for price only. So the only way to use it would be to set the price where the period line intersects the trend line and reset the price alarm for every period. What a pain, the whole point is to set it up and get some sleep until the next TL bounce/break.

Anyway, thank you very much for your time and interest.

Last edited by astro : 12-20-2005 at 05:42 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 12-20-2005, 06:20 PM
keris2112's Avatar
keris2112 keris2112 is offline
Senior Member
 
Join Date: Dec 2005
Location: California, US
Posts: 129
keris2112 is on a distinguished road
From Metaquotes forum

This was taken from the Metaquotes forum. It doesn't give the exact details, but hopefully somebody can take the info and create "something" out of it.

Quote:
QUESTION:
How Can I: alert when price cross a drawn trendline?

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

RESPONSE:
Martin Cooney

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("T rendlineTop", 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
Hope this helps. Here's the direct link: http://www.metaquotes.net/forum/493/
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 12-21-2005, 03:18 PM
astro astro is offline
Junior Member
 
Join Date: Dec 2005
Posts: 6
astro is on a distinguished road
Thank you very much

For your time and effort.

I'll have to dissect the line and figure out how to adapt it to my needs. I guess there is no easy way around learning code but thanks to codersguru it can be done. I was just lazy to spend the time. You have given me a place to start and thats good enough.

Thank you.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
Renko and 3 line Break kohzadi Metatrader 4 15 05-28-2008 12:08 PM
3 line break RickW00716 General Discussion 2 04-12-2007 10:10 AM
Please fix indicator 3 line break toddanderson Indicators - Metatrader 4 2 02-19-2007 11:00 AM


All times are GMT. The time now is 06:24 AM.