| 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 |
|
||||
|
I would like to start this off with a coding question of my own.
I am writing an expert that involves opening many different pairs from one chart. My question is this: We all know that your expert will only read through your code when an incoming tick happens in the chart that your expert is attached to. Is there a way to make your expert execute if there is an incoming tick from a different currency pair on a separate chart? I have not been able to figure out if this is possible. Thank you to anyone that has a solution for this problem. ![]() |
|
||||
|
Quote:
well if you like to see the code in action then please take a look at TSD EA's in Expert advisor section the new ones are trading all the currencies by attaching it to only in one chart. hope this help |
|
||||
|
Quote:
![]() |
|
|||
|
Quote:
I think you can have some small EA on each pair to trigger the main EA (or a DLL), but I never tried it. Last edited by Michel; 07-07-2007 at 09:40 PM. |
|
||||
|
Quote:
![]() |
|
|||
|
Quote:
So the EA is able to know if another pair has receive a new tick using MarketInfo() or iClose() etc, but this knowledge can only happen inside the start() func of the EA, ie when a new tick of the first pair arrives. To be free of the triggering of the start() func, you can write an endless loop script which scan for sample every 100 ms the value given by MarketInfo() or better, some flag as GlobalVariables writen by small EAs attached to each pair. |
![]() |
| Bookmarks |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| List of EA programmers | JJLL | Expert Advisors - Metatrader 4 | 101 | Yesterday 01:02 PM |
| HMA - Calling All Programmers!! | secxces | Indicators - Metatrader 4 | 58 | 01-26-2008 10:19 PM |
| Question for programmers | onelesstick | General Discussion | 2 | 10-27-2006 09:09 PM |
| I am throwing down my gauntlet to programmers | jth | Metatrader 4 | 2 | 10-23-2006 12:49 PM |