论坛全局菜单下方 - TICKMILL 285X70论坛全局菜单下方 - ThinkMarkets285X70论坛全局菜单下方 - 荔枝返现285X70论坛全局菜单下方 -  icmarkets285X70
查看:778回复:0
草龙
注册时间2004-12-17
[MT4指标]ADX_HDSqueeze_mtf
楼主发表于:2014-01-10 07:57只看该作者倒序浏览
1楼 电梯直达
电梯直达
看看这个图 有感觉的可以研究下这个mt4的指标 //+------------------------------------------------------------------+ //| ADX_HDSqueeze_mtf ADX.mq4 | //| Copyright 2006, Keris2112 | //|DI levelShift; +DI-(-DI)Hist; MTF keris ki www.forex-tsd.com 2007| //+------------------------------------------------------------------+ #property copyright "Copyright 2006, Keris2112" #property link "http://www.forex-tsd.com" #property indicator_separate_window #property indicator_buffers 6 #property indicator_color1 RoyalBlue #property indicator_color2 ForestGreen #property indicator_color3 Red #property indicator_color4 LimeGreen #property indicator_color5 Red #property indicator_color6 Gold #property indicator_width1 1 #property indicator_width2 2 #property indicator_width3 2 #property indicator_width5 1 #property indicator_level1 30 #property indicator_level2 20 #property indicator_level3 -20 #property indicator_levelcolor DarkSlateGray #property indicator_levelstyle 4 //#property indicator_maximum 400 //#property indicator_minimum -400 //---- input parameters /************************************************************************* PERIOD_M1 1 PERIOD_M5 5 PERIOD_M15 15 PERIOD_M30 30 PERIOD_H1 60 PERIOD_H4 240 PERIOD_D1 1440 PERIOD_W1 10080 PERIOD_MN1 43200 You must use the numeric value of the timeframe that you want to use when you set the TimeFrame' value with the indicator inputs. --------------------------------------- PRICE_CLOSE 0 Close price. PRICE_OPEN 1 Open price. PRICE_HIGH 2 High price. PRICE_LOW 3 Low price. PRICE_MEDIAN 4 Median price, (high+low)/2. PRICE_TYPICAL 5 Typical price, (high+low+close)/3. PRICE_WEIGHTED 6 Weighted close price, (high+low+close+close)/4. You must use the numeric value of the Applied Price that you want to use when you set the 'applied_price' value with the indicator inputs. **************************************************************************/ extern int TimeFrame=0; extern int ADXperiod=14; extern int DI_vertShift = 0; extern int BBsqueezArwShift=-15; extern int bolPrd=20; extern double bolDev=2.0; extern int keltPrd=20; extern double keltFactor=1.5; extern int MaxBarsToCount = 1500; //extern string note__MaMode_Price = "Price(OCHLMTF)ModeMa(SMA0,EMA1,SmmMA2,LWMA3"; extern string note_TimeFrames = "M1;5,15,30,60H1;240H4;1440D1;10080W1;43200MN|0-CurrentTF"; double ExtMapBuffer1; double ExtMapBuffer2; double ExtMapBuffer3; double ExtMapBuffer4; double ExtMapBuffer5; double arrowBuffer; double DVertShift; double diff,std,bbs; //+------------------------------------------------------------------+ //| Custom indicator initialization function | //+------------------------------------------------------------------+ int init() { //---- indicator line SetIndexEmptyValue(0,EMPTY_VALUE); SetIndexEmptyValue(1,EMPTY_VALUE); SetIndexEmptyValue(2,EMPTY_VALUE); SetIndexEmptyValue(3,EMPTY_VALUE); SetIndexEmptyValue(4,EMPTY_VALUE); SetIndexBuffer(0,ExtMapBuffer1); SetIndexBuffer(1,ExtMapBuffer2); SetIndexBuffer(2,ExtMapBuffer3); SetIndexBuffer(3,ExtMapBuffer4); SetIndexBuffer(4,ExtMapBuffer5); SetIndexStyle(0,DRAW_LINE); SetIndexStyle(1,DRAW_HISTOGRAM); SetIndexStyle(2,DRAW_HISTOGRAM); SetIndexStyle(3,DRAW_LINE); SetIndexStyle(4,DRAW_LINE); SetIndexEmptyValue(5,EMPTY_VALUE); SetIndexBuffer (5,arrowBuffer); SetIndexStyle (5,DRAW_ARROW); SetIndexArrow (5,158); //159 SetIndexLabel(0,"ADX ("+ADXperiod+")["+TimeFrame+"]"); SetIndexLabel(1,""); SetIndexLabel(2,""); SetIndexLabel(3,"ADX-DI ("+ADXperiod+")["+TimeFrame+"]"); SetIndexLabel(4,"ADX-DI ("+ADXperiod+")["+TimeFrame+"]"); SetIndexLabel(5,"BBsquise ("+ADXperiod+")["+TimeFrame+"]"); //---- name for DataWindow and indicator subwindow label switch(TimeFrame) { case 1: string TimeFrameStr ="M1"; break; case 5 : TimeFrameStr ="M5"; break; case 15 : TimeFrameStr ="M15"; break; case 30 : TimeFrameStr ="M30"; break; case 60 : TimeFrameStr ="H1"; break; case 240 : TimeFrameStr ="H4"; break; case 1440 : TimeFrameStr ="D1"; break; case 10080 : TimeFrameStr ="W1"; break; case 43200 : TimeFrameStr ="MN1"; break; default : TimeFrameStr = "TF 0"; } IndicatorShortName("ADX ("+ADXperiod+") ["+TimeFrameStr+"]"); } //---- return(0); //+------------------------------------------------------------------+ //| MTF | //+------------------------------------------------------------------+ int start() { datetime TimeArray; int i,limit,y=0,counted_bars=IndicatorCounted(); // Plot defined time frame on to current time frame ArrayCopySeries(TimeArray,MODE_TIME,Symbol(),TimeFrame); limit=Bars-counted_bars; limit=MathMax(limit,TimeFrame/Period()); limit= MathMin(limit,MaxBarsToCount); for(i=0,y=0;iPeriod()) { int PerINT=TimeFrame/Period()+1; datetime TimeArr; ArrayResize(TimeArr,PerINT); ArrayCopySeries(TimeArr,MODE_TIME,Symbol(),Period()); for(i=0;i=TimeArray[0]) { //******************************************************** Refresh buffers: buffer = buffer[0]; //******************************************************** ExtMapBuffer1=ExtMapBuffer1[0]; ExtMapBuffer2=ExtMapBuffer2[0]; ExtMapBuffer3=ExtMapBuffer3[0]; ExtMapBuffer4=ExtMapBuffer4[0]; ExtMapBuffer5=ExtMapBuffer5[0]; } } } */ //+++++++++++++++++++++++++++++++++++++++++++++ Raff return(0); } //+------------------------------------------------------------------+ADX_HDSqz_mtf.jpgADX_HDSqz_mtf.jpg
TK29帖子1楼右侧xm竖版广告90-240
个性签名

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

广告
TK30+TK31帖子一樓廣告
TK30+TK31帖子一樓廣告

本站免责声明:

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

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

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

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

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

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