Where in the condition is it written that an order should only be opened if there are no other orders open? This will be the answer to your question. (Orders will open one at each tick, as long as the condition is correct)
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.
What can it be replaced with?
>> Nothing. You may have to change your brain... i.e. change... rebuild...
It's not practical to talk about the code without the code itself.
Just give us your solution (code) with GOTO and we'll see there.
Подскажите разницу между додж, виселник (молот) и пин барами
Dodge - a bar that has Open=Close;
Pin bar - http://tradgo.com/blogs/entry/Пин-БАР-правильно-ли--2009-10-04
Hangman (hammer) - a great shadow on one side of the candle and a very small body.
I have an idea for writing an EA, I don't know how to do it myself, if anyone is interested I'm ready to explain it, although maybe it's not new?
Есть идея по написанию советника, сам не умею, если кто заинтересуется готов изложить, хотя может она (идея) и не новая?
Write at least briefly. There's no need to harass.
"Bind" opening and closing positions to ADX value
Can you tell me why the Expert Advisor opens not one but 10-20 orders?
if (HiTime>LoTime && HiTime>TimeE){
int ticket =OrderSend(Symbol(),OP_BUY,Lot,Ask,Ask-stoploss*Point,Ask+TakeProfit*Point,0,0,0,Red);
}
if (HiTime<LoTime && LoTime>TimeE) {
ticket =OrderSend(Symbol(),OP_SELL,Lot,Bid,slipage,Bid+stoploss*Point,Bid-TakeProfit*Point,0,0,0,Red);
}
Подскажите почему советник открывает не один, а 10-20 ордеров?
if (HiTime>LoTime && HiTime>TimeE){
int ticket =OrderSend(Symbol(),OP_BUY,Lot,Ask,slipage,Ask-stoploss*Point,Ask+TakeProfit*Point,0,0,0,Red);
}
if (HiTime<LoTime && LoTime>TimeE) {
ticket =OrderSend(Symbol(),OP_SELL,Lot,Bid,slipage,Bid+stoploss*Point,Bid-TakeProfit*Point,0,0,0,Red);
}
Like this?
if(OrderSelect(OrdersTotal(), SELECT_BY_POS, MODE_TRADES)) {
ot=OrdersTotal();
if (ot<1){