Initial deposit size - what is it? - page 14

 

I'm aware of that. :)))

I wanted to say -- is there anything you can take the .hst files with?

 
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.

 

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:
 

How do you know if the last transaction was in the "+" or the "-"?

 
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


 
Swetten писал (а) >>

I'm aware of that. :)))

I was going to say -- is there anything you can take the .hst files with?

C++

 
Swetten >> :

How do you know if the last transaction was in the "+" or in the "-"?

Kim's, he's got a checker for that.

 
Ah-ha, thanks, I'll look into it...
 

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?

 

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?