[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 483

 
Noterday писал(а) >>
Here is the full code:


I have:
09:38:21 test EURGBP,M30: 0.0002
09:38:21 test EURGBP,M30: 0.0009
09:38:21 test EURGBP,M30: -0
09:38:21 test EURGBP,M30: -0.0002
09:38:21 test EURGBP,M30: 0.0002
09:38:21 test EURGBP,M30: -0.0002
09:38:21 test EURGBP,M30: 0.0008
09:38:21 test EURGBP,M30: 0.0001
09:38:21 test EURGBP,M30: 0.0005
09:38:21 test EURGBP,M30: -0
09:38:21 test EURGBP,M30: -0.0001
09:38:21 test EURGBP,M30: 0
09:38:21 test EURGBP,M30: 0.0005
09:38:21 test EURGBP,M30: 0.0001
09:38:21 test EURGBP,M30: 0.0001
09:38:21 test EURGBP,M30: 0.0015
09:38:21 test EURGBP,M30: 0.0002
09:38:21 test EURGBP,M30: 0.0001
09:38:21 test EURGBP,M30: -0.0001
09:38:21 test EURGBP,M30: 0

 
Noterday писал(а) >>
Here's the full code:


Try adding a line to init():

IndicatorBuffers(4);
 
Noterday писал(а) >>
Here's the full code:

Check out

Files:
noterday.mq4  3 kb
 
Vinin ,PapaYozh Thank you! Still got zeros, I'll look into it!
 
How do I know the currency of my order? (for futures)
 
khorosh писал(а) >>

Put the code out, let's have a look at it.

lots=UseLots();
if (lots==0) return(0);
i=OrderSend(Symbol(),OP_BUY,UseLots(),NormalizeDouble(Ask, Digits),slippage,Ask-StopLoss*Point,Ask+TakeProfit*Point,EA,magic,0,Blue);

lots=UseLots();
if (lots==0) return(0);
i=OrderSend(Symbol(),OP_SELL,UseLots(),NormalizeDouble(Bid, Digits),slippage,Bid+StopLoss*Point,Bid-TakeProfit*Point,EA,magic,0,Red);

Error 4107 on 1 of 10 orders or on 3 of 25 differently in the tester
 
Hello. I wonder if there are any kind people out there... I'll be very grateful to you, thank you in advance.
Files:
 

здравствуйте. может найдутся добрые люди... сам парился парился, так и не смог сделать. нужно прикрепленный индюк сделать как индикатор Volume. буду ооочень признателен, заранее спасибо.

Please elaborate on what you mean by "make it like a Volume indicator" ?))
 
There is an MAKD with parameters 9 and 12.

Is it correct that it shows the difference between MA with periods 9 and 12? Because I have some discrepancy in the figures.
 
Swetten писал(а) >>
There is an MAKD with parameters 9 and 12.

Is it correct that it shows the difference between MA with periods 9 and 12? Because I have some discrepancy in the figures.


Correct
Reason: