[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 436
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
Прошу помощи .
Как в этот коментарий "Возникла ошибка " можно добавить переменную ?
OrderSend(Symbol(),OP_SELLSTOP,0.1,Ask-50*Point,3,Bid+150*Point,Bid-150*Point, "Возникла ошибка ", 0);
string Stroka;
double x;
.............
.............
Stroka=StringConcatenate("An error occurred ", DoubleToStr(x, 0) );
OrderSend(Symbol(),OP_SELLSTOP,0.1,Ask-50*Point,3,Bid+150*Point,Bid-150*Point, Stroka, 0);
Good afternoon experts, in the indicator I am interested in the value obtained by the Expert Advisor
Special constants used to indicate the state of parameters and variables. Can be the following values:
0x7FFFFFFFF in hexadecimal is equal to 2147483647 in decimal.
I.e., at some moment, an empty value appears in the indicator buffer - this is what you see in the Expert Advisor. You can set the "empty value" of the indicator buffer:
void SetIndexEmptyValue( int index, double value)
Sets the empty value for the indicator line. Blank values are not drawn or shown in the DataWindow. The default value of the empty value is EMPTY_VALUE.I.e. opening time doesn't matter whether it was opened a minute ago or two?
Point 2 is not clear. It's all a bit vague.
The opening time can be determined by OrderOpenTime().
I.e. the moment of opening doesn't matter, was it opened a minute ago or two?
Мгновенное открытие
1.Моментальное(Сиюсекундное +0.5 - 2 секунды) определение вновь открывшегося торгового(не отложеных ордеров) ордера(Ордера открытого вручную и открытого спомощью советника).Система идентефецируюет ордер из друх вариантов (Sell или Byu) .
Если система определила ордер который рание не был открыт . то идет продолжение под номером 2.
2. Выполняеться какая то задача (Например,если Sell: Alert("Открытый ордер на продажу"+y);),(Например,если byu: Alert("Открыт ордер на покупку"+w);), всего 1-н раз,именно для этого ордера .
После того как еще открылся один ордер(толи системой, толи вручную ), система вновь действует с пункта 1 по пункт 2 .
string Stroka;
double x;
.............
.............
Stroka=StringConcatenate("An error occurred ", DoubleToStr(x, 0) );
OrderSend(Symbol(),OP_SELLSTOP,0.1,Ask-50*Point,3,Bid+150*Point,Bid-150*Point, Stroka, 0);
Nice combination. Um...
Special constants used to indicate the state of parameters and variables. Can be the following values:
Yes it is clear, but it is not clear how to cure the indicator of these empty values, that's why I published the code, I need real help, i.e. I need that the indicator would always output 1 or -1.
Suppose there is a value of +1. An empty value appears. Instead, continue entering the previous value (+1) into the buffer as soon as -1 appears, then enter it into the buffer.
There will now be -1 in the buffer. As soon as an empty value appears, you check the previous value (it is now -1), and enter it in the buffer.
This way you will always have +1 or -1 in the buffer
1.Моментальное(Сиюсекундное +0.5 - 2 секунды) определение вновь открывшегося торгового(не отложеных ордеров) ордера(Ордера открытого вручную и открытого спомощью советника).Система идентефецируюет ордер из друх вариантов (Sell или Byu) .
Если система определила ордер который рание не был открыт . то идет продолжение под номером 2.
2. Выполняеться какая то задача (Например,если Sell: Alert("Открытый ордер на продажу"+y);),(Например,если byu: Alert("Открыт ордер на покупку"+w);), всего 1-н раз,именно для этого ордера .
После того как еще открылся один ордер(толи системой, толи вручную ), система вновь действует с пункта 1 по пункт 2 .
I understand that a pending order and an open order are different orders. And if the pending order is opened, then the task is reduced to the initial one, to the open order. If I understand it correctly, it is getting very complicated.
What are the tasks? Maybe, everything can be done in a simpler way?
Dear experts!
I need your help with the following question. I have a custom indicator that draws a two-color line with one colour then another one. Is there any way to teach the Expert Advisor to determine which colour the line is at the moment?