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
I'm aware of that. :)))
I wanted to say -- is there anything you can take the .hst files with?
I'm aware of that. :)))
I mean -- is there anything you can do to get the .hst files?
You can take the antivirus and quarantine it. Or you can pick them up with a mouse and throw them in the trash. Or you can... :)))
But seriously, you can take files with *.doc extension by Word,... with a *.xls extension by Excel... with a *.jpg extension by Paint.
And now, following this ingenious discovery of ours, it is easy to guess that *.hst files can be taken by MetaTrader program. :)
On a more serious note, it's not quite clear what you need *.hst files for and how you're going to mess with them.
Well... I can't post the EA for now. Here's the problem: how to call 2 neural networks from EA? One is called without problem, but how to attach the second call to the second neural network? Perhaps I should somehow pass the second pointer? And how?
How do you know if the last transaction was in the "+" or the "-"?
How do you know if the last trade was in the "+" or in the "-"?
If we describe the algorithm in brief
we need to loop through history and find the latest closed order!
close time of order = 0;
Get the number of orders in History
loop on number of orders in history
{
if ( order close time < OrderCloseTime() )
{
OrderCloseTime(); // there is a good chance to find two orders that were closed at the same time!
LAST ORDER PROFIT = OrderProfit() ; // >0 or < 0
}
}
// I want to say that it is impossible to calculate precisely how the last trade was closed.
// because theoretically at one moment in time there is a probability of obtaining two orders at the same time!
// one in + and another in minus - for example on the GAP!
// in this case I suggest to calculate a profit difference between these orders
// and count it as one trade!
// this can be considered a more correct profit calculation of the last deal
// why do I impose a loop on the history instead of storing it in a variable in the Expert Advisor?
// when restarting the Expert Advisor, the variable will still have to be read
--
Svetlana
probably, Igor Kim has a ready-made function
I'm aware of that. :)))
I was going to say -- is there anything you can take the .hst files with?
C++
How do you know if the last transaction was in the "+" or in the "-"?
Kim's, he's got a checker for that.
I'm writing an array to a file. There are 128 elements in it.
A piece of code:
mytable looks like this:
Everything works fine, the file opens and closes, but it gets empty for some reason.
What to do?
Ay, shaitan!
I declared the array like this:
It should be like this:
Now it writes, but only the last entry.
How do I make it write all the records?