
10-04-2008, 10:49 AM
|
 |
Senior Member
|
|
Join Date: Mar 2007
Posts: 653
|
|
:: 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...
:: if you only want to add something to the array without going in a loop of everything, then yes, you have to remember the last position, to fill in the next... otherwise you will delete the previous... if you do this, then the procedure of the code will be much faster... nevertheless you need the restore procedure to.
Quote:
Originally Posted by Dakhr
Thanks man
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
|
Last edited by IN10TION; 10-04-2008 at 10:52 AM.
|