Forex



Go Back   Forex Trading > Discussion Areas > Setup 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 06-19-2009, 08:52 AM
Junior Member
 
Join Date: Jun 2006
Posts: 2
GannFan is on a distinguished road
"Remainder of order" - help needed

Hi, can anyone tell me why the following is happening? It is playing havoc with my EA.

I have a position open for some time. Without my intervention, it is closed and replaced with a new position. The original (now closed) position has "to # (then the new ticket number)" posted in its Comment field. The new (replacement) position has "from # (then the old ticket number)" posted in its Comment field. The opening price of the replacement position is identical to the closing price of the original position.

My EA depends upon retaining the original ticket number, so you can imagine how frustrating this is...

Any help much appreciated.
Thanks
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 06-19-2009, 08:54 AM
Senior Member
 
Join Date: Dec 2007
Posts: 492
Enforcer is on a distinguished road
Sound like partial close.
__________________
www.signalcopy.com - Most advanced tools for copy Metatrader signals.
Free MT4 account statistics - advanced stats and graphs for MT4 accounts
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 06-19-2009, 09:18 AM
mladen's Avatar
Senior Member
 
Join Date: Oct 2006
Posts: 1,270
mladen is on a distinguished road
...

Unfortunately, no good news for you (at least with Metatrader 4, version 5 with "one order per symbol" will not have that problem, but that is a completely different story)
__________________________

The problem is that partial close changes not just your ticket number (the remaining part becomes a whole new ticket), but also that whatever you place on an original ticket as description is overwritten. Now I would not mind that if it was not for a "minor" detail : we (the users) can not change the description field as opposed to brokers that can. So we can not keep track of a trade going through partial closes, since brokers can and are happily changing our initial description for the trade.

We (the users) in fact do not have a single field of an order that we can change without changing the crucial parts of order itself (something like "whatever field")
__________________________

I know that this is not the answer you were hopping for, but...

regards
mladen

Quote:
Originally Posted by GannFan View Post
Hi, can anyone tell me why the following is happening? It is playing havoc with my EA.

I have a position open for some time. Without my intervention, it is closed and replaced with a new position. The original (now closed) position has "to # (then the new ticket number)" posted in its Comment field. The new (replacement) position has "from # (then the old ticket number)" posted in its Comment field. The opening price of the replacement position is identical to the closing price of the original position.

My EA depends upon retaining the original ticket number, so you can imagine how frustrating this is...

Any help much appreciated.
Thanks
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 06-22-2009, 03:54 AM
Junior Member
 
Join Date: Jun 2006
Posts: 2
GannFan is on a distinguished road
Thanks for your help

Enforcer, mladen,

Thanks very much for pointing me in the right direction. My EA was indeed, due to a coding fault, closing only part of an open position.

You've saved me a lot of time - much appreciated!

Kind regards,
GannFan
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 07-03-2009, 10:51 PM
Senior Member
 
Join Date: Sep 2007
Posts: 116
Ms_Mel is on a distinguished road
One way of "tricking" a system which is based on partial closes is to instead of taking 1 trade (say 0.5 lot trade), have the EA take 5 separate trades one after the other. Then the closing becomes simple. You might have a slight difference in price, but only small.

I know you've solved your problem (fault in coding) but in case anyone else has the problem.

Happy trading,
__________________
Profitable trading starts here:
http://forexleader-forexleader.blogspot.com/
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


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
Is there EA/Script for "Pending Order" entry and allows to assign Magic No.? pipimo88 Metatrader 4 5 11-06-2009 02:14 PM
dose it posible to creat any function of "mql code" posting in this forum? phoenix MetaTrader 23 09-23-2009 04:10 PM
"Gordago Stock Optimizer" - easily generates Expert Advisors De Vinci Tools and utilities 18 04-12-2009 02:01 AM
How to "teach" and to use the AI ("neuron") EA? danil Suggestions for Trading Systems 5 07-15-2008 05:26 PM
Are there no "and" "or" operators in mql4?? kxracer500 Metatrader 4 2 06-23-2007 09:14 AM


All times are GMT. The time now is 10:59 AM.



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