| 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 |
|
|||
|
Quote:
|
|
||||
|
You can assign a hotkey to your script, and then have your EA simulate 'pressing' the hotkey which will trigger your script to run as a process outside of your EA. That way the EA and the script are independent of each other.
This should give you a 'poor mans' version of multi threading in Metatrader. |
|
|||
|
jhernandez
Can you loop a script so it runs continually. I understand that it will run within an endless loop. Would this be correct? Can you have two copies of the same currency and or time frame open at the same time and have an entrence script on one and your exit script on the other to operate continually in that way all the scripts have to do is reconize the orders. If this can be done you will need to entroduce a means to stop the scripts, which should not be to difficault to do. |
|
||||
|
Yes, you can have a script loop endlessly on a chart. Not sure if you need to have two scripts running, since you can probably add the logic for buying/selling in the same script.
I would also try to space out the looping a bit in your code, adding something like Sleep(500); or Sleep(1000);, so that your code waits 1/2 or 1 second in between loops. Otherwise you might see your script take up a lot of your available memory. Juan |
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| HMA - Calling All Programmers!! | secxces | Indicators - Metatrader 4 | 58 | 01-26-2008 09:19 PM |
| Calling 5_34_5 into an E.A. | mrtools | Setup Questions | 1 | 11-27-2006 01:52 AM |
| Calling All Coders And Specialists | jwoger | Indicators - Metatrader 4 | 11 | 08-01-2006 05:19 AM |
| Calling Programmers/Coders... | Aaragorn | Expert Advisors - Metatrader 4 | 11 | 06-19-2006 05:15 PM |