[WARNING CLOSED!] Any newbie question, so as not to clutter up the forum. Professionals, don't go by. Can't go anywhere without you. - page 575

 
Nothing. The logic has to change.
 
41ckm39fi писал(а) >>
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.

 
Can you tell the difference between dodge, fork (hammer) and pin bars?
 
gince >>:
Подскажите разницу между додж, виселник (молот) и пин барами


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?

 
petr9741 >>:

Есть идея по написанию советника, сам не умею, если кто заинтересуется готов изложить, хотя может она (идея) и не новая?

At least write briefly. There's no need to harass.
 
zhuki писал(а) >>
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);

}

 
Minodi >>:

Подскажите почему советник открывает не один, а 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);

}

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)
 

Like this?

if(OrderSelect(OrdersTotal(), SELECT_BY_POS, MODE_TRADES)) {

ot=OrdersTotal();

if (ot<1){

Reason: