[Archive!] Any rookie question, so as not to clutter up the forum. Professionals, don't pass it by. Couldn't go anywhere without you - 2. - page 434

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
Help )
1.Instantaneous detection of a newly opened trade (not pending orders) order (manually opened and open with the help of an EA) If the system has detected an order which was not opened earlier. then it continues under number 2.
2. Any task is executed only once, just for this order.
After one more order has opened, the system starts working from point 1 to point 2 again.
Can you help someone who is new to programming?
Please help. How can we do this? I identify each new open order, with the subsequent task for 1-n time, just for this order, and so on forever, for each newly opened order.
Thank you.
There is an outline, but it does not index orders .
//+------------------------------------------------------------------+
//| expert initialization function |
//+------------------------------------------------------------------+
int init()
{
//----
//----
return(0);
}
//+------------------------------------------------------------------+
//| expert deinitialization function |
//+------------------------------------------------------------------+
int deinit()
{
//----
//----
return(0);
}
//+------------------------------------------------------------------+
//| expert start function |
//+------------------------------------------------------------------+
int start()
{
//----
for (int k=OrdersTotal()-1;k>=0;k--)//Начинаем перебор всех открытых ордеров начиная с конца
{
RefreshRates();//Обновляем котировки, необходимо при модификации или закрытии ордеров
if (OrderSelect(k,SELECT_BY_POS,MODE_TRADES)==true&&OrderSymbol()==Symbol())//Выбираем ордер с номером из цикла, и проверяем, совпадает ли символ ордера с текущим
{
int cmd=OrderType();//В переменной cmd будем хранить тип ордера
if(cmd>1)//Нас интересуют только отложенные ордеры
{
//Что-то делаем
}
if (cmd==OP_BUY)//А вдруг на покупку ордер?
{
Alert (GetLastError());
}
if (cmd==OP_SELL)//Или на продажу?
{
Alert (GetLastError());
}
}
}
//----
return(0);
}
Hi all!
Can you tell me why this indicator does not plot every bar, I have to rearrange it to see the graph?
Guys, can you tell me how to replace in Excel the division (recognition by the prog) of the fractional part of a number with a comma to a dot? Thank you for your help.
Control Panel - Languages and Regional Standards
Change the standard to English, for example - semicolon becomes a full stop.
Resolve data transfer problems - then change back to the standard
Guys, can you tell me how to replace in Excel the division (recognition by the prog) of the fractional part of a number with a comma to a dot? Thanks for the help.
The second option is to change the separator in the Excel settings
Control panel - Languages to regional standards
Change the standard to e.g. English - the comma becomes a full stop.
Resolve data transfer problems - then change back to the standard
Thank you
the second option is to change the separator in the Excel setting itself
Thank you... I've already done so on the advice of the Club President... :-))) How to change the separator in the settings of excel itself - I haven't found it.
excel - I couldn't find it.
version of excel?
2003г
2003г
Service-Settings-International
Service-Settings-International
Yep, got it, got it. Thank you. Changed it there too.