[MT4指标]布林上布林通道线
该指标是相同的布林带加ima平滑指标。
BandsPeriod - 期数
BandsShift - 偏移量
BandsDeviations - 从主线偏差
[backcolor=rgb(245, 245, 245)]慢 - 平滑 [/backcolor]
该指标是本书J.保力加通道的基础上发展起来的。
[backcolor=rgb(245, 245, 245)]“布林上布林通道” [/backcolor]
[backcolor=rgb(245, 245, 245)]的解释很简单。[/backcolor]
该指标的行显示的价格相对于布林线的位置。
[backcolor=rgb(245, 245, 245)]指示线的出去了0或1表示出来郊游的较低和上部带。[/backcolor]
//+------------------------------------------------------------------+ //| i-BandsPrice.mq4 | //| Copyright 2008, Talex | //| [email protected] | //+------------------------------------------------------------------+ #property copyright "Copyright 2008, Talex" #property link "[email protected]" #property indicator_separate_window #property indicator_buffers 1 #property indicator_color1 Yellow #property indicator_level1 0 #property indicator_level2 0.25 #property indicator_level3 0.5 #property indicator_level4 0.75 #property indicator_level5 1 extern int BandsPeriod=20; extern int BandsShift=0; extern double BandsDeviations=2.0; extern int Slow=5; double BPBuffer,Buffer; //+------------------------------------------------------------------+ //| Custom indicator initialization function | //+------------------------------------------------------------------+ void init() { IndicatorBuffers(2); IndicatorShortName("i-BandsPrice ("+BandsPeriod+", "+DoubleToStr(BandsDeviations,1)+", "+Slow+")"); SetIndexStyle(0,DRAW_LINE); SetIndexBuffer(0,Buffer); SetIndexBuffer(1,BPBuffer); return; } //+------------------------------------------------------------------+ //| Custom indicator deinitialization function | //+------------------------------------------------------------------+ void deinit() { return; } //+------------------------------------------------------------------+ //| Custom indicator iteration function | //+------------------------------------------------------------------+ void start() { int i,j,limit,cbars; double sum,oldval,newres,deviation,upband,dwband; cbars=IndicatorCounted(); if(Bars<=BandsPeriod) return; if(cbars<0) return; if(cbars>0) limit=Bars-cbars-1; else limit=Bars-BandsPeriod-1; for(i=0;i<=limit;i++) { sum=0.0; oldval=iMA(NULL,0,BandsPeriod,BandsShift,MODE_SMA,PRICE_CLOSE,i); for(j=0;jbandprice_1.jpg
BandsPeriod - 期数
BandsShift - 偏移量
BandsDeviations - 从主线偏差
[backcolor=rgb(245, 245, 245)]慢 - 平滑 [/backcolor]
该指标是本书J.保力加通道的基础上发展起来的。
[backcolor=rgb(245, 245, 245)]“布林上布林通道” [/backcolor]
[backcolor=rgb(245, 245, 245)]的解释很简单。[/backcolor]
该指标的行显示的价格相对于布林线的位置。
[backcolor=rgb(245, 245, 245)]指示线的出去了0或1表示出来郊游的较低和上部带。[/backcolor]
//+------------------------------------------------------------------+ //| i-BandsPrice.mq4 | //| Copyright 2008, Talex | //| [email protected] | //+------------------------------------------------------------------+ #property copyright "Copyright 2008, Talex" #property link "[email protected]" #property indicator_separate_window #property indicator_buffers 1 #property indicator_color1 Yellow #property indicator_level1 0 #property indicator_level2 0.25 #property indicator_level3 0.5 #property indicator_level4 0.75 #property indicator_level5 1 extern int BandsPeriod=20; extern int BandsShift=0; extern double BandsDeviations=2.0; extern int Slow=5; double BPBuffer,Buffer; //+------------------------------------------------------------------+ //| Custom indicator initialization function | //+------------------------------------------------------------------+ void init() { IndicatorBuffers(2); IndicatorShortName("i-BandsPrice ("+BandsPeriod+", "+DoubleToStr(BandsDeviations,1)+", "+Slow+")"); SetIndexStyle(0,DRAW_LINE); SetIndexBuffer(0,Buffer); SetIndexBuffer(1,BPBuffer); return; } //+------------------------------------------------------------------+ //| Custom indicator deinitialization function | //+------------------------------------------------------------------+ void deinit() { return; } //+------------------------------------------------------------------+ //| Custom indicator iteration function | //+------------------------------------------------------------------+ void start() { int i,j,limit,cbars; double sum,oldval,newres,deviation,upband,dwband; cbars=IndicatorCounted(); if(Bars<=BandsPeriod) return; if(cbars<0) return; if(cbars>0) limit=Bars-cbars-1; else limit=Bars-BandsPeriod-1; for(i=0;i<=limit;i++) { sum=0.0; oldval=iMA(NULL,0,BandsPeriod,BandsShift,MODE_SMA,PRICE_CLOSE,i); for(j=0;j
发表于:2016-09-19 19:33只看该作者
2楼
谢谢分享
韬客社区www.talkfx.co
发表于:2016-09-20 14:45只看该作者
3楼
没看懂
韬客社区www.talkfx.co
发表于:2017-01-27 14:50只看该作者
4楼
该指标是相同的布林带加ima平滑指标。
发表于:2017-03-24 01:23只看该作者
5楼
谢谢分享
韬客社区www.talkfx.co
发表于:2017-03-24 06:56只看该作者
6楼
谢谢分享
韬客社区www.talkfx.co
发表于:2017-08-08 04:49只看该作者
7楼
谢谢分享
韬客社区www.talkfx.co
发表于:2017-08-23 16:37只看该作者
8楼
谢谢分享
韬客社区www.talkfx.co
发表于:2018-04-11 12:53只看该作者
9楼
通宝是个问题 |
韬客社区www.talkfx.co