Forex
Google
New signals service!

Go Back   Forex Trading > Discussion Areas > Metatrader 4


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 11-26-2007, 12:48 PM
Member
 
Join Date: Sep 2007
Posts: 29
OceanFx is on a distinguished road
Order line code help please

Normally pending order lines, current trades, TP's and SL's run the entire horizontal length of chart and I was wondering if there is a way to write logic for EA so that the lines are 'compartmentalized' into a smaller sector surrounding current price.

Perhaps at the very least, I don't understand why MT4 does not have the lines terminate where the 'chart shift' point is.

I want this because, if you have quite a few orders etc, it tends to clutter the screen and interfere with any graphics you might have showing on the RHS.

Any help of sample code would be appreciated

Thanks

OceanFx
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 11-26-2007, 10:54 PM
Member
 
Join Date: Sep 2007
Posts: 29
OceanFx is on a distinguished road
??

Anyone?...........
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 11-26-2007, 11:38 PM
Senior Member
 
Join Date: Jan 2006
Posts: 1,119
omelette is on a distinguished road
The lines you mention can be switched off by unclicking 'Show Trade Levels' from the 'Tools' menu.

Once done, 'custom' trade lines could be coded into an EA, so what you ask is possible to do, but each EA would need a 'custom refit'...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 11-27-2007, 12:06 AM
ralph.ronnquist's Avatar
Senior Member
 
Join Date: Oct 2006
Posts: 280
ralph.ronnquist is on a distinguished road
... or maybe the custom trade lines could be drawn by an indicator? as way of avoiding "custom refit"...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 11-27-2007, 12:23 AM
Member
 
Join Date: Sep 2007
Posts: 29
OceanFx is on a distinguished road
Hmmm thanks

Thanks Guys

I was aware that you can switch off the 'show order lines' in Tools but I didn't think about approaching it from a 'new indicator' point of view.

Another case of trying to bend the existing setup when I should have ripped the whole thing out and started over.

I suppose the most efficient method would be to write a small indicator maybe named "Show orders" which 'senses' present and pending trades etc placing the lines wherever you wish?

Hmm, OK.....now if only I could code. LOL It's OK, I have a C++ programmer I am paying but he is a bit lost with MT4 and I required input so thanks again.

However, if anyone can knock up a piece of sample code to guide him on his way, it would be helpful.

Thanks!

OceanFx
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 11-27-2007, 02:00 AM
ralph.ronnquist's Avatar
Senior Member
 
Join Date: Oct 2006
Posts: 280
ralph.ronnquist is on a distinguished road
The attached indicator can be a start point. I suppose you'll need to add ticket number decoration as well as a marker of the open time, etc. etc. there are of course all sorts of things one can do....
Attached Files
File Type: mq4 Show orders.mq4 (2.1 KB, 12 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 11-27-2007, 07:10 AM
Member
 
Join Date: Sep 2007
Posts: 29
OceanFx is on a distinguished road
Thanks Ralph

Thanks Ralph, that's really kind of you to make the effort.

I will give it a burl and no doubt it shall assist my programmer.

Much appreciated

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

Bookmarks

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
How to code? samahdi Metatrader Programming 1333 Today 03:46 AM
Interesting candle SR horizontal line - need your expertise to code maria77 Indicators - Metatrader 4 40 07-06-2008 02:48 PM
How to code this? iscuba11 Metatrader 4 mql 4 - Development course 1 08-03-2007 04:22 PM
Open Order and Close Order Sean0 Expert Advisors - Metatrader 4 3 07-04-2007 05:41 PM
How... change a solid line to a dotted line Jetheat Metatrader 4 8 06-26-2007 08:55 AM


All times are GMT. The time now is 07:54 AM.



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