| 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 |
|
|||
|
Improving trading systems...
Hi, just thought id add a note on how you can improve your trading systems...
I think it's best to put the OrderClose and OrderSend functions in a critical section - ie. lock them when they are being executed as, in general, they can take longer to execute. Here's how to add a critical section to your code; it's mutual exclusion: PHP Code:
PHP Code:
TraderDavid. |
|
|||
|
btw...
btw... you can use the locks on any section you think is critical - not just ordersend, etc.
any section which should execute atomicly should be locked executed, then unlocked - to ensure it executes as a whole before being interfered with again. traderdavid. |
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| D'Alembert-Based Trading Systems | WNW | Suggestions for Trading Systems | 40 | 11-21-2007 04:02 PM |
| DayImpuls indicators (for Zigzag Trading Systems) | newdigital | Indicators - Metatrader 4 | 12 | 10-07-2007 09:41 AM |
| Systems Combination Trading System (SCTM) - Lesser whipsaw | dit | Suggestions for Trading Systems | 29 | 02-16-2007 05:19 AM |
| RD Systems | newdigital | Manual trading systems | 0 | 12-05-2005 02:52 PM |