2楼
共7条线,分别代表:
白线为美元、黄线澳元、绿线加元、红线日元、蓝线(白)欧元、蓝线(深)英磅、紫线瑞朗
例如:7月22日(黄色竖线所在位置)美元(白线)有一次大的上涨,而跌得最多的是瑞士法朗(紫线)。也就是说,在7月22日,瑞郎对所有货币都是大跌的;而美元对所有货币,都是大涨的。
[ 本帖最后由 秃鹫 于 2008-7-27 10:29 编辑 ]G7USD.gif
3楼
参数的设置
共有3个参数:快线、慢线和单位。
快线是涨跌显示线,慢线是判断涨跌的基础线,即参照物,单位是快线和慢线的单位(以分钟计),60表示快慢线以小时为单位,1440表示快慢线以天为单位
快线可以为零,快线若为零则以收盘价作为涨跌显示
两线交叉的意义
举例说明:
若参数设置为:5、10、1440,当白线上穿紫线时,则说明在美瑞日图上,5天线上穿10天线。
若参数设置为:0、5、1440,当黄线上穿红线时,则说明在澳日天图上,收盘价上穿5天线。
有兴趣的朋友可以验证一下。
[ 本帖最后由 秃鹫 于 2008-7-27 10:22 编辑 ]G7USDSZ.gif
发表于:2008-07-27 02:16只看该作者
4楼
:D 先收藏一下,慢慢学习研究
韬客社区www.talkfx.co
5楼
6个直盘图表应全部打开,且保持同一周期
发表于:2008-07-30 15:05只看该作者
7楼
秃鹫老师很少,公布ex4文件的
看来这个指标,是很费心力……
韬客社区www.talkfx.co
发表于:2008-07-31 00:34只看该作者
8楼
超强的好东西,大侠如能再加入NZD/USD
这个货币对,那简直就神了.期待中. 谢谢无私奉献!!!!!!!!!!!!!!!!!!!!!!!!! DDDDDDDDDDDDDDDD
这个货币对,那简直就神了.期待中. 谢谢无私奉献!!!!!!!!!!!!!!!!!!!!!!!!! DDDDDDDDDDDDDDDD
长期持仓.
发表于:2008-07-31 06:29只看该作者
10楼
第一个请求:请大侠帮忙把该指标的红色虚线改为直线
,我试过在属性里改了但一换周期就又还原了.只能请大侠改程序了,谢谢! //+------------------------------------------------------------------+ //| FNCD.mq4 | //| Belomor | //| [email protected] | //+------------------------------------------------------------------+ #property copyright "Belomor" #property link "[email protected]" #property indicator_separate_window #property indicator_buffers 2 #property indicator_color1 Yellow #property indicator_color2 Red #property indicator_level1 1 #property indicator_level2 2 #property indicator_level3 -1 #property indicator_level4 -2 //---- input parameters extern int FN=34; extern double Deviation=3.0; extern int FastEMA=5; extern int SlowEMA=13; //---- buffers double ExtMapBuffer1; double ExtMapBuffer2; double ExtMapBuffer3; //+------------------------------------------------------------------+ //| Custom indicator initialization function | //+------------------------------------------------------------------+ int init() { //---- indicators IndicatorBuffers(3); SetIndexStyle(0,DRAW_LINE); SetIndexStyle(1,DRAW_LINE,STYLE_DOT); SetIndexBuffer(0,ExtMapBuffer1); SetIndexBuffer(1,ExtMapBuffer2); SetIndexBuffer(2,ExtMapBuffer3); if(FN<2) FN=2; if(Deviation<0) Deviation=1; if(FastEMA<1) FastEMA=1; if(SlowEMA<1) SlowEMA=1; IndicatorShortName("FNCD ("+FN+","+FastEMA+","+SlowEMA+")"); SetIndexDrawBegin(0,FN+FastEMA); SetIndexDrawBegin(1,FN+SlowEMA); SetIndexLabel(0,"Fast FN"); SetIndexLabel(1,"Slow FN"); IndicatorDigits(4); //---- return(0); } double NormalizedX(int F_period, int i) { double result; double A; double S; double C; if(i0)
{
X=NormalizedX(F_period,i)/Dev;
if(X>0.99)
X=0.99;
if(X<-0.99)
X=-0.99;
result=0.5*MathLog((1+X)/(1-X));
}
else
result=0;
return(result);
}
//+------------------------------------------------------------------+
//| Custom indicator iteration function |
//+------------------------------------------------------------------+
int start()
{
int limit;
int counted_bars=IndicatorCounted();
//---- check for possible errors
if(counted_bars<0) return(-1);
//---- last counted bar will be recounted
if(counted_bars>0) counted_bars--;
limit=Bars-counted_bars;
for(int i=0; i
,我试过在属性里改了但一换周期就又还原了.只能请大侠改程序了,谢谢! //+------------------------------------------------------------------+ //| FNCD.mq4 | //| Belomor | //| [email protected] | //+------------------------------------------------------------------+ #property copyright "Belomor" #property link "[email protected]" #property indicator_separate_window #property indicator_buffers 2 #property indicator_color1 Yellow #property indicator_color2 Red #property indicator_level1 1 #property indicator_level2 2 #property indicator_level3 -1 #property indicator_level4 -2 //---- input parameters extern int FN=34; extern double Deviation=3.0; extern int FastEMA=5; extern int SlowEMA=13; //---- buffers double ExtMapBuffer1; double ExtMapBuffer2; double ExtMapBuffer3; //+------------------------------------------------------------------+ //| Custom indicator initialization function | //+------------------------------------------------------------------+ int init() { //---- indicators IndicatorBuffers(3); SetIndexStyle(0,DRAW_LINE); SetIndexStyle(1,DRAW_LINE,STYLE_DOT); SetIndexBuffer(0,ExtMapBuffer1); SetIndexBuffer(1,ExtMapBuffer2); SetIndexBuffer(2,ExtMapBuffer3); if(FN<2) FN=2; if(Deviation<0) Deviation=1; if(FastEMA<1) FastEMA=1; if(SlowEMA<1) SlowEMA=1; IndicatorShortName("FNCD ("+FN+","+FastEMA+","+SlowEMA+")"); SetIndexDrawBegin(0,FN+FastEMA); SetIndexDrawBegin(1,FN+SlowEMA); SetIndexLabel(0,"Fast FN"); SetIndexLabel(1,"Slow FN"); IndicatorDigits(4); //---- return(0); } double NormalizedX(int F_period, int i) { double result; double A; double S; double C; if(i
发表于:2008-07-31 06:31只看该作者
11楼
第二个请求:请大侠帮忙改下该指标的程序,使我可以在该指标的"属性"--"颜色"里可以修改颜色
并且切换周期后颜色任然是我改过的颜色.谢谢 //+------------------------------------------------------------------+ //| T3.mq4 | //| //| | //+------------------------------------------------------------------+ #property indicator_separate_window #property indicator_buffers 6 #property indicator_color1 Red #property indicator_color2 White #property indicator_color3 LawnGreen #property indicator_color4 Silver #property indicator_color5 Silver #property indicator_color6 Silver extern int MA_Period_1 = 3; extern int MA_Period_2 = 5; extern int MA_Period_3 = 0; //8 extern int MA_Period_4 = 0; //12 extern int MA_Period_5 = 21; extern int MA_Period_6 = 34; extern double b = 0.7; double MapBuffer1; double MapBuffer2; double MapBuffer3; double MapBuffer4; double MapBuffer5; double MapBuffer6; double e1[7],e2[7],e3[7],e4[7],e5[7],e6[7]; double c1[7],c2[7],c3[7],c4[7]; double n[7],w1[7],w2[7],b2[7],b3[7]; //+------------------------------------------------------------------+ //| Custom indicator initialization function | //+------------------------------------------------------------------+ int init() { //---- indicators setting SetIndexStyle(0,DRAW_LINE,STYLE_SOLID,1,Red); SetIndexStyle(1,DRAW_LINE,STYLE_SOLID,1,White); SetIndexStyle(2,DRAW_LINE,STYLE_SOLID,1,LawnGreen); SetIndexStyle(3,DRAW_LINE,STYLE_SOLID,1,Silver); SetIndexStyle(4,DRAW_LINE,STYLE_SOLID,1,Silver); SetIndexStyle(5,DRAW_LINE,STYLE_SOLID,1,Silver); IndicatorDigits(MarketInfo(Symbol(),MODE_DIGITS)); IndicatorShortName("T3"); SetIndexDrawBegin(0,100); SetIndexDrawBegin(1,100); SetIndexDrawBegin(2,100); SetIndexDrawBegin(3,100); SetIndexDrawBegin(4,100); SetIndexDrawBegin(5,100); SetIndexBuffer(0,MapBuffer1); SetIndexBuffer(1,MapBuffer2); SetIndexBuffer(2,MapBuffer3); SetIndexBuffer(3,MapBuffer4); SetIndexBuffer(4,MapBuffer5); SetIndexBuffer(5,MapBuffer6); //---- variable reset n[1]=MA_Period_1; n[2]=MA_Period_2; n[3]=MA_Period_3; n[4]=MA_Period_4; n[5]=MA_Period_5; n[6]=MA_Period_6; for(int l=1; l<7; l++) { //e2[l]=0; e3[l]=0; e4[l]=0; e5[l]=0; e6[l]=0; c1[l]=0; c2[l]=0; c3[l]=0; c4[l]=0; w1[l]=0; w2[l]=0; b2[l]=0; b3[l]=0; b2[l]=b*b; b3[l]=b2[l]*b; c1[l]=-b3[l]; c2[l]=(3*(b2[l]+b3[l])); c3[l]=-3*(2*b2[l]+b+b3[l]); c4[l]=(1+3*b+b3[l]+3*b2[l]); if (n[l]<1) n[l]=1; n[l] = 1 + 0.5*(n[l]-1); w1[l] = 2 / (n[l] + 1); w2[l] = 1 - w1[l]; } //---- return(0); } //+------------------------------------------------------------------+ //| Custom indicator iteration function | //+------------------------------------------------------------------+ int start() { int limit,MB,ii,i; int counted_bars=IndicatorCounted(); if (counted_bars<0) return (-1); if (counted_bars>0) counted_bars--; limit=(Bars-counted_bars)-1; //---- indicator calculation ArrayResize(e1, Bars+1); ArrayResize(e2, Bars+1); ArrayResize(e3, Bars+1); ArrayResize(e4, Bars+1); ArrayResize(e5, Bars+1); ArrayResize(e6, Bars+1); for(i=limit; i>=0; i--) { for(ii=1; ii<7; ii++) { e1[Bars-i][ii] = w1[ii]*Close + w2[ii]*e1[(Bars-i)-1][ii]; e2[Bars-i][ii] = w1[ii]*e1[Bars-i][ii] + w2[ii]*e2[(Bars-i)-1][ii]; e3[Bars-i][ii] = w1[ii]*e2[Bars-i][ii] + w2[ii]*e3[(Bars-i)-1][ii]; e4[Bars-i][ii] = w1[ii]*e3[Bars-i][ii] + w2[ii]*e4[(Bars-i)-1][ii]; e5[Bars-i][ii] = w1[ii]*e4[Bars-i][ii] + w2[ii]*e5[(Bars-i)-1][ii]; e6[Bars-i][ii] = w1[ii]*e5[Bars-i][ii] + w2[ii]*e6[(Bars-i)-1][ii]; if (ii==1) MapBuffer1=c1[ii]*e6[Bars-i][ii] + c2[ii]*e5[Bars-i][ii] + c3[ii]*e4[Bars-i][ii] + c4[ii]*e3[Bars-i][ii]; if (ii==2) MapBuffer2=c1[ii]*e6[Bars-i][ii] + c2[ii]*e5[Bars-i][ii] + c3[ii]*e4[Bars-i][ii] + c4[ii]*e3[Bars-i][ii]; if (ii==3) MapBuffer3=c1[ii]*e6[Bars-i][ii] + c2[ii]*e5[Bars-i][ii] + c3[ii]*e4[Bars-i][ii] + c4[ii]*e3[Bars-i][ii]; if (ii==4) MapBuffer4=c1[ii]*e6[Bars-i][ii] + c2[ii]*e5[Bars-i][ii] + c3[ii]*e4[Bars-i][ii] + c4[ii]*e3[Bars-i][ii]; if (ii==5) MapBuffer5=c1[ii]*e6[Bars-i][ii] + c2[ii]*e5[Bars-i][ii] + c3[ii]*e4[Bars-i][ii] + c4[ii]*e3[Bars-i][ii]; if (ii==6) MapBuffer6=c1[ii]*e6[Bars-i][ii] + c2[ii]*e5[Bars-i][ii] + c3[ii]*e4[Bars-i][ii] + c4[ii]*e3[Bars-i][ii]; } } //---- return(0); } //+------------------------------------------------------------------+ [ 本帖最后由 redreg 于 2008-7-31 14:33 编辑 ]
并且切换周期后颜色任然是我改过的颜色.谢谢 //+------------------------------------------------------------------+ //| T3.mq4 | //| //| | //+------------------------------------------------------------------+ #property indicator_separate_window #property indicator_buffers 6 #property indicator_color1 Red #property indicator_color2 White #property indicator_color3 LawnGreen #property indicator_color4 Silver #property indicator_color5 Silver #property indicator_color6 Silver extern int MA_Period_1 = 3; extern int MA_Period_2 = 5; extern int MA_Period_3 = 0; //8 extern int MA_Period_4 = 0; //12 extern int MA_Period_5 = 21; extern int MA_Period_6 = 34; extern double b = 0.7; double MapBuffer1; double MapBuffer2; double MapBuffer3; double MapBuffer4; double MapBuffer5; double MapBuffer6; double e1[7],e2[7],e3[7],e4[7],e5[7],e6[7]; double c1[7],c2[7],c3[7],c4[7]; double n[7],w1[7],w2[7],b2[7],b3[7]; //+------------------------------------------------------------------+ //| Custom indicator initialization function | //+------------------------------------------------------------------+ int init() { //---- indicators setting SetIndexStyle(0,DRAW_LINE,STYLE_SOLID,1,Red); SetIndexStyle(1,DRAW_LINE,STYLE_SOLID,1,White); SetIndexStyle(2,DRAW_LINE,STYLE_SOLID,1,LawnGreen); SetIndexStyle(3,DRAW_LINE,STYLE_SOLID,1,Silver); SetIndexStyle(4,DRAW_LINE,STYLE_SOLID,1,Silver); SetIndexStyle(5,DRAW_LINE,STYLE_SOLID,1,Silver); IndicatorDigits(MarketInfo(Symbol(),MODE_DIGITS)); IndicatorShortName("T3"); SetIndexDrawBegin(0,100); SetIndexDrawBegin(1,100); SetIndexDrawBegin(2,100); SetIndexDrawBegin(3,100); SetIndexDrawBegin(4,100); SetIndexDrawBegin(5,100); SetIndexBuffer(0,MapBuffer1); SetIndexBuffer(1,MapBuffer2); SetIndexBuffer(2,MapBuffer3); SetIndexBuffer(3,MapBuffer4); SetIndexBuffer(4,MapBuffer5); SetIndexBuffer(5,MapBuffer6); //---- variable reset n[1]=MA_Period_1; n[2]=MA_Period_2; n[3]=MA_Period_3; n[4]=MA_Period_4; n[5]=MA_Period_5; n[6]=MA_Period_6; for(int l=1; l<7; l++) { //e2[l]=0; e3[l]=0; e4[l]=0; e5[l]=0; e6[l]=0; c1[l]=0; c2[l]=0; c3[l]=0; c4[l]=0; w1[l]=0; w2[l]=0; b2[l]=0; b3[l]=0; b2[l]=b*b; b3[l]=b2[l]*b; c1[l]=-b3[l]; c2[l]=(3*(b2[l]+b3[l])); c3[l]=-3*(2*b2[l]+b+b3[l]); c4[l]=(1+3*b+b3[l]+3*b2[l]); if (n[l]<1) n[l]=1; n[l] = 1 + 0.5*(n[l]-1); w1[l] = 2 / (n[l] + 1); w2[l] = 1 - w1[l]; } //---- return(0); } //+------------------------------------------------------------------+ //| Custom indicator iteration function | //+------------------------------------------------------------------+ int start() { int limit,MB,ii,i; int counted_bars=IndicatorCounted(); if (counted_bars<0) return (-1); if (counted_bars>0) counted_bars--; limit=(Bars-counted_bars)-1; //---- indicator calculation ArrayResize(e1, Bars+1); ArrayResize(e2, Bars+1); ArrayResize(e3, Bars+1); ArrayResize(e4, Bars+1); ArrayResize(e5, Bars+1); ArrayResize(e6, Bars+1); for(i=limit; i>=0; i--) { for(ii=1; ii<7; ii++) { e1[Bars-i][ii] = w1[ii]*Close + w2[ii]*e1[(Bars-i)-1][ii]; e2[Bars-i][ii] = w1[ii]*e1[Bars-i][ii] + w2[ii]*e2[(Bars-i)-1][ii]; e3[Bars-i][ii] = w1[ii]*e2[Bars-i][ii] + w2[ii]*e3[(Bars-i)-1][ii]; e4[Bars-i][ii] = w1[ii]*e3[Bars-i][ii] + w2[ii]*e4[(Bars-i)-1][ii]; e5[Bars-i][ii] = w1[ii]*e4[Bars-i][ii] + w2[ii]*e5[(Bars-i)-1][ii]; e6[Bars-i][ii] = w1[ii]*e5[Bars-i][ii] + w2[ii]*e6[(Bars-i)-1][ii]; if (ii==1) MapBuffer1=c1[ii]*e6[Bars-i][ii] + c2[ii]*e5[Bars-i][ii] + c3[ii]*e4[Bars-i][ii] + c4[ii]*e3[Bars-i][ii]; if (ii==2) MapBuffer2=c1[ii]*e6[Bars-i][ii] + c2[ii]*e5[Bars-i][ii] + c3[ii]*e4[Bars-i][ii] + c4[ii]*e3[Bars-i][ii]; if (ii==3) MapBuffer3=c1[ii]*e6[Bars-i][ii] + c2[ii]*e5[Bars-i][ii] + c3[ii]*e4[Bars-i][ii] + c4[ii]*e3[Bars-i][ii]; if (ii==4) MapBuffer4=c1[ii]*e6[Bars-i][ii] + c2[ii]*e5[Bars-i][ii] + c3[ii]*e4[Bars-i][ii] + c4[ii]*e3[Bars-i][ii]; if (ii==5) MapBuffer5=c1[ii]*e6[Bars-i][ii] + c2[ii]*e5[Bars-i][ii] + c3[ii]*e4[Bars-i][ii] + c4[ii]*e3[Bars-i][ii]; if (ii==6) MapBuffer6=c1[ii]*e6[Bars-i][ii] + c2[ii]*e5[Bars-i][ii] + c3[ii]*e4[Bars-i][ii] + c4[ii]*e3[Bars-i][ii]; } } //---- return(0); } //+------------------------------------------------------------------+ [ 本帖最后由 redreg 于 2008-7-31 14:33 编辑 ]
发表于:2008-07-31 06:35只看该作者
12楼
请求大侠帮忙解决,永远感谢你
发表于:2008-07-31 14:31只看该作者
13楼
支持下下 mmm
生命不熄,奋斗不止。股海搏击,争金夺银,
14楼
//+------------------------------------------------------------------+
//| FNCD.mq4 |
//| Belomor |
//| [email protected] |
//+------------------------------------------------------------------+
#property copyright "Belomor"
#property link "[email protected]"
#property indicator_separate_window
#property indicator_buffers 2
#property indicator_color1 Yellow
#property indicator_color2 Red
#property indicator_level1 1
#property indicator_level2 2
#property indicator_level3 -1
#property indicator_level4 -2
//---- input parameters
extern int FN=34;
extern double Deviation=3.0;
extern int FastEMA=5;
extern int SlowEMA=13;
//---- buffers
double ExtMapBuffer1;
double ExtMapBuffer2;
double ExtMapBuffer3;
//+------------------------------------------------------------------+
//| Custom indicator initialization function |
//+------------------------------------------------------------------+
int init()
{
//---- indicators
IndicatorBuffers(3);
SetIndexStyle(0,DRAW_LINE);
SetIndexStyle(1,DRAW_LINE);
SetIndexBuffer(0,ExtMapBuffer1);
SetIndexBuffer(1,ExtMapBuffer2);
SetIndexBuffer(2,ExtMapBuffer3);
if(FN<2)
FN=2;
if(Deviation<0)
Deviation=1;
if(FastEMA<1)
FastEMA=1;
if(SlowEMA<1)
SlowEMA=1;
IndicatorShortName("FNCD ("+FN+","+FastEMA+","+SlowEMA+")");
SetIndexDrawBegin(0,FN+FastEMA);
SetIndexDrawBegin(1,FN+SlowEMA);
SetIndexLabel(0,"Fast FN");
SetIndexLabel(1,"Slow FN");
IndicatorDigits(4);
//----
return(0);
}
double NormalizedX(int F_period, int t)
{
double result;
double A;
double S;
double C;
if(t0)
{
X=NormalizedX(F_period,i)/Dev;
if(X>0.99)
X=0.99;
if(X<-0.99)
X=-0.99;
result=0.5*MathLog((1+X)/(1-X));
}
else
result=0;
return(result);
}
//+------------------------------------------------------------------+
//| Custom indicator iteration function |
//+------------------------------------------------------------------+
int start()
{
int limit;
int counted_bars=IndicatorCounted();
//---- check for possible errors
if(counted_bars<0) return(-1);
//---- last counted bar will be recounted
if(counted_bars>0) counted_bars--;
limit=Bars-counted_bars;
for(int t=0; t
15楼
你也不用这么客气,小事一桩
//+------------------------------------------------------------------+
//| T3.mq4 |
//|
//| |
//+------------------------------------------------------------------+
#property indicator_separate_window
#property indicator_buffers 6
#property indicator_color1 Red
#property indicator_color2 White
#property indicator_color3 LawnGreen
#property indicator_color4 Silver
#property indicator_color5 Silver
#property indicator_color6 Silver
extern int MA_Period_1 = 3;
extern int MA_Period_2 = 5;
extern int MA_Period_3 = 0; //8
extern int MA_Period_4 = 0; //12
extern int MA_Period_5 = 21;
extern int MA_Period_6 = 34;
extern double b = 0.7;
double MapBuffer1;
double MapBuffer2;
double MapBuffer3;
double MapBuffer4;
double MapBuffer5;
double MapBuffer6;
double e1[7],e2[7],e3[7],e4[7],e5[7],e6[7];
double c1[7],c2[7],c3[7],c4[7];
double n[7],w1[7],w2[7],b2[7],b3[7];
//+------------------------------------------------------------------+
//| Custom indicator initialization function |
//+------------------------------------------------------------------+
int init()
{
//---- indicators setting
SetIndexStyle(0,DRAW_LINE,STYLE_SOLID,1);
SetIndexStyle(1,DRAW_LINE,STYLE_SOLID,1);
SetIndexStyle(2,DRAW_LINE,STYLE_SOLID,1);
SetIndexStyle(3,DRAW_LINE,STYLE_SOLID,1);
SetIndexStyle(4,DRAW_LINE,STYLE_SOLID,1);
SetIndexStyle(5,DRAW_LINE,STYLE_SOLID,1);
IndicatorDigits(MarketInfo(Symbol(),MODE_DIGITS));
IndicatorShortName("T3");
SetIndexDrawBegin(0,100);
SetIndexDrawBegin(1,100);
SetIndexDrawBegin(2,100);
SetIndexDrawBegin(3,100);
SetIndexDrawBegin(4,100);
SetIndexDrawBegin(5,100);
SetIndexBuffer(0,MapBuffer1);
SetIndexBuffer(1,MapBuffer2);
SetIndexBuffer(2,MapBuffer3);
SetIndexBuffer(3,MapBuffer4);
SetIndexBuffer(4,MapBuffer5);
SetIndexBuffer(5,MapBuffer6);
//---- variable reset
n[1]=MA_Period_1;
n[2]=MA_Period_2;
n[3]=MA_Period_3;
n[4]=MA_Period_4;
n[5]=MA_Period_5;
n[6]=MA_Period_6;
for(int l=1; l<7; l++)
{
//e2[l]=0; e3[l]=0; e4[l]=0; e5[l]=0; e6[l]=0;
c1[l]=0; c2[l]=0; c3[l]=0; c4[l]=0;
w1[l]=0; w2[l]=0;
b2[l]=0; b3[l]=0;
b2[l]=b*b;
b3[l]=b2[l]*b;
c1[l]=-b3[l];
c2[l]=(3*(b2[l]+b3[l]));
c3[l]=-3*(2*b2[l]+b+b3[l]);
c4[l]=(1+3*b+b3[l]+3*b2[l]);
if (n[l]<1) n[l]=1;
n[l] = 1 + 0.5*(n[l]-1);
w1[l] = 2 / (n[l] + 1);
w2[l] = 1 - w1[l];
}
//----
return(0);
}
//+------------------------------------------------------------------+
//| Custom indicator iteration function |
//+------------------------------------------------------------------+
int start()
{
int limit,MB,ii,t;
int counted_bars=IndicatorCounted();
if (counted_bars<0) return (-1);
if (counted_bars>0) counted_bars--;
limit=(Bars-counted_bars)-1;
//---- indicator calculation
ArrayResize(e1, Bars+1);
ArrayResize(e2, Bars+1);
ArrayResize(e3, Bars+1);
ArrayResize(e4, Bars+1);
ArrayResize(e5, Bars+1);
ArrayResize(e6, Bars+1);
for(t=limit; t>=0; t--)
{
for(ii=1; ii<7; ii++)
{
e1[Bars-t][ii] = w1[ii]*Close[t] + w2[ii]*e1[(Bars-t)-1][ii];
e2[Bars-t][ii] = w1[ii]*e1[Bars-t][ii] + w2[ii]*e2[(Bars-t)-1][ii];
e3[Bars-t][ii] = w1[ii]*e2[Bars-t][ii] + w2[ii]*e3[(Bars-t)-1][ii];
e4[Bars-t][ii] = w1[ii]*e3[Bars-t][ii] + w2[ii]*e4[(Bars-t)-1][ii];
e5[Bars-t][ii] = w1[ii]*e4[Bars-t][ii] + w2[ii]*e5[(Bars-t)-1][ii];
e6[Bars-t][ii] = w1[ii]*e5[Bars-t][ii] + w2[ii]*e6[(Bars-t)-1][ii];
if (ii==1) MapBuffer1[t]=c1[ii]*e6[Bars-t][ii] + c2[ii]*e5[Bars-t][ii] + c3[ii]*e4[Bars-t][ii] + c4[ii]*e3[Bars-t][ii];
if (ii==2) MapBuffer2[t]=c1[ii]*e6[Bars-t][ii] + c2[ii]*e5[Bars-t][ii] + c3[ii]*e4[Bars-t][ii] + c4[ii]*e3[Bars-t][ii];
if (ii==3) MapBuffer3[t]=c1[ii]*e6[Bars-t][ii] + c2[ii]*e5[Bars-t][ii] + c3[ii]*e4[Bars-t][ii] + c4[ii]*e3[Bars-t][ii];
if (ii==4) MapBuffer4[t]=c1[ii]*e6[Bars-t][ii] + c2[ii]*e5[Bars-t][ii] + c3[ii]*e4[Bars-t][ii] + c4[ii]*e3[Bars-t][ii];
if (ii==5) MapBuffer5[t]=c1[ii]*e6[Bars-t][ii] + c2[ii]*e5[Bars-t][ii] + c3[ii]*e4[Bars-t][ii] + c4[ii]*e3[Bars-t][ii];
if (ii==6) MapBuffer6[t]=c1[ii]*e6[Bars-t][ii] + c2[ii]*e5[Bars-t][ii] + c3[ii]*e4[Bars-t][ii] + c4[ii]*e3[Bars-t][ii];
}
}
//----
return(0);
}
//+------------------------------------------------------------------+
顺势
发表于:2008-07-31 23:11只看该作者
16楼
秃鹫大侠,你真是高手,为人仗义,我试过,全部都可以了,我那个激动啊,以前看的累啊,现在全感谢你,无于言表...
我今发愿,此恩定报!
17楼
发表于:2008-08-01 05:28只看该作者
18楼
诚心感谢.大侠,我上talk有时较难,能告知您的电油吗
发表于:2008-08-01 05:29只看该作者
19楼
发给我
vc000
@
tom
.
c o m