Forex



Go Back   Forex Trading > Training > Metatrader > Metatrader 4 mql 4 - Development course > Questions
Forex Forum Register More recent Blogs Calendar Advertising Others Help






Register
Welcome to Forex-TSD!, one of the largest Forex forums worldwide, where you will be able to find the most complete and reliable Forex information imaginable.

From the list below, select the forum that you want to visit and register to post, as many times you want. It’s absolutely free. Click here for registering on Forex-TSD.

Exclusive Forum
The Exclusive Forum is the only paid section. Once you subscribe, you will get free access to real cutting-edge Trading Systems (automated and not), Indicators, Signals, Articles, etc., that will help and guide you, in ways that you could only imagine, with your Forex trading.
  • Elite Section
    Get access to private discussions, specialized support, indicators and trading systems reported every week.
  • Advanced Elite Section
    For professional traders, trading system developers and any other member who may need to use and/or convert, the most cutting-edge exclusive indicators and trading systems for MT4 and MT5.
See more

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 12-19-2005, 08:34 PM
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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #2 (permalink)  
Old 12-20-2005, 03:00 PM
alp alp is offline
Senior Member
 
Join Date: Nov 2005
Posts: 109
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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #3 (permalink)  
Old 12-20-2005, 05:09 PM
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, 918 views)

Last edited by astro; 12-20-2005 at 05:14 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #4 (permalink)  
Old 12-20-2005, 05:59 PM
alp alp is offline
Senior Member
 
Join Date: Nov 2005
Posts: 109
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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #5 (permalink)  
Old 12-20-2005, 06:34 PM
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 06:42 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #6 (permalink)  
Old 12-20-2005, 07:20 PM
keris2112's Avatar
Senior Member
 
Join Date: Dec 2005
Location: California, US
Posts: 130
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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #7 (permalink)  
Old 12-21-2005, 04:18 PM
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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #8 (permalink)  
Old 02-07-2006, 05:54 PM
ycomp's Avatar
Member
 
Join Date: Jan 2006
Posts: 93
ycomp is on a distinguished road
Any MT4 indicators similar to Bell Warning Line (BWL)? [for riding the trend]

Hi,

was just reading about Bell Warning Line... I don't think I've tried an indicator like that for exits yet. Can anyone recommend something similar that I can find for MT4 to use?

description of Bell Warning Line here:

Adaptive moving averages are fairly well
known. Two of the most widely known are
Kaufman’s Adaptive Moving Average (KAMA)
and VIDYA, another adaptive moving average
developed by Kushar Chande. Both of these
indicators get faster when the market moves
faster, and get slower when the market moves
slower.

The Bell Warning Line (BWL) works on the
opposite principle. As the market goes into an
extended move, the BWL gets slower, allowing
for wider stops as the trend is drawn out. When
the trend starts to fall apart, however, the BWL
speeds up, tightening the stops and preserving
profits.


http://www.bestcommoditycharts.com/quickstart.PDF
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #9 (permalink)  
Old 02-21-2006, 05:11 AM
Senior Member
 
Join Date: Oct 2005
Posts: 455
Perky is on a distinguished road
hmmmm
heres my kama
or should I rephrase that to the copy I have of KaufmanI dont use it
hope this helps
Attached Files
File Type: mq4 Kaufman2.mq4 (3.3 KB, 225 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #10 (permalink)  
Old 03-06-2006, 01:55 PM
mwriter's Avatar
Junior Member
 
Join Date: Feb 2006
Posts: 3
mwriter is on a distinguished road
Question trend line help

Hi guys,

I'm really new to coding/scripting in general so i'm going to have lots of noob questions *bear with me please!*

in any case. I was trying to create a simple "indicator". I was trying to write an expert advisor to identify trend line points (you need two points for trend lines)

pls correct me if i'm wrong here:

1. if say i wanted to two highest highs from the last 100 bars. do i assign all the highs from 100 bars and do a sort on the array values?

2. is it possible to keep drawing trend lines from the 2 highest highs (for example). bearing in mind i'm trying to keep only one trend line on the main window at all times. meaning i have to delete the old one. also that means i have to draw a trend line by defining to variables as the 2 defined coordinates, is that even possible?

i will appreciate any help at all on that matter because i've only just picked up mql a couple of weeks ago. so i'm quite sure everyone else is more experienced than me haha.

thanks in advance everyone.

Regards,
Joseph aka Mr. Writer
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
Reply

Bookmarks

Tags
trend line, 3 line break, auto trend lines


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

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

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


All times are GMT. The time now is 04:51 AM.



Search Engine Friendly URLs by vBSEO 3.2.0 ©2008, Crawlability, Inc.