[ARCHIVE] Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 3. - page 593
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 sorry, what delimiters?
a full stop and a comma. Well, the list delimiters are different, comma and semicolon.
Try importing with the correct delimiters. Or redo the regional settings with the right delimiters. Good luck
Thanks!!!! Yeah, there's a dot there. And how do you change the regional settings to the correct delimiters ?
Thanks !!!
Sorry, can you give me a link to one of the last posts about these delimiters !
Googled, Yandexed - tried to apply numeric format via Home-number-number format, nothing happened. Do not manually overwrite four hundred dots in zapatye! Powerful and clever that excel, but dumb!
Ugh, I mined it!
Thanks !!!
Sorry, can you give me a link to one of the last posts about these dividers !
i have a simple question, but i still do not understand the essence of closing multiple orders)
Please explain me why the first variant of the code works the same way as the second (in the first variant via select_by_pos all 4 open trades were closed via 0th index, but in the second, 1stand 2nd 3rd and 4th)
i need some useful manual or something to see how people close orders so they don't miss them, or a manual on how to close them correctly and how select_by_pos works) because i can see some truncated examples everywhere and no examples with its use in help)
I can give you a good video tutorial on programming in MQL4.)
OPTION 1 (in this variant all 4 open orders were closed during the test, though all 4 orders were selected with index 0 when they were closed):
OrderSend(Symbol(),OP_BUY,1,Bid,5,NULL,NULL);
OrderSend(Symbol(),OP_BUY,1,Bid,5,NULL,NULL);
OrderSend(Symbol(),OP_BUY,1,Bid,5,NULL,NULL);
OrderSend(Symbol(),OP_BUY,1,Bid,5,NULL,NULL);
if(OrderSelect(0,SELECT_BY_POS,MODE_TRADES))
{
OrderClose(OrderTicket(),OrderLots(),Bid,5);
}
if(OrderSelect(0,SELECT_BY_POS,MODE_TRADES))
{
OrderClose(OrderTicket(),OrderLots(),Bid,5);
}
if(OrderSelect(0,SELECT_BY_POS,MODE_TRADES))
{
OrderClose(OrderTicket(),OrderLots(),Bid,5);
}
if(OrderSelect(0,SELECT_BY_POS,MODE_TRADES))
{
OrderClose(OrderTicket(),OrderLots(),Bid,5);
}
2nd OPTION (all 4 trades were closed here too, but Indexes 1,2,3 and 4):
OrderSend(Symbol(),OP_BUY,1,Bid,5,NULL,NULL);
OrderSend(Symbol(),OP_BUY,1,Bid,5,NULL,NULL);
OrderSend(Symbol(),OP_BUY,1,Bid,5,NULL,NULL);
OrderSend(Symbol(),OP_BUY,1,Bid,5,NULL,NULL);
if(OrderSelect(0,SELECT_BY_POS,MODE_TRADES))
{
OrderClose(OrderTicket(),OrderLots(),Bid,5);
}
if(OrderSelect(0,SELECT_BY_POS,MODE_TRADES))
{
OrderClose(OrderTicket(),OrderLots(),Bid,5);
}
if(OrderSelect(0,SELECT_BY_POS,MODE_TRADES))
{
OrderClose(OrderTicket(),OrderLots(),Bid,5);
}
if(OrderSelect(0,SELECT_BY_POS,MODE_TRADES))
{
OrderClose(OrderTicket(),OrderLots(),Bid,5);
}
Good evening, I'm asking for help with a multicurrency MACD Expert Advisor. The EA follows the position opening criteria correctly, but closing "on condition" does not work. I have certainly started to use a trailing stop, but the correct close does not give me a break.
This is what the main part looks like
And this is the closing block. Please help me to find the error!
Does the directory exist?
Yes, both in the Expert folder... and in the tester folder.
but the screenshot still doesn't work.