非常感谢你提供的代码!
当通过终端加载 EA 时,编译时会出错。
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' - 未声明的标识符 stoplevelcounter。mq5 49 31
从 "数字 "到 "字符串 "的隐式转换 stoplevelcounter.mq5 49 19
我完全忘了这样的代码需要一个 includnik!
是一样的,发布的内容会被修正!
该指标使用GetFontName.mqh 库类(您需要将其复制到 terminal_data_directory\MQL5\Include 中)。
不是这样的,我在代码库中找到了它的名字,很久以前我为 Pawn 游戏制作插件时就用过它。
因此,includnik 的位置不对!
C:/\MetaTrader 5\MQL5\Include
我在编译时从未遇到过任何问题,但这是我第一次在 mt5 中遇到 inkludes。
C:/MetaTrader 5\MQL5\Include
我在编译时从未遇到过任何问题,但这是我第一次在 mt5 中遇到 inkludes。
StopLevelCounter:
此 EA 是开仓点位距离图表中固定点位的盈利计算器。
作者: Nikolay Kositsin