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 07-05-2006, 08:43 AM
Member
 
Join Date: Apr 2006
Posts: 36
DollarShort is on a distinguished road
Am I stupid or just missing something?

Hi!
I've had a few cases with an EA on a Demo acct with FXDD, running MT4, where the OrderSelect(...,...MODE_TRADES) still shows a trade as active several HOURS after it hit a stoploss. Does my EA have to do something to clear out that trade?

Thanks for the help and may the pips be with you!

DS
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 07-06-2006, 09:16 AM
fairwind's Avatar
Member
 
Join Date: Nov 2005
Location: West Australia
Posts: 55
fairwind is on a distinguished road
Hi dollarshort,

I am afraid I cant help you with your EA query as I am not a programmer of any sort. I would not however call myself 'stupid' because of that.

What I want to say is that I dont think you are stupid and if I may suggest, it is not necessary to refer to yourself as such. I suspect you are merely missing something.

I hope you succeed with your query as I, along with others, rely on the efforts of you progammers.
__________________
Good trading to all...............

fairwind
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 07-07-2006, 03:24 PM
Member
 
Join Date: Apr 2006
Posts: 36
DollarShort is on a distinguished road
I don't think I'm stupid, either. I just used that to (hopefully) get attention to the question that I have. Thank you for the good words!
May the pips be with you!

DS
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 07-11-2006, 04:42 AM
cubesteak's Avatar
Senior Member
 
Join Date: Jul 2006
Location: Southern California
Posts: 163
cubesteak is on a distinguished road
Quote:
Originally Posted by DollarShort
Hi!
I've had a few cases with an EA on a Demo acct with FXDD, running MT4, where the OrderSelect(...,...MODE_TRADES) still shows a trade as active several HOURS after it hit a stoploss. Does my EA have to do something to clear out that trade?

Thanks for the help and may the pips be with you!

DS
seeing the EA would probably help. Not that I'll be able to solve the problem, but, hey, ya never know.

-ca
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 07-12-2006, 04:36 AM
Junior Member
 
Join Date: Jul 2006
Posts: 9
danielpasono is on a distinguished road
Do you have multiple examples of this, or just one?
I ask because I've seen my EAs skip a stop loss with InterbankFX. When I talked to their tech support they said it happens rarely and if it ever happened with real money they make it right.

If you have multiple examples, I'd say talk to your broker. If price ran through your stop loss it should get you out. Period.

Daniel
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 07-12-2006, 05:47 AM
cockeyedcowboy's Avatar
Senior Member
 
Join Date: Nov 2005
Posts: 302
cockeyedcowboy is on a distinguished road
DollarShort

I've come accross the same thing. It doesnot have any thing to do with FXDD, Its with Meta Trader itself. I beleive if you set the termial history period to current session, it will change the results of the trade mode listings of closed trades in your current session. Other then that the orders will stay as currently active till the close of the trading session evern though there are closed out.

However when you write your EA your have no knowledge as to what setting someone will have their termial history setting on. I've used the orderprofit() function to test if the order was closed or still open instead of relying on the orderselects trade mode listings. Useing OrderSelect and testing if ordernumber's orderprofit is <> zero. If its still equals zero then it is still active if its non zero it has close either at a profit or loss. This works no matter what setting the termial history is set at.

Hope this makes sence. Like the Name by the way.

The CockeyedCowboy



Quote:
Originally Posted by DollarShort
Hi!
I've had a few cases with an EA on a Demo acct with FXDD, running MT4, where the OrderSelect(...,...MODE_TRADES) still shows a trade as active several HOURS after it hit a stoploss. Does my EA have to do something to clear out that trade?

Thanks for the help and may the pips be with you!

DS

Last edited by cockeyedcowboy; 07-12-2006 at 05:49 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 07-12-2006, 03:35 PM
Member
 
Join Date: Apr 2006
Posts: 36
DollarShort is on a distinguished road
CockEyedCowboy:

Thanks for the method! I guess that I was just missing something. I'm curious about your name... Mine comes from two reasons:
1) "... a dollar short and a day late..." ---sums up my forex so far...
2) Obvious, going short on the US$....

DS
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 07-12-2006, 06:26 PM
cubesteak's Avatar
Senior Member
 
Join Date: Jul 2006
Location: Southern California
Posts: 163
cubesteak is on a distinguished road
Quote:
Originally Posted by cockeyedcowboy
DollarShort
I've come accross the same thing. It doesnot have any thing to do with FXDD, Its with Meta Trader itself. I beleive if you set the termial history period to current session, it will change the results of the trade mode listings of closed trades in your current session. Other then that the orders will stay as currently active till the close of the trading session evern though there are closed out.
Hello,

Would you mind explaining how to change this in MT4? I can't find the setting... Sorry if I'm being horribly dense!

Thanks,
-cubesteak
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 07-13-2006, 01:50 AM
Member
 
Join Date: Mar 2006
Posts: 49
pipeline is on a distinguished road
Thanks for this useful piece of info, cockeyedcowboy; it s the kind of "bug" one can spend hours on without finding what goes wrong.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 07-17-2006, 06:04 AM
cockeyedcowboy's Avatar
Senior Member
 
Join Date: Nov 2005
Posts: 302
cockeyedcowboy is on a distinguished road
Quote:
Originally Posted by DollarShort
CockEyedCowboy:

Thanks for the method! I guess that I was just missing something. I'm curious about your name... Mine comes from two reasons:
1) "... a dollar short and a day late..." ---sums up my forex so far...
2) Obvious, going short on the US$....

DS
Got the name from a bar that I use to just about live at in Dallas Texas. Dont know if its still there.
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
HAHAHA! Oh man, what a stupid noob I am... cubesteak General Discussion 5 01-14-2007 11:59 AM
What lines are missing, please matrixebiz Expert Advisors - Metatrader 4 2 12-06-2006 12:44 AM
stupid question... trippeeee Expert Advisors - Metatrader 4 2 03-09-2006 05:12 PM


All times are GMT. The time now is 09:52 PM.



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