//--- show the symbol/timeframe the Moving Average indicator is calculated for
short_name=StringFormat("iMA(%s/%s, %d, %d, %s, %s)",name,EnumToString(period),
ma_period, ma_shift,EnumToString(ma_method),EnumToString(applied_price));
IndicatorSetString(INDICATOR_SHORTNAME,short_name);
string plot_label=StringFormat("iMA(%d, %d, %s, %s)",
ma_period, ma_shift,StringSubstr(EnumToString(ma_method),5,-1),StringSubstr(EnumToString(applied_price),6,-1));
PlotIndexSetString(0,PLOT_LABEL,plot_label);//--- normal initialization of the indicatorreturn(INIT_SUCCEEDED);
}
//+------------------------------------------------------------------+//| Custom indicator iteration function | |
能否请你告诉我怎么做?什么是 "SB"?
SB是一个标准库。
例如,像这样
我希望你明白,变量是在其他地方设置的...
你有一个令人困惑的问题。请看终端提供的例子中的按钮如何工作:MQL5\Experts\Examples\Controls\Controls.mq5
弗拉基米尔,谢谢你。
但在这个例子中,这些按钮来自标准库。不是OBJ_BUTTON。
SB是一个标准库。
例如,像这样
我希望你明白,变量是在其他地方设置的...
问题:例如,我在一个图表上添加3份相同的指标(让它成为移动平均线),参数不同(例如,周期和颜色)。当我在图表上按下Ctrl+I时--指标列表将被显示出来,而列表中的所有 "muvings "看起来都一样。从3个中选择正确的概率非常低。在编程(编写指标本身)时,是否有机会在这个名称(为指标窗口中的列表)上添加一个指定的 "差异"?例如,我想在已安装的指标列表中看到以下内容:
Moving Average - 10 Moving Average - 20 Moving Average - 50
如果指标名称中的数字定义了周期。
这在MQL5中可能吗?
问题:例如,我在一个图表上添加3份相同的指标(让它成为移动平均线),并具有不同的参数(例如,周期和颜色)。当我在图表上按下Ctrl+I时--它打开了指标列表,而列表中的所有 "muvings "看起来都一样。从3个中选择正确的概率非常低。在编程(编写指标本身)时,是否有机会在这个名称(为指标窗口中的列表)上添加一个指定的 "差异"?例如,我想在已安装的指标列表中看到以下内容:
Moving Average - 10 Moving Average - 20 Moving Average - 50
如果指标名称中的数字定义了周期。
在MQL5中可以吗?
当然,你可以。以iMA 文档中的例子为例。
使用PlotIndexSetString 和PLOT_LABEL插入代码
识别器
描述
财产类型
PLOT_LABEL
要在DataWindow中显示的指标图形系列的名称。对于需要显示多个指示器缓冲区的复杂图形样式,可以用";"作为分隔符来指定每个缓冲区的名称。代码示例见DRAW_CANDLES
)
而这就是结果。
在数据窗口中,你可以看到这些指标的差异。
这个问题是关于指标清单的。
你好
请帮助解决代码的问题
做出了一个指标
在测试器中正常工作
当我把它放在图表上时,它不能正确显示。
搞不清楚为什么会出错。
请告诉我是否可以从真实的Mt5账户中提取资金,或者也许你可以将Mt5中的账户与这个账户同步,因为这里显示的余额为0。
你在MQL5.community,它有自己的支付系统 - 你可以在你的个人资料(Leonid Kurgansky)中看到你在MQL5.community的资金,在 。
你在MetaTrader 5客户终端的 "交易 "标签下看到的资金- 这些是你转移到你在经纪人处的交易账户的资金。
还有一个问题,有人和经纪人***合作过吗?
禁止讨论经纪人和交易组织。