[ARCHIVE!] Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Can't go anywhere without you - 4. - page 213

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 want to write test results (transactions) to a file after testing
I put the tofile () function in the deinit() block (it writes after the work is finished)
does not work, it records only the headerbut the function itself
So can you tell me which function returns the current price?
You don't have the guts?
That's something! I'm not that clever, and I wouldn't have guessed it in Russian either.
I want to write test results (transactions) to a file after testing
I put the tofile () function in the deinit() block (it writes after the work is finished)
does not work, it writes only the headerbut the function itself
You don't have the guts?
It's just a "Bid" for an open order. Right? It shows me the real price. Or is this going to be a problem later on?
It is simply "Bid" for an open order. Right? It shows me the current price. Or is there a problem with it later?
It is not the Bid for the "open order", but the Bid for the chart on which the EA is running.
How do you think the current price is different from the "real" price?
You can use MarketInfo() to retrieve the current price for any symbol. It's either Ask or Bid.
It's not the Bid for "open order", it's the Bid for the chart the EA is running on.
And how do you think the current price is different from the "real" price ?
I got you confused, sorry, I just didn't mean it that way.
You can use MarketInfo() to retrieve the current price for any symbol. What is Ask, what is Bid?
Thanks, I'll see when I'm older ))
Thanks - I'll keep chewing on the code
Hi guys, I haven't been here for a long time (1.5 years) please refresh my memory a bit.
The thing is that with EAs the orders were placed with t/p and s/l, now I want to do without them, just under some conditions close the necessary
orders.
here is the code
int clos(int mn)
{ int k=OrdersTotal();
for(int a=0;a<=k;a++)
{ if(OrderSelect(a,SELECT_BY_POS,MODE_TRADES))
{ if(OrderMagicNumber()==mn)
{ if(OrderType()==OP_BUY || OrderType()==OP_SELL)
int n=OrderTicket();
double l=OrderLots();
OrderClose(n,l,Ask,5,0);
}}}
return(0);
}
I don't close any order, I passed all of them, what's wrong?