论坛全局菜单下方 - TICKMILL 285X70论坛全局菜单下方 - ThinkMarkets285X70论坛全局菜单下方 - 荔枝返现285X70论坛全局菜单下方 -  icmarkets285X70
查看:943回复:0
草龙
注册时间2004-12-17
[MT4指标]3-Candle-Chart
楼主发表于:2014-01-01 17:21只看该作者倒序浏览
1楼 电梯直达
电梯直达
烛台模式的可视化之间的价格行为
[backcolor=rgb(235, 239, 249)]欧洲公众开放马力小时美国关闭 [/backcolor]
三烛台每天
本SBnumber,(我当然:-)首字母命名),是偏移的格局
由与它玩我们越来越令人惊讶的结果
注意,您需要输入偏移量以小时为格林威治标准时间与您的MT4经纪商的时间之间
带圆圈的数字是星期几,0 BEEING星期一
暂时没有图例 看欧洲开盘再说//+------------------------------------------------------------------+ //| 01-SB_3-Candle-Chart.mq4 | //| Serge Beaudet | //| | //+------------------------------------------------------------------+ // CANDLESTICK PATTERN TO VISUALIZE THE PRICE ACTION BETWEEN // EURO OPEN TO POWER HOURS TO US CLOSE // THREE CANDLESTICKS PER DAY // THE SBnumber, (Named after my initials of course :-) ), IS AN OFFSET TO THE PATTERN // BY PLAYING WITH IT WE ARE GETTING SURPRISING RESULTS // NOTE THAT YOU NEED TO ENTER THE OFFSET IN HOUR BETWEEN GMT AND YOUR MT4 BROKER'S TIME // THE CIRCLED NUMBERS ARE THE DAY OF THE WEEK, 0 BEEING MONDAY #property copyright "Serge Beaudet" #property link "mailto:[email protected]" #property indicator_chart_window #property indicator_buffers 1 #property indicator_color1 Green // Arrays for indicator buffers // Constants #define numberofbars 500 extern int timeoffset=2; //Offset from the time of the broker to GMT extern int SBnumber=0; // Special offset to adjust the requested periods // Variables int currentbar; double openhr; double pwrOtime,pwrOLprice, pwrOHprice, pwrOOprice, pwrOCprice; double pwrCtime,pwrCLprice, pwrCHprice, pwrCOprice, pwrCCprice; double usCtime,usCLprice, usCHprice, usCOprice, usCCprice; double pwrM1,pwrM2; double pwrHighest,pwrLowest; double eurOtime,eurOLprice, eurOHprice,eurOOprice,eurOCprice; double eurM1,eurM2; double usM1,usM2; double usHighest,usLowest; double eurHighest,eurLowest; int nopwrzone; int noeurzone; int nouszone; string currencyused; int timeoweek; int dayoweek; //+------------------------------------------------------------------+ //| Custom indicator initialization function | //+------------------------------------------------------------------+ int init() { if (Period()==60) // Indicator only work on 1 hour charts { SetIndexBuffer(0,openhr); SetIndexStyle(0,DRAW_ARROW); SetIndexArrow(0,140); SetIndexEmptyValue(0,0.0); // Title currencyused=Symbol(); ObjectCreate("currencyshown",OBJ_LABEL,0,0,0,0,0); ObjectSet("currencyshown",OBJPROP_XDISTANCE,0); ObjectSet("currencyshown",OBJPROP_YDISTANCE,3); ObjectSet("currencyshown",OBJPROP_COLOR,Black); ObjectSetText("currencyshown",currencyused,10,"Arial",Blue); ObjectCreate("title",OBJ_LABEL,0,0,0,0,0); ObjectSet("title",OBJPROP_XDISTANCE,60); ObjectSet("title",OBJPROP_YDISTANCE,3); ObjectSet("title",OBJPROP_COLOR,Black); ObjectSetText("title","3-CANDLE_CHART",10,"Arial",Black); } //---- return(0); } //+------------------------------------------------------------------+ //| Custom indicator deinitialization function | //+------------------------------------------------------------------+ int deinit() { int x; //---- x=noeurzone; while (x>0) { ObjectDelete("eurzone"+x); ObjectDelete("eurzoneH"+x); ObjectDelete("eurzoneL"+x); x--; } x=nopwrzone; while (x>0) { ObjectDelete("powerzone"+x); ObjectDelete("powerzoneH"+x); ObjectDelete("powerzoneL"+x); ObjectDelete("day1"+x); x--; } x=nouszone; while (x>0) { ObjectDelete("uszone"+x); ObjectDelete("uszoneH"+x); ObjectDelete("uszoneL"+x); x--; } ObjectDelete("title"); ObjectDelete("currencyshown"); //---- return(0); } //+------------------------------------------------------------------+ //| Custom indicator iteration function | //+------------------------------------------------------------------+ int start() { string tempstmp; if (Period()==60) // Indicator only work on 1 hour charts { currentbar=numberofbars; nopwrzone=0; noeurzone=0; nouszone=0; while (currentbar > 0) { tempstmp=TimeHour(Time[currentbar])-timeoffset+SBnumber; if (tempstmp=="-1") tempstmp="23"; if (tempstmp=="-2") tempstmp="22"; //- if (tempstmp=="8") // Opening of London { //openhr[currentbar]=Close[currentbar]; eurOtime=Time[currentbar]; eurOLprice=Low[currentbar]; eurOHprice=High[currentbar]; eurOOprice=Open[currentbar]; eurOCprice=Close[currentbar]; } if (tempstmp=="10") eurM1=Time[currentbar]; //-- if (tempstmp=="11") eurM2=Time[currentbar]; //-- //---------------------------------------------------------------------------------------------- if (tempstmp=="13") // Opening of New York { //openhr[currentbar]=Open[currentbar]; eurHighest=High[iHighest(NULL,0,MODE_HIGH,6,currentbar)]; eurLowest=Low[iLowest(NULL,0,MODE_LOW,6,currentbar)]; pwrOtime=Time[currentbar]; pwrOLprice=Low[currentbar]; pwrOHprice=High[currentbar]; pwrOOprice=Open[currentbar]; pwrOCprice=Close[currentbar]; // routine to display EUR open to POWER HOURS noeurzone=noeurzone+1; ObjectCreate("eurzone"+noeurzone, OBJ_RECTANGLE,0,eurOtime, eurOOprice,pwrOtime,pwrOCprice); if (eurOOprice>pwrOCprice) { ObjectSet("eurzone"+noeurzone,OBJPROP_COLOR,FireBrick); ObjectCreate("eurzoneH"+noeurzone, OBJ_RECTANGLE,0,eurM1, eurOOprice,eurM2,eurHighest); ObjectSet("eurzoneH"+noeurzone,OBJPROP_COLOR,Black); ObjectCreate("eurzoneL"+noeurzone, OBJ_RECTANGLE,0,eurM1, pwrOCprice,eurM2,eurLowest); ObjectSet("eurzoneL"+noeurzone,OBJPROP_COLOR,Black); } else { ObjectSet("eurzone"+noeurzone,OBJPROP_COLOR,Black); ObjectSet("eurzone"+noeurzone, OBJPROP_BACK, 0); ObjectSet("eurzone"+noeurzone, OBJPROP_WIDTH, 2); ObjectCreate("eurzoneH"+noeurzone, OBJ_RECTANGLE,0,eurM1, pwrOCprice,eurM2,eurHighest); ObjectSet("eurzoneH"+noeurzone,OBJPROP_COLOR,Black); ObjectCreate("eurzoneL"+noeurzone, OBJ_RECTANGLE,0,eurM1, eurOOprice,eurM2,eurLowest); ObjectSet("eurzoneL"+noeurzone,OBJPROP_COLOR,Black); } } //-- if (tempstmp=="14") pwrM1=Time[currentbar]; //-- if (tempstmp=="16") pwrM2=Time[currentbar]; //---------------------------------------------------------------------------------------------- if (tempstmp=="17") // Close of London { //openhr[currentbar]=Close[currentbar]; //-- pwrHighest=High[iHighest(NULL,0,MODE_HIGH,5,currentbar)]; pwrLowest=Low[iLowest(NULL,0,MODE_LOW,5,currentbar)]; pwrCtime=Time[currentbar]; pwrCLprice=Low[currentbar]; pwrCHprice=High[currentbar]; pwrCOprice=Open[currentbar]; pwrCCprice=Close[currentbar]; // Routine to display POWER HOURS open to close nopwrzone=nopwrzone+1; if (pwrOtime==0) pwrOtime=pwrCtime; ObjectCreate("powerzone"+nopwrzone, OBJ_RECTANGLE,0,pwrOtime, pwrOOprice,pwrCtime,pwrCCprice); if (pwrCCprice
TK29帖子1楼右侧xm竖版广告90-240
个性签名

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

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

本站免责声明:

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

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

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

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

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

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