| New signals service! | |
|
|||||||
| 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 |
|
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
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 |
|
||||
|
Quote:
-ca |
|
|||
|
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 |
|
||||
|
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:
Last edited by cockeyedcowboy; 07-12-2006 at 05:49 AM. |
|
|||
|
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 |
|
||||
|
Quote:
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 |
|
||||
|
Quote:
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
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 |