iBands
Calculates the Bollinger Bands® indicator and returns its value.
double iBands (
string symbol , // 技术指标 symbol
int timeframe , // timeframe
int period , // averaging period
double deviation , // standard deviations
int bands_shift , // bands shift
int applied_price , // applied price
int mode , // line index
int shift // shift
);
[in] Symbol name on the data of which 技术指标 the indicator will be calculated. NULL means the current symbol.
[in] Timeframe. It can be any of ENUM_TIMEFRAMES enumeration values. 0 means the current chart timeframe.
[in] Averaging period to calculate the main line.
[in] Number of standard deviations from the main line.
[in] The indicator shift relative to the chart.
[in] Applied price. It can be any of ENUM_APPLIED_PRICE enumeration values.
[in] Indicator line index. It can be any of the Indicators line identifiers enumeration 技术指标 value ( 0 - MODE_MAIN, 1 - MODE_UPPER, 2 - MODE_LOWER ).
[in] Index of the value taken from the indicator buffer (shift relative to the current bar the given amount of periods ago).
Numerical value of the Bollinger Bands® indicator.
if ( iBands ( NULL ,0,20,2,0, PRICE_LOW , MODE_LOWER ,0)> Low [0]) return (0);
1.使用MA,通常是对不同的参数同时使用,而不是仅仅用一个。按各人的不同,参数的选择上会有些差别,但是都包括长期、中期和短期三类MA。长、中、短是相对的,可以自己确定。在国内股市中,常利用的移动平均线组合为5日(黄色)、10日(紫色)、30日(绿色)、60日(白色)、120日(蓝色)、250日(红色)线。其中250日长期移动平均线作为牛市与熊市的分界线。
MA指标 买卖时机
MA指标 拓展知识
MA指标 MA
计算公式: MA = (C1+C2+C3+C4+C5+. +Cn)/n C 为收盘价,n 为移动平均周期数例如,现货黄金的 5 日移动平均价格计算方法为: MA 5 = 技术指标 技术指标 (前四天收盘价+前三天收盘价+前天收盘价+昨天收盘价+今天收盘价)/5
什么是QoS
更多
收起
QoS的重要性
QoS的度量指标
QoS的应用场景
网络协议和管理协议(如OSPF、Telnet)
实时业务(如视频会议、VoIP)
QoS的服务模型
Best-Effort服务模型:尽力而为
IntServ服务模型:预留资源
IntServ模型使用了RSVP(Resource Reservation Protocol)协议作为信令,在一条已知路径的网络拓扑上预留带宽、优先级等资源,路径沿途的各网元必须为每个要求服务质量保证的数据流预留想要的资源,通过RSVP信息的预留,各网元可以判断是否有足够的资源可以使用。只有所有的网元都给RSVP提供了足够的资源,“路径”方可建立。
DiffServ服务模型:差分服务
基于DiffServ模型的QoS组成
报文分类和标记
流量监管、流量整形和接口限速
拥塞管理和拥塞避免
对比QoS和HQoS
- 传统QoS是基于端口带宽进行调度的,因此流量管理可以基于服务等级进行业务区分,却很难基于用户进行区分,因此比较适合部署在网络核心侧,但不适合部署在业务接入侧。
- 传统QoS无法做到同时对多个用户的多个业务进行流量管理和调度。
为了解决上述问题,人们需要一种既能区分用户流量又能根据用户业务的优先级进行调度的技术,HQoS(Hierarchical Quality of Service,层次化QoS)应运而生。HQoS通过多级队列进一步细化区分业务流量,对多个用户、多种业务等传输对象进行统一管理和分层调度,在现有的硬件环境下使设备具备内部资源的控制策略,既能够为高级用户提供质量保证,又能够从整体上节约网络建设成本。
iMACD
Calculates the Moving Averages Convergence/Divergence indicator and returns its value.
double iMACD (
string symbol , // symbol
int timeframe , // timeframe
int fast_ema_period , // Fast EMA period
int slow_ema_period , // Slow EMA period
int signal_period , // Signal line period
int applied_price , // applied price
int mode , // line index
int shift // shift
);
[in] Symbol name on the data of which the indicator will be calculated. NULL 技术指标 means the current symbol.
[in] Timeframe. It 技术指标 can be any of ENUM_TIMEFRAMES enumeration values. 0 means the current chart timeframe.
[in] Fast EMA averaging period.
[in] Slow EMA averaging period.
[in] Signal line averaging period.
[in] Applied price. It can be any of ENUM_APPLIED_PRICE enumeration values.
[in] Indicator line index. It can be one of the Indicators line identifiers enumeration values (0-MODE_MAIN, 1-MODE_SIGNAL).
[in] Index of the value taken from the indicator buffer (shift relative to the current bar the given amount of periods ago).
Numerical value of the Moving Average of Oscillator indicator.
In some systems it is called MACD Histogram and plotted as two lines. In MetaTrader 技术指标 4 client terminal MACD is plotted as histogram.
if ( iMACD ( NULL ,0,12,26,9, PRICE_CLOSE , MODE_MAIN ,0)> iMACD ( NULL ,0,12,26,9, PRICE_CLOSE , MODE_SIGNAL ,0)) return (0);