论坛全局菜单下方 - TICKMILL 285X70论坛全局菜单下方 - ThinkMarkets285X70论坛全局菜单下方 - 荔枝返现285X70论坛全局菜单下方 -  icmarkets285X70
查看:1216回复:0
草龙
注册时间2004-12-17
[MT4指标]Dolly_Graphics_v11-GMTShift
楼主发表于:2014-03-10 09:20只看该作者倒序浏览
1楼 电梯直达
电梯直达
主图指标 mt4指标类型:震荡指标 是否能用在mt4手机版上:否 是否含有未来函数:无 //+------------------------------------------------------------------+ //| Dolly_Graphics_v11-GMTShift.mq4 | //| Copyright ? 2006, MetaQuotes Software Corp. | //| http://www.metaquotes.net | //+------------------------------------------------------------------+ #property copyright "Copyright ? 2006, MetaQuotes Software Corp." #property link "http://www.metaquotes.net" //+------------------------------------------------------------------+ //| Dolly (the famous sheep) | //| original indicator is called valasholic13 v2.5.mq4 | //| | //| and the original author is [email protected] | //| | //| mods and stuff by Linuxser for Forex-TSD | //| (there is a lot of usefull code inside here)| //|Credits: hulahula (traslation from original indonesian language) | //|ign... in collaboration with Linuxser (with mods and improvments | //+------------------------------------------------------------------+ /* Thanks to the above coders for all their work on the original Dolly Dolly Graphics 4: by cja - Comments restored to original figures but different layout, kept simple thanks to FxNorth for advise - Graphics code cleaned up now can be run on any colour background - Pivot points altered to short LINES and Labels can be shifted and LINES extended - Pivot M Levels added and Labels can be shifted and LINES extended - Dolly Sell Buy Target Labels can be shifted - Daily Average Range added above & below Dolly Levels and DAR Labels can be shifted Dolly Graphics 5 - Dolly coloured panels & Daily Average Range can now be either panels or lines or a combo of both - Daily Average Panels can now be turned on/off - Dolly trading Comments reset to original layout with larger type & can now be turned on/off - Pivot points and M pivot levels can now be selected individually - Added in Back TEST simply set to # of days and scroll back to the 1st graphic in the line Dolly Graphics 6 - Central Pivot Point and Main Pivots now automatically show in BackTEST if Pivots on. Dolly Graphics 8 - Fib Levels added with option to take data back to previous days, Fib Levels on/off & TEXT on/off, - move Fib TEXT & Extend line length if required. - Revised code and removed excess objects to increase speed. - Fib Display able to be Short (Cover only the Graphics) or long extend to previous Day or more. - Adjustment of Dolly & Daily Average colours in inputs - Adjustment of BUY/SELL Levels in inputs - Daily Average labels delete when Daily Graphics are removed. Dolly Graphics 9 - Extra Fib levels added to extend range if previous day was Range Bound. - Target 2 BUY & SELL have altered the code for the take profit so the Graphics now match the Text - & when the level figure is altered the Text now alters to reflect the change, the old code was target 1 plus - or minus 10. Dolly Graphics 10 - NONE of the ORIGINAL CODE is now being used - Rewrote the original Dolly Code as I think that was where the REFRESH UPDATE issue problem existed - Rewrote the Pivots & M Pivot levels to speed up the indicator. - All Pivots now Backtest if Pivots & M Pivots turned on - Added a daily High/Low that is turned off by default - when on this feature will Backtest. - Added Daily OPEN line Default is off, useful for the days that price starts above or below the Targets - can be used as a dynamic Pivot. Dolly Graphics #10 - by hymns - Add Daily Change Value - Tweak for using Open Graphics Fixed TimeShift - by FiFtHeLeMeNt - Fixed Pivots and added GMTshift , but backtest can not be used anymore , I think accurate data for today trade is more important than having backtest feature - Fixed FiboLines and Graphics to be compatible with GMTshift - Fixed some bugs causing errors Dolly Graphics #11 - by cja & thanks to FiFtHeLeMeNt for the GMT shift code - Added a pop up window alert when price approaches the Dolly levels - Added an Auto Signals feature which removes the Comments and replaces them with an Auto ObjectsDeleteAll(0,OBJ_TEXT); signal system */ #property copyright "" #property link " Dolly Graphics cja" //---- #property indicator_chart_window #define IND_NAME "Dolly Graphics #11 GMT Shift" //---- extern int GMTshift=0; extern bool Using_OpenGraphics=true; extern bool Dolly_GRAPHICS=true; extern bool Alert_ON=false; extern bool Auto_Signals=true; extern bool Show_DollyCOMMENTS=true; extern color BUY_Color_2=C'0,0,150'; extern color BUY_Color_1=C'0,0,100'; extern color SELL_Color_1=C'120,0,0'; extern color SELL_Color_2=C'180,0,0'; extern int BUY_Target_2 =50; extern int BUY_Target_1 =40; extern int BUY_Area =20; extern int SELL_Area =20; extern int SELL_Target_1 =40; extern int SELL_Target_2 =50; extern int SHIFT_DollyText=0; //---- extern bool Show_DailyAverageGRAPHICS=true; extern bool Daily_AverageGRAPHICS=true; extern color DAILY_Av_UP_Color_150=C'0,110,255'; extern color DAILY_Av_UP_Color_125=C'0,70,255'; extern color DAILY_Av_UP_Color_100=C'20,20,255'; extern color DAILY_Av_UP_Color_75=C'0,0,210'; extern color DAILY_Av_DN_Color_75=C'220,0,0'; extern color DAILY_Av_DN_Color_100=C'255,0,10'; extern color DAILY_Av_DN_Color_125=C'255,70,0'; extern color DAILY_Av_DN_Color_150=C'255,110,0'; extern int SHIFT_DailyAverageText=28; //---- extern bool Show_PivotLines=false; extern bool Show_M_PivotLines=false; extern int SHIFT_PivotPointText=0; extern int PivotPoint_ExtendLINE=0; //---- extern bool Show_FibLines=false; extern bool Show_EXTRAFibLines=false; extern int SHIFT_FibText=65; extern int FIB_ExtendDISPLAY=1; //---- extern bool Show_Daily_HI_LOW=false; extern int SHIFT_HI_LOW_TEXT=50; //---- extern bool Show_Daily_OPEN=false; extern int SHIFT_Daily_OPEN_TEXT=0; //Daily OPEN #define DO "DO" //Daily HI/LOW #define DHI "DHI" #define DLO "DLO" #define DDHI "DDHI" #define DDLO "DDLO" //Dolly Levels #define DollyBUY3 "DollyBUY3" #define DollyBUY2 "DollyBUY2" #define DollyBUY1 "DollyBUY1" #define DollySELL1 "DollySELL1" #define DollySELL2 "DollySELL2" #define DollySELL3 "DollySELL3" //Daily Average Levels #define AvBUY150 "AvBUY150" #define AvBUY125 "AvBUY125" #define AvBUY100 "AvBUY100" #define AvBUY75 "AvBUY75" #define AvSELL75 "AvSELL75" #define AvSELL100 "AvSELL100" #define AvSELL125 "AvSELL125" #define AvSELL150 "AvSELL150" //Pivot Levels #define P1 "P1" #define PP1 "PP1" #define RR3 "RR3" #define RR2 "RR2" #define RR1 "RR1" #define SS1 "SS1" #define SS2 "SS2" #define SS3 "SS3" //---- #define MM1 "MM1" #define MM2 "MM2" #define MM3 "MM3" #define MM4 "MM4" #define MM5 "MM5" #define MM0 "MM0" //---- #define PPP1 "PPP1" #define RRR3 "RRR3" #define RRR2 "RRR2" #define RRR1 "RRR1" #define SSS1 "SSS1" #define SSS2 "SSS2" #define SSS3 "SSS3" //FIB Levels #define FibP100 "FibP100" #define FibP618 "FibP618" #define FibP50 "FibP50" #define FibP382 "FibP382" #define Fib100 "Fib100" #define Fib764 "Fib764" #define Fib618 "Fib618" #define Fib50 "Fib50" #define Fib382 "Fib382" #define Fib236 "Fib236" #define Fib0 "Fib0" #define FibM100 "FibM100" #define FibM618 "FibM618" #define FibM50 "FibM50" #define FibM382 "FibM382" #define FibP236 "FibP236" #define FibP764 "FibP764" #define FibM236 "FibM236" #define FibM764 "FibM764" #define FibM150 "FibM150" #define FibP150 "FibP150" #define FibM200 "FibM200" #define FibP200 "FibP200" #define FibM250 "FibM250" #define FibP250 "FibP250" #define FibM300 "FibM300" #define FibP300 "FibP300" //---- double P, S1, B1, S2, B2, S3, B3; double day_high; double day_low; double yesterday_open; double today_open; double cur_day; double prev_day; double yesterday_high=0; double yesterday_low=0; double yesterday_close=0; //+------------------------------------------------------------------+ //| Custor indicator deinitialization function | //+------------------------------------------------------------------+ int deinit() { ObjectsDeleteAll(0,OBJ_TEXT); ObjectsDeleteAll(0,OBJ_LABEL); ObjectsDeleteAll(0,OBJ_RECTANGLE); ObjectsDeleteAll(0,OBJ_TRENDBYANGLE); ObjectDelete("Pivot"); ObjectDelete("Open"); ObjectDelete("Dolly"); ObjectDelete("Dolly1"); ObjectDelete("Dolly2"); ObjectDelete("Dolly3"); ObjectDelete("Dolly4"); ObjectDelete("Dolly5"); ObjectDelete("Dolly6"); ObjectDelete("Dolly7"); ObjectDelete("Dolly8"); ObjectDelete("Dolly9"); ObjectDelete("Dolly10"); ObjectDelete("Dolly11"); ObjectDelete("Dolly12"); ObjectDelete("Dolly13"); ObjectDelete("Dolly14"); ObjectDelete("Dolly15"); ObjectDelete("Dolly16"); ObjectDelete("Dolly17"); ObjectDelete("Dolly18"); ObjectDelete("Dolly19"); ObjectDelete("Dolly20"); ObjectDelete("Dolly21"); ObjectDelete("Dolly22"); ObjectDelete("Dolly23"); ObjectDelete("Dolly24"); ObjectDelete("Dolly25"); ObjectDelete("Dolly26"); ObjectDelete("Dolly27"); ObjectDelete("Dolly28"); ObjectDelete("Dolly29"); ObjectDelete("Dolly30"); ObjectDelete("Dolly31"); ObjectDelete("Dolly32"); ObjectDelete("Dolly33"); ObjectDelete("Dolly34"); ObjectDelete("Dolly35"); ObjectDelete("Dolly36"); ObjectDelete("Dolly37"); ObjectDelete("Dolly38"); ObjectDelete("Dolly39"); ObjectDelete("Dolly40"); ObjectDelete("Dolly41"); ObjectDelete("Dolly42"); ObjectDelete("Dolly43"); ObjectDelete("Dolly44"); ObjectDelete("Dolly45"); ObjectDelete("Dolly46"); ObjectDelete("Dolly47"); ObjectDelete("Dolly48"); ObjectDelete("Dolly49"); ObjectDelete("Dolly50"); ObjectDelete("Dolly51"); //---- return(0); } //+------------------------------------------------------------------+ //| Custom indicator initialization function | //+------------------------------------------------------------------+ int init() { //---- name for DataWindow and indicator subwindow label IndicatorShortName(IND_NAME); return(0); } //+------------------------------------------------------------------+ //| Custom indicator iteration function | //+------------------------------------------------------------------+ int start() { int counted_bars=IndicatorCounted(); CreateP(); } //+------------------------------------------------------------------+ //| | //+------------------------------------------------------------------+ void CreateP() { ObjectsDeleteAll(0,OBJ_TRENDBYANGLE); DeleteCreatePivots1(); CreateDL(); } //+------------------------------------------------------------------+ //| | //+------------------------------------------------------------------+ void DeleteCreatePivots1() { ObjectDelete(P1); ObjectDelete(DHI); ObjectDelete(DLO); ObjectDelete(DO); } //+------------------------------------------------------------------+ //| | //+------------------------------------------------------------------+ void CreateDL() { ObjectsDeleteAll(0,OBJ_RECTANGLE); DeleteDollyGraphics(); CreateAL(); } //+------------------------------------------------------------------+ //| | //+------------------------------------------------------------------+ void DeleteDollyGraphics() { ObjectDelete(DollyBUY3); ObjectDelete(DollyBUY2); ObjectDelete(DollyBUY1); ObjectDelete(DollySELL1); ObjectDelete(DollySELL2); ObjectDelete(DollySELL3); } //+------------------------------------------------------------------+ //| | //+------------------------------------------------------------------+ void CreateAL() { ObjectsDeleteAll(0,OBJ_RECTANGLE); DeleteAvGraphics(); CreatePP(); } //+------------------------------------------------------------------+ //| | //+------------------------------------------------------------------+ void DeleteAvGraphics() { ObjectDelete (AvBUY150); ObjectDelete (AvBUY125); ObjectDelete (AvBUY100); ObjectDelete (AvBUY75); ObjectDelete (AvSELL75); ObjectDelete (AvSELL100); ObjectDelete (AvSELL125); ObjectDelete (AvSELL150); } //+------------------------------------------------------------------+ //| | //+------------------------------------------------------------------+ void CreatePP() { ObjectsDeleteAll(0,OBJ_TRENDBYANGLE); DeleteCreatePivots(); CreateFIB(); } //+------------------------------------------------------------------+ //| | //+------------------------------------------------------------------+ void DeleteCreatePivots() { ObjectDelete(PP1); ObjectDelete(RR3); ObjectDelete(RR2); ObjectDelete(RR1); ObjectDelete(SS1); ObjectDelete(SS2); ObjectDelete(SS3); ObjectDelete(P1); ObjectDelete(MM1); ObjectDelete(MM2); ObjectDelete(MM3); ObjectDelete(MM4); ObjectDelete(MM5); ObjectDelete(MM0); ObjectDelete(DDHI); ObjectDelete(DDLO); } //+------------------------------------------------------------------+ //| | //+------------------------------------------------------------------+ void CreatePivots1(string Pivots1, double start, double end,double w, double s,color clr) { ObjectCreate(Pivots1, OBJ_TRENDBYANGLE, 0, iTime(NULL,1440,0)+GMTshift*3600, start, Time[0],w,s, end); ObjectSet(Pivots1, OBJPROP_COLOR, clr); ObjectSet(Pivots1,OBJPROP_RAY,false); ObjectSet(Pivots1,OBJPROP_BACK,true); ObjectSet(Pivots1,OBJPROP_WIDTH,w); ObjectSet(Pivots1,OBJPROP_STYLE,s); } //+------------------------------------------------------------------+ //| | //+------------------------------------------------------------------+ void CreateDollyGraphics(string Dolly, double start, double end, color clr) { ObjectCreate(Dolly, OBJ_RECTANGLE, 0, iTime(NULL,1440,0)+GMTshift*3600, start, Time[0], end); ObjectSet(Dolly, OBJPROP_COLOR, clr); ObjectSet(Dolly,OBJPROP_BACK,Dolly_GRAPHICS); ObjectSet(Dolly,OBJPROP_WIDTH,2); ObjectSet(Dolly,OBJPROP_STYLE,0); } //+------------------------------------------------------------------+ //| | //+------------------------------------------------------------------+ void CreateAvGraphics(string DailyAv, double start, double end, color clr) { ObjectCreate(DailyAv, OBJ_RECTANGLE, 0, iTime(NULL,1440,0)+GMTshift*3600, start, Time[0], end); ObjectSet(DailyAv, OBJPROP_COLOR, clr); ObjectSet(DailyAv,OBJPROP_BACK,Daily_AverageGRAPHICS); ObjectSet(DailyAv,OBJPROP_WIDTH,0); ObjectSet(DailyAv,OBJPROP_STYLE,0); } //+------------------------------------------------------------------+ //| | //+------------------------------------------------------------------+ void CreatePivots(string Pivots, double start, double end,double w, double s,color clr) { ObjectCreate(Pivots, OBJ_TRENDBYANGLE, 0, iTime(NULL,1440,PivotPoint_ExtendLINE+0), start, Time[0],w,s, end); ObjectSet(Pivots, OBJPROP_COLOR, clr); ObjectSet(Pivots,OBJPROP_RAY,false); ObjectSet(Pivots,OBJPROP_WIDTH,w); ObjectSet(Pivots,OBJPROP_STYLE,s); } //+------------------------------------------------------------------+ //| | //+------------------------------------------------------------------+ void CreateFibs(string FibLevels, double start, double end,double w, double s,color clr) { ObjectCreate(FibLevels, OBJ_TRENDBYANGLE, 0, iTime(NULL,1440,FIB_ExtendDISPLAY), start, Time[0],w,s, end); ObjectSet(FibLevels, OBJPROP_COLOR, clr); ObjectSet(FibLevels,OBJPROP_RAY,false); ObjectSet(FibLevels,OBJPROP_WIDTH,w); ObjectSet(FibLevels,OBJPROP_STYLE,s); } //+------------------------------------------------------------------+ //| | //+------------------------------------------------------------------+ void DeleteCreateFibs() { ObjectDelete(Fib100); ObjectDelete(Fib764); ObjectDelete(Fib618); ObjectDelete(Fib50); ObjectDelete(Fib236); ObjectDelete(Fib0); ObjectDelete(Fib382); ObjectDelete(FibP100); ObjectDelete(FibP618); ObjectDelete(FibP50); ObjectDelete(FibP382); ObjectDelete(FibM100); ObjectDelete(FibM618); ObjectDelete(FibM50); ObjectDelete(FibM382); ObjectDelete(FibP236); ObjectDelete(FibM236); ObjectDelete(FibP764); ObjectDelete(FibM764); ObjectDelete(FibP150); ObjectDelete(FibM150); ObjectDelete(FibP200); ObjectDelete(FibM200); ObjectDelete(FibP250); ObjectDelete(FibM250); ObjectDelete(FibP300); ObjectDelete(FibM300); } //+------------------------------------------------------------------+ //| | //+------------------------------------------------------------------+ void CreateFIB() { ObjectsDeleteAll(0,OBJ_TRENDBYANGLE); DeleteCreateFibs(); //---- Get new daily prices & calculate pivots day_high=0; day_low=0; yesterday_open=0; today_open=0; cur_day=0; prev_day=0; //---- int cnt=720; while(cnt!= 0) { if (TimeDayOfWeek(Time[cnt])==0) { cur_day=prev_day; } else { cur_day=TimeDay(Time[cnt]-(GMTshift*3600)); } if (prev_day!=cur_day) { yesterday_close=Close[cnt+1]; today_open=Open[cnt]; yesterday_high=day_high; yesterday_low=day_low; day_high=High[cnt]; day_low =Low[cnt]; prev_day=cur_day; } if (High[cnt]>day_high) { day_high=High[cnt]; } if (Low[cnt](B1-2*Point)&&Ask<(B1+2*Point)){ Alert(Symbol()," M",Period()," : DOLLY : BUY AREA @ "+(DoubleToStr (B1,Digits))+"");} if(Bid<(S1+2*Point)&&Bid>(S1-2*Point)){ Alert(Symbol()," M",Period()," : DOLLY : SELL AREA @ "+(DoubleToStr (S1,Digits))+"" );} if(Ask>(B2-2*Point)&&Ask<(B2+2*Point)){ Alert(Symbol()," M",Period()," : DOLLY : BUY TARGET #1 @ "+(DoubleToStr (B2,Digits))+"" );} if(Bid<(S2+2*Point)&&Bid>(S2-2*Point)){ Alert(Symbol()," M",Period()," : DOLLY : SELL TARGET #1 @ "+(DoubleToStr (S2,Digits))+"" );} if(Ask>(B3-2*Point)&&Ask<(B3+2*Point)){ Alert(Symbol()," M",Period()," : DOLLY : BUY TARGET #2 @ "+(DoubleToStr (B3,Digits))+"" );} if(Bid<(S3+2*Point)&&Bid>(S3-2*Point)){ Alert(Symbol()," M",Period()," : DOLLY : SELL TARGET #2 @ "+(DoubleToStr (S3,Digits))+"" );} } string Signal="",Signal2=""; color Dolly_col,Dolly_col2; if(Show_DollyCOMMENTS==true ) { if(Auto_Signals==true ) { if (Using_OpenGraphics==true) { Signal="Currently Signals Pending ................................."; Dolly_col= C'Crimson'; if(Ask>(B1-3*Point)&&Ask<(B1+3*Point)){Signal="OPEN + ["+BUY_Area+"] @ "+DoubleToStr(B1,Digits)+"" +" - TP @ "+DoubleToStr(B1+20*Point,Digits)+"" +" - SL @ "+DoubleToStr(B1-40*Point,Digits)+""; Dolly_col=C'0,250,250'; } if(Ask>(B2-3*Point)&&Ask<(B2+3*Point)){Signal="BUY Stop : OPEN + ["+BUY_Target_1+"] @ "+DoubleToStr(B2,Digits)+"" +" - TP @ "+DoubleToStr(B2+10*Point,Digits)+"" +" - SL @ "+DoubleToStr(B2-20*Point,Digits)+""; Dolly_col= C'0,250,250'; } if(Ask>(B3-3*Point)&&Ask<(B3+3*Point)){Signal="BUY Stop : OPEN + ["+BUY_Target_2 +"] @ "+DoubleToStr(B3,Digits)+"" +" - TP @ "+DoubleToStr(B3+10*Point,Digits)+"" +" - SL @ "+DoubleToStr(B3-20*Point,Digits)+""; Dolly_col =C'0,250,250' ; } if(Ask>(AvUP100-3*Point)&&Ask<(AvUP100+3*Point)){Signal="Caution approaching Daily Average Range @ "+DoubleToStr(AvUP100,Digits)+""; Dolly_col=YellowGreen; } if(Bid>(AvDN100+3*Point)&&Bid<(AvDN100-3*Point)){Signal="Caution approaching Daily Average Range @ "+DoubleToStr(AvDN100,Digits)+""; Dolly_col=YellowGreen; } if(Bid<(S1+3*Point)&&Bid>(S1-3*Point)){Signal="OPEN - ["+SELL_Area+"] @ "+DoubleToStr(S1,Digits)+"" +" - TP @ "+DoubleToStr(S1-20*Point,Digits)+"" +" - SL @ "+DoubleToStr(S1+40*Point,Digits)+""; Dolly_col= C'250,150,0'; } if(Bid<(S2+3*Point)&&Bid>(S2-3*Point)){Signal="SELL Stop : OPEN - ["+SELL_Target_1+"] @ "+DoubleToStr(S2,Digits)+"" +" - TP @ "+DoubleToStr(S2-10*Point,Digits)+"" +" - SL @ "+DoubleToStr(S2+20*Point,Digits)+""; Dolly_col= C'250,150,0'; } if(Bid<(S3+3*Point)&&Bid>(S3-3*Point)){Signal="SELL Stop : OPEN - ["+SELL_Target_2+"] @ "+DoubleToStr(S3,Digits)+"" +" - TP @ "+DoubleToStr(S3-10*Point,Digits)+"" +" - SL @ "+DoubleToStr(S3+20*Point,Digits)+""; Dolly_col=C'250,150,0'; } if(Bid<(P+3*Point)&&Bid>(P-3*Point)){Signal="Caution possible reversal PIVOT @ "+DoubleToStr(P,Digits)+""; Dolly_col=White; } if(Bid<(OPEN+2*Point)&&Bid>(OPEN-2*Point)){Signal="Caution possible reversal OPEN @ "+DoubleToStr(OPEN,Digits)+""; Dolly_col=White; } if((Bid>S1)&& (BidS2)){Signal2="Price Currently in SELL ZONE #1"; Dolly_col2= C'250,50,0'; } if((Bid<=S2)&& (Bid>S3)){Signal2="Price Currently in SELL ZONE #2"; Dolly_col2= C'250,90,0'; } if((Bid>=B1)&& (Bid=B2)&& (Bid=B3)&& (BidAvDN100)){Signal2="Price Currently Between SELL ZONE #2 & 100% D/AV"; Dolly_col2= C'220,250,0';// } } if (Using_OpenGraphics==false) { Signal="Currently Signals Pending ................................."; Dolly_col= C'250,250,0'; if(Ask>(B1-3*Point)&&Ask<(B1+3*Point)){Signal="PIVOT + ["+BUY_Area+"] @ "+DoubleToStr(B1,Digits)+"" +" - TP @ "+DoubleToStr(B1+20*Point,Digits)+"" +" - SL @ "+DoubleToStr(B1-40*Point,Digits)+""; Dolly_col=C'0,250,250'; } if(Ask>(B2-3*Point)&&Ask<(B2+3*Point)){Signal="BUY Stop : PIVOT + ["+BUY_Target_1+"] @ "+DoubleToStr(B2,Digits)+"" +" - TP @ "+DoubleToStr(B2+10*Point,Digits)+"" +" - SL @ "+DoubleToStr(B2-20*Point,Digits)+""; Dolly_col= C'0,250,250'; } if(Ask>(B3-3*Point)&&Ask<(B3+3*Point)){Signal="BUY Stop : PIVOT + ["+BUY_Target_2 +"] @ "+DoubleToStr(B3,Digits)+"" +" - TP @ "+DoubleToStr(B3+10*Point,Digits)+"" +" - SL @ "+DoubleToStr(B3-20*Point,Digits)+""; Dolly_col =C'0,250,250' ; } if(Ask>(AvUP100-3*Point)&&Ask<(AvUP100+3*Point)){Signal="Caution approaching Daily Average Range @ "+DoubleToStr(AvUP100,Digits)+""; Dolly_col=YellowGreen; } if(Bid>(AvDN100+3*Point)&&Bid<(AvDN100-3*Point)){Signal="Caution approaching Daily Average Range @ "+DoubleToStr(AvDN100,Digits)+""; Dolly_col=YellowGreen; } if(Bid<(S1+3*Point)&&Bid>(S1-3*Point)){Signal="PIVOT - ["+SELL_Area+"] @ "+DoubleToStr(S1,Digits)+"" +" - TP @ "+DoubleToStr(S1-20*Point,Digits)+"" +" - SL @ "+DoubleToStr(S1+40*Point,Digits)+""; Dolly_col=C'250,150,0'; } if(Bid<(S2+3*Point)&&Bid>(S2-3*Point)){Signal="SELL Stop : PIVOT - ["+SELL_Target_1+"] @ "+DoubleToStr(S2,Digits)+"" +" - TP @ "+DoubleToStr(S2-10*Point,Digits)+"" +" - SL @ "+DoubleToStr(S2+20*Point,Digits)+""; Dolly_col= C'250,150,0'; } if(Bid<(S3+3*Point)&&Bid>(S3-3*Point)){Signal="SELL Stop : PIVOT - ["+SELL_Target_2+"] @ "+DoubleToStr(S3,Digits)+"" +" - TP @ "+DoubleToStr(S3-10*Point,Digits)+"" +" - SL @ "+DoubleToStr(S3+20*Point,Digits)+""; Dolly_col=C'250,150,0'; } if(Bid<(P+3*Point)&&Bid>(P-3*Point)){Signal="Caution possible reversal PIVOT @ "+DoubleToStr(P,Digits)+""; Dolly_col=White; } if(Bid<(OPEN+2*Point)&&Bid>(OPEN-2*Point)){Signal="Caution possible reversal OPEN @ "+DoubleToStr(OPEN,Digits)+""; Dolly_col=White; } if((Bid>S1)&& (BidS2)){Signal2="Price Currently in SELL ZONE #1"; Dolly_col2= C'250,50,0'; } if((Bid<=S2)&& (Bid>S3)){Signal2="Price Currently in SELL ZONE #2"; Dolly_col2= C'250,90,0'; } if((Bid>=B1)&& (Bid=B2)&& (Bid=B3)&& (BidAvDN100)){Signal2="Price Currently Between SELL ZONE #2 & 100% D/AV"; Dolly_col2= C'220,250,0';// } } //{Signal = "Waiting..."; col = Orange;} ObjectCreate("Signal", OBJ_LABEL, 0, 0, 0); ObjectSetText("Signal", Signal, 11,"Arial Bold", Dolly_col); ObjectSet("Signal", OBJPROP_CORNER, 0); ObjectSet("Signal", OBJPROP_XDISTANCE, 20); ObjectSet("Signal", OBJPROP_YDISTANCE, 65); //---- ObjectCreate("Signal2", OBJ_LABEL, 0, 0, 0); ObjectSetText("Signal2", Signal2, 11,"Arial Bold", Dolly_col2); ObjectSet("Signal2", OBJPROP_CORNER, 0); ObjectSet("Signal2", OBJPROP_XDISTANCE, 20); ObjectSet("Signal2", OBJPROP_YDISTANCE, 85); // Signal = "Currently Signals Pending ................................."; col = Yellow; ObjectCreate("Signal1", OBJ_LABEL, 0, 0, 0); ObjectSetText("Signal1","Signal Auto Display", 9, "Arial", Silver); ObjectSet("Signal1", OBJPROP_CORNER, 4); ObjectSet("Signal1", OBJPROP_XDISTANCE, 20); ObjectSet("Signal1", OBJPROP_YDISTANCE, 47); } } // Dolly Colored Levels CreateDollyGraphics(DollyBUY3, B3, B3, C'0,0,210' ); CreateDollyGraphics(DollyBUY2, B2, B3,BUY_Color_2); //C'0,0,150' CreateDollyGraphics(DollyBUY1, B1, B2,BUY_Color_1 ); //C'0,0,100' CreateDollyGraphics(DollySELL1, S1, S2,SELL_Color_1 ); //C'120,0,0' CreateDollyGraphics(DollySELL2, S2, S3,SELL_Color_2 ); //C'180,0,0' CreateDollyGraphics(DollySELL3, S3, S3, C'230,0,0'); //Daily Average Colored Levels if (Show_DailyAverageGRAPHICS==true) { CreateAvGraphics(AvBUY150,AvUP150,AvUP125, DAILY_Av_UP_Color_150 ); // C'0,110,255' CreateAvGraphics(AvBUY125,AvUP125,AvUP100, DAILY_Av_UP_Color_125); //C'0,70,255' CreateAvGraphics(AvBUY100,AvUP100,AvUP75,DAILY_Av_UP_Color_100); //C'20,20,255' CreateAvGraphics(AvBUY75,AvUP75,B3,DAILY_Av_UP_Color_75 ); //C'0,0,210' CreateAvGraphics(AvSELL75,AvDN75,S3,DAILY_Av_DN_Color_75 ); //C'220,0,0' CreateAvGraphics(AvSELL100,AvDN100,AvDN75,DAILY_Av_DN_Color_100); // C'255,0,0' CreateAvGraphics(AvSELL125,AvDN100,AvDN125,DAILY_Av_DN_Color_125); //C'255,70,0' CreateAvGraphics(AvSELL150,AvDN125,AvDN150,DAILY_Av_DN_Color_150); // C'255,110,0' } //Create Pivot Line CreatePivots1(P1,P,P,2,0, DimGray); //Show Pivot Support & Resistance Lines if (Show_PivotLines==true) { CreatePivots(PP1,P,P,2,1, Gray); CreatePivots(RR3,r3,r3,1,0, Gray); CreatePivots(RR2,r2,r2,1,0, Gray); CreatePivots(RR1,r1,r1,1,0, Gray); CreatePivots(SS1,s1,s1,1,0, Gray); CreatePivots(SS2,s2,s2,1,0, Gray); CreatePivots(SS3,s3,s3,1,0, Gray); } //Show Middle Pivot Lines if (Show_M_PivotLines==true) { CreatePivots(MM5,m5,m5,1,2, Gray); CreatePivots(MM4,m4,m4,1,2, Gray); CreatePivots(MM3,m3,m3,1,2, Gray); CreatePivots(MM2,m2,m2,1,2, Gray); CreatePivots(MM1,m1,m1,1,2, Gray); CreatePivots(MM0,m0,m0,1,2, Gray); } //Show Fibo Lines if (Show_FibLines==true) { CreateFibs(FibP100, FIBP100, FIBP100,1,0,Green ); CreateFibs(FibP764, FIBP764, FIBP764,1,0, C'0,53,0' ); CreateFibs(FibP618, FIBP618, FIBP618,1,0, Green); CreateFibs(FibP50, FIBP50, FIBP50,1,0, C'0,53,0' ); CreateFibs(FibP382, FIBP382, FIBP382,1,0, Green ); CreateFibs(FibP236, FIBP236, FIBP236,1,0, C'0,53,0' ); CreateFibs(Fib100, FIB100, FIB100,1,0, C'0,200,0'); CreateFibs(Fib764, FIB764, FIB764,1,0, C'0,53,0' ); CreateFibs(Fib618, FIB618, FIB618,1,0, Green ); CreateFibs(Fib50, FIB50, FIB50,1,0, C'0,53,0' ); CreateFibs(Fib382, FIB382, FIB382,1,0, Green ); CreateFibs(Fib236, FIB236, FIB236,1,0, C'0,53,0' ); CreateFibs(Fib0, FIB0, FIB0,1,0, C'0,200,0' ); CreateFibs(FibM236, FIBM236, FIBM236,1,0, C'0,53,0' ); CreateFibs(FibM382, FIBM382, FIBM382,1,0, Green ); CreateFibs(FibM50, FIBM50, FIBM50,1,0, C'0,53,0' ); CreateFibs(FibM618, FIBM618, FIBM618,1,0, Green ); CreateFibs(FibM764, FIBM764, FIBM764,1,0,C'0,53,0'); CreateFibs(FibM100, FIBM100, FIBM100,1,0, Green ); } //Show Extra Fibo Lines if (Show_EXTRAFibLines==true) { CreateFibs(FibP300, FIBP300, FIBP300,1,0, Green ); CreateFibs(FibP250, FIBP250, FIBP250,1,0, Green ); CreateFibs(FibP200, FIBP200, FIBP200,1,0, Green ); CreateFibs(FibP150, FIBP150, FIBP150,1,0, Green ); //---- CreateFibs(FibM150, FIBM150, FIBM150,1,0, Green ); CreateFibs(FibM200, FIBM200, FIBM200,1,0, Green ); CreateFibs(FibM250, FIBM250, FIBM250,1,0, Green ); CreateFibs(FibM300, FIBM300, FIBM300,1,0, Green ); } //Show Daily HI-LOW if (Show_Daily_HI_LOW==true) { CreatePivots1(DHI,HI3,HI3,2,0, Turquoise); CreatePivots1(DLO,LOW3,LOW3,2,0, Turquoise); CreatePivots(DDHI,HI3,HI3,2,0, Turquoise); CreatePivots(DDLO,LOW3,LOW3,2,0, Turquoise); } //Show Daily Open if (Show_Daily_OPEN==true || Using_OpenGraphics==true) //Tweak for Open Graphics - hymns { CreatePivots1(DO,OPEN,OPEN,2,0, YellowGreen); } //BuyDolly_Graphics_v11-GMTShift.jpgDolly_Graphics_v11-GMTShift.jpg
TK29帖子1楼右侧xm竖版广告90-240
个性签名

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

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

本站免责声明:

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

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

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

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

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

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