Houston, I have a problem!
|
|||
|
This coding was to eliminate only pending buy and sell stop orders. It unfortunately is deleting both the pending buy and sell stop orders, but also the orders that are active and in play. How can I change this to only eliminate the pending and not the active buy and sell stops that are in play? Your ideas will be greatly appreciated.
Dave 77, TGIF Houston, TX For cnt=1 to TotalTrades { mode=OrderValue(cnt,VAL_TYPE); If mode>OP_SELL then { If (Minute>58)then // Delete pending Sell Stops. { DeleteOrder(OrderValue(cnt,VAL_TICKET),Cyan); Exit; }; }; If mode>OP_BUY then { If (Minute>58)then // Delete pending Buy Stops. { DeleteOrder(OrderValue(cnt,VAL_TICKET),Cyan); Exit; }; }; |
![]() |
![]() |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| InterbankFX Spreads Problem | gazuz | Brokers/Platforms | 8 | 08-17-2008 01:31 PM |
| i have problem with fxfisherman output | mssarath | MetaTrader and ZeroCode | 2 | 08-25-2005 01:36 PM |
| RSI - MQL II Indicator Statement Problem | Dave77 | MetaTrader and ZeroCode | 2 | 07-16-2005 11:33 PM |
| Problem getting the zero code to verify | rosstodd | MetaTrader and ZeroCode | 4 | 06-10-2005 10:49 PM |
All times are GMT. The time now is 11:41 AM.
Powered by vBulletin Version 3.6.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
Registered members have access to special online forex currency trading tools, software, mt4 expert advisors and indicators. Register now








Linear Mode

