论坛全局菜单下方 - TICKMILL 285X70论坛全局菜单下方 - ThinkMarkets285X70论坛全局菜单下方 - 荔枝返现285X70论坛全局菜单下方 -  icmarkets285X70
查看:2321回复:15
草龙
注册时间2004-12-17
[MT4指标]布林线变种多空指标
楼主发表于:2014-04-08 13:42只看该作者倒序浏览
1楼 电梯直达
电梯直达
主图指标,布林线变种多空指标 mt4指标类型:趋势指标 是否能用在mt4手机版上:否 是否含有未来函数:无 根据布林线的多空指示规则 来标注出多空指标 //+------------------------------------------------------------------+ //| Gimmebar.mq4 | //| See Joe Ross Trading Manual on Gimme-Bars (e.g. from the | //| library on www.trading-naked.com) | //+------------------------------------------------------------------+ #property copyright "by Shimodax, 2005" #property link "http://www.strategybuilder.com" //---- indicator settings #property indicator_chart_window #property indicator_buffers 6 #property indicator_color1 SlateBlue #property indicator_color2 SlateBlue #property indicator_color3 Crimson #property indicator_color4 SteelBlue #property indicator_color5 Crimson #property indicator_color6 SteelBlue //---- indicator parameters extern int BobaPeriod= 20; extern int BobaDeviations= 2; //---- indicator buffers double BufferBand1; double BufferBand2; double BufferSell; double BufferBuy; double BufferSellEntry; double BufferBuyEntry; //+------------------------------------------------------------------+ //| | //+------------------------------------------------------------------+ int init() { //---- 2 additional buffers are used for counting. IndicatorDigits(MarketInfo(Symbol(),MODE_DIGITS)+2); // two bollies SetIndexBuffer(0,BufferBand1); SetIndexStyle(0,DRAW_LINE); SetIndexDrawBegin(0,BobaPeriod); SetIndexBuffer(1,BufferBand2); SetIndexStyle(1,DRAW_LINE); SetIndexDrawBegin(1,BobaPeriod); // marks for gimmees SetIndexBuffer(2,BufferSell); SetIndexStyle(2,DRAW_ARROW); SetIndexDrawBegin(2,BobaPeriod); SetIndexArrow(2, 167); SetIndexEmptyValue(2, 0); SetIndexBuffer(3,BufferBuy); SetIndexStyle(3,DRAW_ARROW); SetIndexDrawBegin(3,BobaPeriod); SetIndexArrow(3, 167); SetIndexEmptyValue(3, 0); // marks for entries SetIndexBuffer(4,BufferSellEntry); SetIndexStyle(4,DRAW_ARROW); SetIndexDrawBegin(4,BobaPeriod); SetIndexArrow(4, 238); SetIndexEmptyValue(4, 0); SetIndexBuffer(5,BufferBuyEntry); SetIndexStyle(5,DRAW_ARROW); SetIndexDrawBegin(5,BobaPeriod); SetIndexArrow(5, 236); SetIndexEmptyValue(5, 0); //---- name for DataWindow and indicator subwindow label // IndicatorShortName("GimmeBar "); //---- initialization done return(0); } //+------------------------------------------------------------------+ //| Custom indicator iteration function | //+------------------------------------------------------------------+ int start() { int counted_bars= IndicatorCounted(), lastbar; if (counted_bars>0) counted_bars--; lastbar= Bars - counted_bars; GimmeeBar(0, lastbar, BufferSell, BufferBuy, BufferSellEntry, BufferBuyEntry, BufferBand1, BufferBand2, BobaPeriod, BobaDeviations); return (0); } //+------------------------------------------------------------------+ //| Mark Gimmee-Bars and mark possible entries for deals | //+------------------------------------------------------------------+ double GimmeeBar(int offset, int lastbar, double &sellbuf, double &buybuf, double &sellbuf2, double &buybuf2, double &band1buf, double&band2buf, int period, int deviation) { double band1, band2; int markerdist= 5; // distance between bars and marker dots lastbar= MathMin(Bars-period, lastbar); //---- main loop for(int i= lastbar; i>=offset; i--){ sellbuf= 0; buybuf=0; sellbuf2= 0; buybuf2=0; band1= iBands(NULL,0, period, deviation, 0, PRICE_CLOSE, MODE_UPPER, i); band2= iBands(NULL,0, period, deviation, 0, PRICE_CLOSE, MODE_LOWER, i); band1buf= band1; band2buf= band2; // 1. Prices were rising. // 2. Prices touched the upper band. // 3. The price bar closed lower than it // opened when prices were previously rising. // or vice versa if (High>band1 && LowClose) { sellbuf= High + markerdist*Point; } else if (High[i+1]>band1 && Low[i+i]High && LowClose) { sellbuf= High + markerdist*Point; } else if (Lowband2 && Open[i+1]>Close[i+1] && Openband2 && Open[i+1]>Close[i+1] && Low[i+1]band1 && OpenHigh[i+1]+1*Point) { buybuf2= High[i+1]+1*Point; } } /* if (DebugLogger) Print(TimeOffset(offset), "BG-GimmeBar ", ""); */ return (0); } //+------------------------------------------------------------------+ GimmeeBar.jpgGimmeeBar.jpg
TK29帖子1楼右侧xm竖版广告90-240
个性签名

