求助HAWKIE!
请帮忙!我用一个公式。一直用的股市。求助你帮我编到MT40上了
源码为:
a:=(3*c+l+o+h)/6;
L2:=(20*a+19*ref(a,1)+18*ref(a,2)+17*ref(a,3)+16*ref(a,4)+15*ref(a,5)+14*ref(a,6)+13*ref(a,7)+12*ref(a,8)+11*ref(a,9)+10*ref(a,10)+9*ref(a,11)+8*ref(a,12)+7*ref(a,13)+6*ref(a,14)+5*ref(a,15)+4*ref(a,16)+3*ref(a,17)+2*ref(a,18)+ref(a,20))/200;
L3:ma(L2,7);
L4:ma(L2,21);
十分感谢!
----------------------------
朋友 论坛有规定的 不允许留qq或者msn类的联系方式.....
望见谅
[ 本帖最后由 老正 于 2005-8-1 09:20 编辑 ]
发表于:2005-07-31 15:11只看该作者
2楼 
L2:=(20*a+19*ref(a,1)+18*ref(a,2)+17*ref(a,3)+16*ref(a,4)+15*ref(a,5)+14*ref(a,6)+13*ref(a,7)+12*ref(a,8)+11*ref(a,9)+10*ref(a,10)+9*ref(a,11)+8*ref(a,12)+7*ref(a,13)+6*ref(a,14)+5*ref(a,15)+4*ref(a,16)+3*ref(a,17)+2*ref(a,18)+ref(a,20))/200;
      +++++
2*ref(a,18)+ref(a,20)里面ref(a,19)没有吗?
3楼 
哦!这个没有关系!20与19影响不大。这个是copy错了。应是19!按规律应是前面数字加后面数字和为20的。后面还可以加一根线  L5: (L3+L4)/2;
谢谢!
[ 本帖最后由 老正 于 2005-8-1 09:20 编辑 ]
韬客社区www.talkfx.co
发表于:2005-08-01 05:23只看该作者
4楼 
//+------------------------------------------------------------------+
//|                                                         MAYI.mq4 |
//|                       Copyright ?2005, MetaQuotes Software Corp. |
//|                                        http://www.metaquotes.net |
//+------------------------------------------------------------------+
#property copyright "Copyright ?2005, MetaQuotes Software Corp."
#property link      "http://www.metaquotes.net"
#property indicator_separate_window
#property  indicator_buffers 3
#property  indicator_color1  Silver
#property  indicator_color2  Yellow
#property  indicator_color3  Magenta
extern int N1=7;
extern int N2=21;
double buffer1;
double buffer2;
double buffer3;
double buffer4;
double buffer5;
//+------------------------------------------------------------------+
//| Custom indicator initialization function                         |
//+------------------------------------------------------------------+
int init()
  {
//---- indicators
   IndicatorBuffers(5);
   SetIndexBuffer(0, buffer3);
   SetIndexBuffer(1, buffer4);
   SetIndexBuffer(2, buffer5);
   SetIndexBuffer(3, buffer1);
   SetIndexBuffer(4, buffer2);
//---- indicator lines
   SetIndexStyle(0,DRAW_LINE);
   SetIndexStyle(1,DRAW_LINE);
   SetIndexStyle(2,DRAW_LINE);
   IndicatorShortName("MAYI("+N1+","+N2+")");
   SetIndexLabel(0,"L3");
   SetIndexLabel(1,"L4");
   SetIndexLabel(2,"L5");
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| Custor indicator deinitialization function                       |
//+------------------------------------------------------------------+
int deinit()
  {
//---- 
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| Custom indicator iteration function                              |
//+------------------------------------------------------------------+
int start()
  {
   int    counted_bars=IndicatorCounted();
   int i,limit,k;
   double sum;
//---- 
   limit=Bars-counted_bars;
   for(i=0;i
5楼 
太感谢 hawkie 了!希望能与你交个朋友!不知你记到前面QQ号没有。班主不让留。晕。希望这次你能见到。275110277
以下是镑的分析图。 bb.gif
bb.gif aa.gif
aa.gif
 bb.gif
bb.gif aa.gif
aa.gif韬客社区www.talkfx.co
















