SilverTrend_HTF_Signal 是一款与 SilverTrend 指标相结合,能够为您提供趋势方向和交易信号的工具。它在您选择的时间柱上以图形化方式展示趋势方向,并在市场进入时发送提醒或音频信号。
当选定的时间柱上趋势持续时,指标会通过一个星形图形进行提醒,其颜色与趋势方向相对应。而当趋势发生变化时,指标则通过箭头进行提示,箭头的颜色和方向与当前的交易方向一致。
该指标的输入参数可以分为三大类:
- SilverTrend 指标输入参数:
//+------------------------------------------------+ //| 指标输入参数 | //+------------------------------------------------+ input string Symbol_=""; // 财务工具 input ENUM_TIMEFRAMES Timeframe=PERIOD_H6; // 指标计算所用的时间框架 input int RISK=3;
- SilverTrend_HTF_Signal 指标的可视化输入参数:
//---- 指标显示设置 input uint SignalBar=0; // 信号柱索引,0表示当前柱 input string Symbols_Sirname=INDICATOR_NAME"_Label_"; // 指标标签名称 input color UpSymbol_Color=Lime; // 上涨符号颜色 input color DnSymbol_Color=Magenta; // 下跌符号颜色 input color IndName_Color=DarkOrchid; // 指标名称颜色 input uint Symbols_Size=60; // 信号符号大小 input uint Font_Size=10; // 指标名称字体大小 input int X_1=5; // 名称的水平偏移 input int Y_1=-15; // 名称的垂直偏移 input bool ShowIndName=true; // 显示指标名称 input ENUM_BASE_CORNER WhatCorner=CORNER_RIGHT_UPPER;// 位置角落 input uint X_=0; // 水平偏移 input uint Y_=20; // 垂直偏移
- SilverTrend_HTF_Signal 指标的警报与音频信号输入参数:
//---- 警报设置 input ENUM_ALERT_MODE alert_mode=OnlySound; // 警报触发模式 input uint AlertCount=0; // 已提交警报的数量
如果在同一图表上使用多个 SilverTrend_HTF_Signal 指标,每个指标都应该有自己独特的 Symbols_Sirname(指标标签名称)字符串变量值。
请将 SilverTrend 指标的编译文件放置在 terminal_data_folder\MQL5\Indicators\ 目录下。

