您需要 登录 才可以下载或查看,没有帐号?注册
这个指标是为了求得目前柱子最高最低价之间的振幅于前n天平均振幅指标,运行出错,麻烦高手们看看解答一下谢谢。 div >
#property indicator_separate_window
#property indicator_buffers 1
#property indicator_color1 Red
double fluctuation;
extern int time_period=3;
//+------------------------------------------------------------------+
//| Custom indicator initialization function |
//+------------------------------------------------------------------+
int init()
{
IndicatorBuffers(1);
SetIndexBuffer(0,fluctuation);
SetIndexStyle(0,0,0,2,Red);
return(0);
}
//+------------------------------------------------------------------+
//| Custom indicator deinitialization function |
//+------------------------------------------------------------------+
int deinit()
{
//----
//----
return(0);
}
//+------------------------------------------------------------------+
//| Custom indicator iteration function |
//+------------------------------------------------------------------+
int start()
{
double highsum;
double lowsum;
int counted_bars=IndicatorCounted();
if (counted_bars0) counted_bars--;
int limit=Bars-counted_bars;
for (int i=limit-1;i i--)
{
int r=1;
while (r
外汇交易有很大的风险性,本站所有资源均来自网络,请选择使用,如若出现亏损,本站不承担任何责任!