В рыночном ордере на данный момент, меняется уровни тейкпрофита и стоп лосса. А не должны.
Возможность изменения имеется в системе моей только для отложенных ордеров. Если ордер становиться рыночным, изменения не допускаются. Всего в эксперте используется один ордер.
Good evening, guys, help a person who does not know programming. need to "decolorize" the indicator. specifically - DeMarker. The idea is this: if the Ask price is less than the Parabolic 0.02/0.2 on H1, the colour of the DeMarker is red, if the price is above Parabolic, the DeMarker is green. Something like this
//---- indicator line if{ Ask<iSAR(NULL,PERIOD_H1,0.02,0.2,0) COLOR=Red; Ask>iSAR(NULL,PERIOD_H1,0.02,0.2,0) COLOR=Green; SetIndexStyle(0,DRAW_LINE,EMPTY,2,COLOR); } I understand that I need to describe Ask in some other way, but I don't have enough knowledge for that.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
В рыночном ордере на данный момент, меняется уровни тейкпрофита и стоп лосса. А не должны.
Возможность изменения имеется в системе моей только для отложенных ордеров. Если ордер становиться рыночным, изменения не допускаются. Всего в эксперте используется один ордер.
I redid it from Kim's sample to delete the pending orders, please advise where the error is:
void DeleteOrdersLimit(string sy="", int op=-1) {
int i;
int k=OrdersTotal();
if (sy=="0") sy=Symbol();
for (i=k-1; i>=0; i--) {
if(OrderSelect(i, SELECT_BY_POS, MODE_TRADES)) {
if ((OrderSymbol()==sy || sy==") && (op<0 || OrderType()==op)) {
if (OrderType()==OP_BUYLIMIT || OrderType()==OP_BUYLIMIT) OrderDelete(OrderTicket())
}
}
}
}
при такой конструкции да, в секундах. У меня все работает. Скомпилируй и проверь только эту часть кода.
If you can figure it out... This is my first EA, so I doubt it will be readable for others
I've been putting it on visualization since May 5. And I see what I do not like. The parameters of market orders are changing
Переделал с образца Кима, что б удалялись отложки, подскажите в чем ошибка :
Thank you,
Now it's different. it gives out '(' - function definition unexpecte
Спасибо,
теперь уже другое. выдает - '(' - function definition unexpecte
Good evening, guys, help a person who does not know programming. need to "decolorize" the indicator. specifically - DeMarker. The idea is this: if the Ask price is less than the Parabolic 0.02/0.2 on H1, the colour of the DeMarker is red, if the price is above Parabolic, the DeMarker is green. Something like this
//---- indicator line
if{ Ask<iSAR(NULL,PERIOD_H1,0.02,0.2,0) COLOR=Red;
Ask>iSAR(NULL,PERIOD_H1,0.02,0.2,0) COLOR=Green;
SetIndexStyle(0,DRAW_LINE,EMPTY,2,COLOR);
}
I understand that I need to describe Ask in some other way, but I don't have enough knowledge for that.