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
It only works in the tester and has no effect on real trading, i.e. you will not be able to withdraw money from your account.
But you are not testing it correctly. Why does your trade have a ticket of 3?
Since I haven't seen your code, it's hard to say. But I sketched out mine. What do you get from it in the tester?
Since I haven't seen your code, it's hard to say. But I sketched out mine. What does it give you in the tester?
Exactly the same line, from the real server, returns the correct amount.
HI 0 test_forum (EURUSD,M12) 18:30:59 2011.01.03 00:00 ticket=1, profit=100000.00RO 0 test_forum (EURUSD,M12) 18:30:59 2011.01.03 00:00 ticket=2, profit=-1.00
OM 0 test_forum (EURUSD,M12) 18:30:59 2011.01.03 00:00:00 deposit=0.0
//| WithDrawal.mq5 |
//| avoitenko |
//| https://www.mql5.com/en/users/avoitenko |
//+------------------------------------------------------------------+
#property copyright "avoitenko"
#property link "https://www.mql5.com/en/users/avoitenko"
#property version "1.00"
//+------------------------------------------------------------------+
//| Expert initialization function |
//+------------------------------------------------------------------+
int OnInit()
{
TesterWithdrawal(1.0);
return(0);
}
//+------------------------------------------------------------------+
//| Expert tick function |
//+------------------------------------------------------------------+
void OnTick()
{
if(HistorySelect(0,TimeCurrent()))
{
int total=HistoryDealsTotal();
for(int i=0;i<total;i++)
{
ulong ticket=HistoryDealGetTicket(i);
PrintFormat("ticket=%d, profit=%.2f",ticket,HistoryDealGetDouble(ticket,DEAL_PROFIT));
}
}
if(HistoryDealSelect(2))Print("Пополнение=",HistoryDealGetDouble(2,DEAL_PROFIT)); //<--Дописываем это, и что-то уже не то получается
}
//+------------------------------------------------------------------+
It is quite possible that HistoryDealSelect does not work as it should in the tester .
With this it's better to contact servicedesk.
But as you can see, TesterWithdrawal has nothing to do with it.Good evening, I have a question aboutFileFindFirst() andFileFindNext().
There are txt files in C:\Program Files\MetaTrader 5\MQL5\Files\hand_strength_flop folder.
The script somehow outputs only
2012.11.03 18:07:18 446 (GBPUSD,H2) 0 next false 0
2012.11.03 18:07:18 446 (GBPUSD,H2) filename: hand_strength_flop\
I am expecting to see the names of files that are in the directory I have specified. But it is not shown. ?????????
hand_strength_flop\
I'm expecting to see the names of the files that are in the specified directory. But they don't show up. ?????????
FileFindFirst thinks"hand_strength_flop" is a file
"hand_strength_flop\*.txt" or
"\hand_strength_flop\*.txt"
"hand_strength_flop\*.txt"
"\\hand_strength_flop\\*.txt"
A100, thank you!!! thank you!!!
it works now.
After updating either the website or the terminal for Androil - the Metacvots ID has been erased. is this the case for everyone?
Renat:
Где именно стерся? В профиле сайта или в мобильном терминале?
I was in the site profile, it was full and I did not touch it, then today I was doing work - and the tablet is silent,
I thought what's up - then I went to the site and my ID wasn't there.
Filled out a new one, I can not say it has changed or not, in my opinion the numbers are the same.