Here is another point: this order opens on some fractal, on the fractal. If the last order is found, is there any way to find out what fractal it opened in?
Find the bar at which the order was opened ( iBarShift(Symbol(), Period(), OrderOpenTime()) )
if (Hour()==19 && Minute()==00 && Кризис_1989==true) {
for (int i=OrdersTotal()-1; i>=0; i--) {
if (OrderSelect(i, SELECT_BY_POS)) {
if (OrderSymbol()!=Symbol()) continue;
if (OrderType()==OP_SELLLIMIT) OrderDelete(OrderTicket());
if (OrderType()==OP_BUYSTOP) OrderDelete(OrderTicket());
}
}
}
It's like a child's picture: Find ten differences... :)
When you delete orders, you have to do the loop from the end of the list. And you have return(0) inside the loop.
Greetings, guys, please. I've been struggling with this for over a week. Can someone who knows better draw the right code?
This Expert Advisor opens a deal in the same direction, where the stop-loss was. But with lot twice more, by this expression: lot=lot*koef;
I need it to multiply all losing trades with given number of times. I.e. 0.01,0.01,0.01; 0.02,0.02,0.02; 0.04,0.04,0.04; 0.08,0.08,0.08...... and only.
How many different counters have been re-done... NETTO
Haven't delved into the language in 4 years until I've had a breakdown. Here's all the code to think about...
Greetings, guys, please. I've been struggling with this for over a week. Can someone who knows better draw the right code?
This Expert Advisor opens a deal in the same direction, where was the stop loss. But with lot twice more, by this expression: lot=lot*koef;
I need it to multiply all losing trades with given number of times. I.e. 0.01,0.01,0.01; 0.02,0.02,0.02; 0.04,0.04,0.04; 0.08,0.08,0.08...... and only.
How many different counters have been re-done... NETTO
Haven't delved into the language in 4 years until I've had a breakdown. Here's all the code to think about...
Thank you very much!!!
struggling with the same topic - where in the code is the previous loss trade recorded
YOUNGA: you're comparing the cloze of different candlesticks what does this have to do with the loss?
I'm not blaming you, it's not my puzzle. I just found a similar algorithm that I need and am trying to finish it, just like I need it. https://www.mql5.com/ru/code/9927 What I took out, what I left in.
if(OrdersTotal() == 0 && Close[1]<Open[1]) //Если ордеров 0 и закрытие свечи 1<Открытие свечи 1
dl=Close[0]; //эт не дошло толком OrderSend(Symbol(),OP_SELL,lot,Bid,3,Bid+SL*0.0001,Bid-TP*0.0001,"",14774,0,Red) //тело открывает на продажу
i want it 0.01,0.01,0.01; 0.02,0.02,0.02; 0.04,0.04,0.04; 0.08,0.08,0.08......
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.
Here is another point: this order opens on some fractal, on the fractal. If the last order is found, is there any way to find out what fractal it opened in?
Find the bar at which the order was opened ( iBarShift(Symbol(), Period(), OrderOpenTime ()) )
On this bar, there is that fractal.
I've set pips from the current price as 150 or 300, but it still won't work.
Hello!
Why does it only delete BUYSTOP but not SELLLIMIT? Although I have two orders open!
It's like a child's picture: Find ten differences... :)
When you delete orders, you have to do the loop from the end of the list. And you have return(0) inside the loop.
Hello all!
I can't place an order if I specify a stop loss:
Does the broker allow SL to be set when opening an order?
And where is NormalizeDouble?
Greetings, guys, please.
I've been struggling with this for over a week. Can someone who knows better draw the right code?
This Expert Advisor opens a deal in the same direction, where the stop-loss was. But with lot twice more, by this expression: lot=lot*koef;
I need it to multiply all losing trades with given number of times. I.e. 0.01,0.01,0.01; 0.02,0.02,0.02; 0.04,0.04,0.04; 0.08,0.08,0.08...... and only.
How many different counters have been re-done... NETTO
Haven't delved into the language in 4 years until I've had a breakdown. Here's all the code to think about...
Thank you very much!!!
I set pips of 150 and 300 from the current price and it still does not work.
Most likely you have an account with one of those brokers that forbids setting orders with take and loss.
The broker's support department is not allowed to discuss brokers on this forum.
Greetings, guys, please.
I've been struggling with this for over a week. Can someone who knows better draw the right code?
This Expert Advisor opens a deal in the same direction, where was the stop loss. But with lot twice more, by this expression: lot=lot*koef;
I need it to multiply all losing trades with given number of times. I.e. 0.01,0.01,0.01; 0.02,0.02,0.02; 0.04,0.04,0.04; 0.08,0.08,0.08...... and only.
How many different counters have been re-done... NETTO
Haven't delved into the language in 4 years until I've had a breakdown. Here's all the code to think about...
Thank you very much!!!
struggling with the same topic - where in the code is the previous loss trade recorded
you're comparing the cloze of different candlesticks what does this have to do with the loss?
I'm not blaming you, it's not my puzzle. I just found a similar algorithm that I need and am trying to finish it, just like I need it. https://www.mql5.com/ru/code/9927 What I took out, what I left in.
i want it 0.01,0.01,0.01; 0.02,0.02,0.02; 0.04,0.04,0.04; 0.08,0.08,0.08......