| 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 (2) | Thread Tools | Display Modes |
|
||||
:: then I'm afraid it's all about the way you do your loop function... like you have to refresh it all the time a new transaction is made
__________________
..4.Nov.08.. IN10TION newsReader v09.85 Lite - the best news reader on your chart
|
|
|||
|
Quote:
Things seems little bit clear Let me think : Example:after first call(buy/sell) i fill array: 1,2,3 4,5,6 7,8,9 Let say new transactions appeared in history: 1',2',3' I want new array look like this : 1',2',3' 1,2,3 4,5,6 Should I count how many times procedure was call after each buy/sell When i reach required calls i update array .I'm right? But after restarting terminal i lose this information.Should i write this to file?? Thanks again |
|
||||
:: you can make it complex as you want ... but the only thing that stays the same is that you have to be able to refresh/refill your array with the open orders (easily to get) &/or go into history listing (easy to get to), to refill the previous data... don't use a file if all data is already easily available in metatrader... if there is specific info/data you want to keep, then yes, but figure things out first if you really need that... Quote:
__________________
..4.Nov.08.. IN10TION newsReader v09.85 Lite - the best news reader on your chart
Last edited by IN10TION; 10-04-2008 at 10:52 AM. |
|
|||
|
Quote:
What seems easy is to loop thru the history every tick (it's fast) or every new M1 bar, or when you want, and keep the count of the orders matching a specified MagicNumber. In the same loop, you store the CloseTime of each trade in the first of a two dimentional array, and for example the Ticket in the second one. Then, if your count was incremented by tree, update your static counter (+=3) and sort the array by the first dimension in descending order. From that sorted array, you can build easily the second array like you want. |
|
|||
|
Hi all, i want to ask how to write the coding that can get day, hours and minute from a file ? i know it need arrays inside our coding, but im poor in writing arrays. The concept is like Multiple10pointsX2 ea, we able to input the news time weekly into the file, then the ea will read from the file that the news time happen, so the ea will stop trading at that moment. Thanks for any help !!!
|
|
||||
|
Quote:
__________________
|
|
|||
|
A little help please...
Hi All,
I originally posted this as a new thread, but it was moved into another programming thread (I have no objections to its move BTW) and now seems to have got lost due to the amount of posters in that thread. Perhaps someone here can help me? I have nearly finished my first EA after nearly 7 days of trial and error and cutting and pasting and hours of research.... Can someone please tell me how to issue an exit or stop function to an EA? I want the EA to delete all current and pending trades and exit after reaching 10,000 in equity. Below is that portion of the code so far: PHP Code:
Firstly, is there anyway for me to get this to do what I need it to do in the manner in which I am doing it? Secondly, is there a function that I can use to simply tell the EA to quit? All assistance is greatly appreciated. NB. Quote:
|
![]() |
| Bookmarks |
| Tags |
| histogram, forex, ZUP_v1.mq4 |
| Thread Tools | |
| Display Modes | |
|
|
LinkBacks (?)
LinkBack to this Thread: http://www.forex-tsd.com/questions/270-ask.html
|
||||
| Posted By | For | Type | Date | |
| OzFx System:) - Page 639 | This thread | Refback | 06-21-2008 10:53 PM | |
| Forex SRDC Sidus Sibkis EA MT4 Forum OTCSmart | This thread | Refback | 12-08-2007 12:46 PM | |