You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Not all indicator_buffers showing on screen
found issue. please ignore.
Update Arrays
Hi everyone
I have array which keeps result of n transactions from orders history window in form:
Buys
if order profit >0
traintest[x][y]=1 win
if order profit <=0
traintest[x][y]=2 loss
(same for sell orders)
My question is :how to update these arrays after ,let say k new transactions ? Now my procedure updates it after each new buy sell order , when it is call from main procedure.I stuck completly whithout any idea
ty in advance
Hi everyone
I have array which keeps result of n transactions from orders history window in form:
Buys
if order profit >0
traintest[x][y]=1 win
if order profit <=0
traintest[x][y]=2 loss
(same for sell orders)
My question is :how to update these arrays after ,let say k new transactions ? Now my procedure updates it after each new buy sell order , when it is call from main procedure.I stuck completly whithout any idea
ty in advanceRefill (update )them after k transactions from last use
Refill (update )them after k transactions from last use
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
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 againThanks 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 againMaybe I don't understand your question, but it seems to me useless to write a file with information easy to retrieve from the server (I mean the history of your trades)
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.
Get Time input from a file
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 !!!
Need help...
Could u someone here help me to add alert to this filter,when it cross 0 level or change color.
Thank`s for u who want to help me...