Expert Advisors: StopLevelCounter

 

StopLevelCounter:

The Expert Advisor is a profit calculator on the opening position for price movement to a price level fixed in the chart

Fig.1 The StopLevelCounter Expert Advisor

 Fig.1 The StopLevelCounter Expert Advisor

Author: Nikolay Kositsin

 

Thank you very much for the code!


When loading the EA through the terminal, it gives errors when compiling.

can't open "C:\Users\dns\AppData\Roaming\MetaQuotes\Terminal\F49F6D84DE337BA25E6F8205834F0EB8\MQL5\include\GetFontName.mqh" include file stoplevelcounter.mq5 14 11
'type_font' - declaration without type stoplevelcounter.mq5 23 7
'CFontName' - undeclared identifier stoplevelcounter.mq5 48 4
'FONT' - undeclared identifier stoplevelcounter.mq5 48 14
'FONT' - some operator expected stoplevelcounter.mq5 48 14
'FontType' - undeclared identifier stoplevelcounter.mq5 49 31
implicit conversion from 'number' to 'string' stoplevelcounter.mq5 49 19

 

I completely forgot that such code needs an includnik!

 
GODZILLA:

I completely forgot that this code needs an includnik!

Is there a code base? Please give me a link.


https://www.mql5.com/en/code/644?

 
Zeleniy:

Is there a code base? Can you give me a link, please?

https://www.mql5.com/en/code/644?

It is the same, the publication will be fixed!

The indicator uses GetFontName.mqh library class (you need to copy it to terminal_data_directory\MQL5\Include).

 
Zeleniy:

Is he available? Can you give me a link, please?


https://www.mql5.com/en/code/644?

This is not it turns out, by the name in the code base found, long ago worked with includes when I made an addendum to the game in Pawn.
 
Zeleniy:
It's not that, I found it by name in code base, I worked with includes long time ago when I made an add-on for Pawn game.
What do you mean it's wrong? Just the name of the includnik is a bit international and is present in quite different files.
 
GODZILLA:
What do you mean wrong? It's just that the name of the includnik is a bit international and is present in completely different files.
It won't compile. Same errors.
 
TraderStyle:
It won't compile. Same errors.

Well, then the includnik is in the wrong place!

 
GODZILLA:

So the includnik is in the wrong place!

C:/\MetaTrader 5\MQL5\Include

I have never had any problems with compilation, but this is the first time I've encountered inkludes in mt5.

 
Zeleniy:

C:\MetaTrader 5\MQL5\Include

I've never had any problems with compilation, but this is the first time I've encountered inkludes in mt5.

What's this? C:\Users\dns/AppData\Roaming\MetaQuotes\Terminal\F49F6D84DE337BA25E6F8205834F0EB8\MQL5\include\GetFontName.mqh