阅尽天下指标
搬砖开始,始于2014

广告
TK30+TK31帖子一樓廣告
TK30+TK31帖子一樓廣告
wangyitang
注册时间2008-03-26
Godnessoul
注册时间2013-03-09
发表于:2014-04-19 02:52只看该作者
3楼
谢谢分享
河马史诗
注册时间2013-03-21
发表于:2014-05-18 08:23只看该作者
4楼
这玩意看起来很复杂吗
风声加色
注册时间2016-05-14
风里孤影
注册时间2014-12-17
发表于:2016-05-15 10:04只看该作者
6楼
谢谢分享
个性签名

韬客社区www.talkfx.co

广告
论坛谏言--外汇交易不应是你投资的全部,交易外汇也不应是你生活的全部
tkah
注册时间2015-10-08
发表于:2016-05-29 04:56只看该作者
7楼
lu tb
zhulinqi
注册时间2012-10-26
发表于:2016-05-31 06:48只看该作者
8楼
emoji-imageemoji-image emoji-image emoji-image emoji-image
混血王子
注册时间2016-06-07
发表于:2016-06-10 04:49只看该作者
9楼
有没有现成的,不会弄指标
混血王子
注册时间2016-06-07
发表于:2016-06-10 12:24来自移动端只看该作者
10楼
有图是最好的,赞
风声加色
注册时间2016-05-14
发表于:2016-06-20 03:13只看该作者
11楼
很不错!
qihangxx
注册时间2016-06-29
发表于:2016-06-30 03:37只看该作者
12楼
怎么制作啊
个性签名

韬客社区www.talkfx.co

广告
论坛谏言--外汇交易不应是你投资的全部,交易外汇也不应是你生活的全部
qihangxx
注册时间2016-06-29
发表于:2016-06-30 03:40只看该作者
13楼
怎么制作成指标啊
个性签名

韬客社区www.talkfx.co

广告
论坛谏言--外汇交易不应是你投资的全部,交易外汇也不应是你生活的全部
ccs
注册时间2016-04-15
ccs
注册时间2016-04-15
发表于:2016-07-18 08:48只看该作者
15楼
多谢分享
Pzxzx
注册时间2017-08-06

本站免责声明:

1、本站所有广告及宣传信息均与韬客无关,如需投资请依法自行决定是否投资、斟酌资金安全及交易亏损风险;

2、韬客是独立的、仅为投资者提供交流的平台,网友发布信息不代表韬客的观点与意思表示,所有因网友发布的信息而造成的任何法律后果、风险与责任,均与韬客无关;

3、金融交易存在极高法律风险,未必适合所有投资者,请不要轻信任何高额投资收益的诱导而贸然投资;投资保证金交易导致的损失可能超过您投入的资金和预期。请您考虑自身的投资经验及风险承担能力,进行合法、理性投资;

4、所有投资者的交易帐户应仅限本人使用,不应交由第三方操作,对于任何接受第三方喊单、操盘、理财等操作的投资和交易,由此导致的任何风险、亏损及责任由投资者个人自行承担;

5、韬客不隶属于任何券商平台,亦不受任何第三方控制,韬客不邀约客户投资任何保证金交易,不接触亦不涉及投资者的任何资金及账户信息,不代理任何交易操盘行为,不向客户推荐任何券商平台,亦不存在其他任何推荐行为。投资者应自行选择券商平台,券商平台的任何行为均与韬客无关。投资者注册及使用韬客即表示其接受和认可上述声明,并自行承担法律风险。

版权所有:韬客外汇论坛 www.talkfx.com 联络我们:[email protected]