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

 
alexkhasan >> :
Can someone please tell me how to register an ex4 EA in MT4?

Put the EA in the catalogue of EAs and reload MT4.

 
Can you tell me what's wrong with this EA, it doesn't want to work
Files:
 

Error:

'int' - variable expected

'init' - expression on globe scope not alowed

Files:
mammacd.mq4  13 kb
 
gince >> :

Error:

'int' - variable expected

'init' - expression on globe scope not alowed

extern int MACD_Kaina = 0, //0:Close 1:Open 2:High 3:Low 4:Median 5:Typical 6:Weighted 


In this line replace the comma with a semicolon " ; "

 
gince >> :

Error:

'int' - variable expected

"init" - expression on globe scope not alowed

Can't do anything else.

Please help me.

Maybe someone can explain my mistakes I'm trying to learn but so far no luck

I'm not Russian myself and the keyboard is English.

Help

 
tolikfilip >> :

Please advise what is not finished in this EA, it does not want to work

gince wrote >>

Error:...

Guys, it makes no sense to ask questions on every sneeze, if you do not want to identify by the textbook and catch your elementary mistakes by reading the logs and make printouts.

It already turns out: a chukcha is not a reader, a chukcha is a writer. And what I wrote, you read and explain it to me yourself.

 
granit77 >> :

Guys, there's no point in asking questions for every sneeze unless you want to identify and catch your elementary mistakes by reading the logs and doing the unrankings by a textbook.

It already turns out: a man is not a reader, a man is a writer. And what I wrote, you read it and explain it to me yourself.




Thanks

 

Hello, could you please tell me where and what to change in the histogram so that it changes colour in ascending and descending order.

Thanks in advance...

 
Viktoria писал(а) >>

Hello, could you please tell me where and what to change in the histogram so that it changes colour in ascending and descending order.

Thanks in advance...

The question is general or about a specific Indicator?

In general, I think so:

1. Set a few buffers - as always. But with different colours.

#property indicator_buffers 3
#property indicator_color1 Navy
#property indicator_width1 2
#property indicator_color2 Green
#property indicator_width2 2
#property indicator_color3 Red
#property indicator_width3 2
. . . 

double buf1[];
double buf2[];
double buf3[];
. . . 

В init():
   IndicatorBuffers(3);
   SetIndexStyle(0,DRAW_HISTOGRAM);
   SetIndexBuffer(0, buf1);
   SetIndexStyle(1,DRAW_HISTOGRAM);
   SetIndexBuffer(1, buf2);
   SetIndexStyle(2,DRAW_HISTOGRAM);
   SetIndexBuffer(2, buf3); .




2. В start() проверка условий для "i" из цикла. 
 . . 
- Если а> б => buf1[ i] = ...

- Если б> с => buf2[ i] = ...

- Если с> д => buf3[ i] = ...
 

As no one has answered at once - I will repeat...
is it possible to get information about the maximum total number of open and pending orders allowed by a broker?
I searched in MarketInfo, but there is nothing similar...

is this information transmitted through the terminal?


Reason: