外汇论坛 外兔财经

开启左侧

求助:哪位高手能提供一个布林线的带宽指标(Bandwidth).非常感激!

[复制链接]
发表于 2006-1-27 16:04 | 显示全部楼层 |阅读模式
https://www.y2cn.com
如题,
谢谢!!!!!!!!!!!!!!!!!!!!
发表于 2006-1-27 16:08 | 显示全部楼层
原帖由 plmm 于 2006-1-27 16:04 发表
如题,
谢谢!!!!!!!!!!!!!!!!!!!!


漂亮MM,见图
时空动量研究室财FX走势分析报告.gif
寻找波动的规律不如寻找波动的起因
发表于 2006-1-27 16:16 | 显示全部楼层
原帖由 【智圆行方】 于 2006-1-27 16:08 发表


漂亮MM,见图

以下链接有我个人对布林带宽指标使用的一点心得,请参考
http://y2.cn/viewthread.php?tid= ... 2%D0%D0%B7%BD%A1%BF
寻找波动的规律不如寻找波动的起因
 楼主| 发表于 2006-1-27 16:16 | 显示全部楼层
原帖由 【智圆行方】 于 2006-1-27 16:08 发表


漂亮MM,见图


明白了.
老大就老大!感谢!!!!!!!!!!!!!!!!!!!!!!!
 楼主| 发表于 2006-1-27 16:18 | 显示全部楼层
原帖由 【智圆行方】 于 2006-1-27 16:16 发表

以下链接有我个人对布林带宽指标使用的一点心得,请参考
http://y2.cn/viewthread.php?tid= ... 2%D0%D0%B7%BD%A1%BF



太谢谢你了,这就去看!!!!!!!!!!!!!
发表于 2006-1-27 18:46 | 显示全部楼层
原帖由 【智圆行方】 于 2006-1-27 16:16 发表

以下链接有我个人对布林带宽指标使用的一点心得,请参考
http://y2.cn/viewthread.php?tid= ... 2%D0%D0%B7%BD%A1%BF

谢谢。
发表于 2006-1-27 19:43 | 显示全部楼层
以下是转贴:


//+------------------------------------------------------------------+
//|                                                  Bolling b% .mq4 |
//|                       Copyright ?2004, MetaQuotes Software Corp. |
//|                                        http://www.metaquotes.net |
//+------------------------------------------------------------------+
#property copyright "Copyright ?2004, MetaQuotes Software Corp."
#property link      "http://www.metaquotes.net"

#property indicator_separate_window
#property indicator_buffers 1
#property indicator_color1 Red
//---- input parameters
extern int   BandPeriod=20;
extern int   Deviation=2;

//---- buffers
double ExtMapBuffer1[];
double ExtMapBuffer2[];
double ExtMapBuffer3[];
double ExtMapBuffer4[];


//+------------------------------------------------------------------+
//| Custom indicator initialization function                         |
//+------------------------------------------------------------------+
int init()
  {
  IndicatorBuffers(4);
//---- 3 additional buffers are used for counting.
   SetIndexBuffer(1, ExtMapBuffer2);
   SetIndexBuffer(2, ExtMapBuffer3);
   SetIndexBuffer(3, ExtMapBuffer4);
   
//---- indicators
   SetIndexStyle(0,DRAW_LINE);
   SetIndexBuffer(0,ExtMapBuffer1);
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| Custor indicator deinitialization function                       |
//+------------------------------------------------------------------+
int deinit()
  {
//---- TODO: add your code here
   
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| Custom indicator iteration function                              |
//+------------------------------------------------------------------+
int start()
  {
   int   counted_bars=IndicatorCounted();
//---- TODO: add your code here
  int limit;
//---- 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<limit; i++)
   ExtMapBuffer2=Close;
      
   for(i=0; i<limit; i++)
      ExtMapBuffer3=iMAOnArray(ExtMapBuffer2,Bars,BandPeriod,0,MODE_SMA,i);
      
   for(i=0; i<limit; i++)
      ExtMapBuffer4=iStdDevOnArray(ExtMapBuffer2,Bars,BandPeriod,MODE_SMA,0,i);
      
   for(i=0; i<limit; i++)
      ExtMapBuffer1=(ExtMapBuffer2-(ExtMapBuffer3-Deviation*ExtMapBuffer4))/((ExtMapBuffer3+Deviation*ExtMapBuffer4)-(ExtMapBuffer3-Deviation*ExtMapBuffer4));
      

//----
   return(0);
  }
//+------------------------------------------------------------------+
 楼主| 发表于 2006-1-27 22:44 | 显示全部楼层
谢谢zsg1085

本版积分规则

QQ|手机版 Mobile Version|Archiver|关于我们 About Us|联系我们 Contact Us|Y2外汇论坛 外兔财经

GMT+8, 2024-5-5 15:08 , Processed in 0.058532 second(s), 26 queries .

Powered by Discuz! X7.2

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表