Initial deposit size - what is it? - page 14 1...789101112131415161718 New comment [Deleted] 2008.10.11 01:53 #131 I'm aware of that. :))) I wanted to say -- is there anything you can take the .hst files with? [Deleted] 2008.10.11 03:30 #132 Swetten >> : 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. Errors, bugs, questions Not the Grail, just Is it possible to [Deleted] 2008.10.11 22:57 #133 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? Files: swettenzm1li6sl34.zip 374 kb Errors, bugs, questions Machine learning in trading: EA M series, for [Deleted] 2008.10.14 02:20 #134 How do you know if the last transaction was in the "+" or the "-"? Yuriy Zaytsev 2008.10.14 05:39 #135 Swetten писал (а) >> 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 [ARCHIVE] Any rookie question, Any questions from newcomers "Teach" the EA !!! Yuriy Zaytsev 2008.10.14 05:42 #136 Swetten писал (а) >> I'm aware of that. :))) I was going to say -- is there anything you can take the .hst files with? C++ [Deleted] 2008.10.14 05:54 #137 Swetten >> : How do you know if the last transaction was in the "+" or in the "-"? Kim's, he's got a checker for that. [Deleted] 2008.10.14 08:56 #138 Ah-ha, thanks, I'll look into it... [Deleted] 2008.10.21 03:40 #139 I'm writing an array to a file. There are 128 elements in it. A piece of code: FileHandle=FileOpen( FileName, FILE_BIN| FILE_READ| FILE_WRITE); FileSeek( FileHandle, 0, SEEK_END); FileWriteArray( FileHandle, mytable, 0, 127); FileClose( FileHandle); mytable looks like this: mytable [0] = var1+var2; mytable [1] = var3 +var4; ... mytable[127] = var5+var6; Everything works fine, the file opens and closes, but it gets empty for some reason. What to do? Errors, bugs, questions How do you algorithmise [WARNING CLOSED!] Any newbie [Deleted] 2008.10.21 04:46 #140 Ay, shaitan! I declared the array like this: double mytable[]; It should be like this: double mytable[127]; Now it writes, but only the last entry. How do I make it write all the records? 1...789101112131415161718 New comment
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?