Hello together,
i am trading until right here right now without any technical analysis indicators - and wanna try this in the future ...
I am googled some simple usefull metatrader indicators and need some help to create they as i want !!! I am willing to understand the easy language too - but until that i need help and hope some will show me his mt programmer skills & create me the indicators as i want ?!
I will trying to understand than the different in the metatrader editor and hope that in the next few days i will can create an much more complexe indicator than the following @ 2nd ...
OK - Let`s get further with the "Weekly_HILO_Shj" ...
I WANNA HAVE ALSO THIS INDICATOR FOR THE DAILY CHARTS !!! IT ONLY WORKS UNTIL 4H TIME-FRAME ...
Can anyone overwrite this in the metatrader editor and perhaps explain me "How To Growth It ???"
By the way this indicator is very simple and working very well !!!
Thanks ahead, best regards & have a great weekend :
i am trading until right here right now without any technical analysis indicators - and wanna try this in the future ...
I am googled some simple usefull metatrader indicators and need some help to create they as i want !!! I am willing to understand the easy language too - but until that i need help and hope some will show me his mt programmer skills & create me the indicators as i want ?!
I will trying to understand than the different in the metatrader editor and hope that in the next few days i will can create an much more complexe indicator than the following @ 2nd ...
OK - Let`s get further with the "Weekly_HILO_Shj" ...
I WANNA HAVE ALSO THIS INDICATOR FOR THE DAILY CHARTS !!! IT ONLY WORKS UNTIL 4H TIME-FRAME ...
Inserted Code
//+------------------------------------------------------------------+ //| Weekly_HILO_Shj | //| | //| http://www.metaquotes.ru | //+------------------------------------------------------------------+ #property copyright "Copyright © 2005, " #property link "http://" //---- #property indicator_chart_window #property indicator_buffers 3 #property indicator_color1 Tomato #property indicator_color2 DeepSkyBlue #property indicator_color3 LimeGreen #property indicator_width1 2 #property indicator_width2 2 //---- input parameters //---- buffers extern int space=44; double PrevWeekHiBuffer[]; double PrevWeekLoBuffer[]; double PrevWeekMidBuffer[]; int fontsize=10; double x; double PrevWeekHi, PrevWeekLo, LastWeekHi, LastWeekLo,PrevWeekMid; string Space; //+------------------------------------------------------------------+ //| Custor indicator deinitialization function | //+------------------------------------------------------------------+ int deinit() { ObjectDelete("PrevWeekHi"); ObjectDelete("PrevWeekLo"); ObjectDelete("PrevWeekMid"); return(0); } //+------------------------------------------------------------------+ //| Custom indicator initialization function | //+------------------------------------------------------------------+ int init() { string short_name; int y; //---- SetIndexStyle(0,DRAW_LINE); SetIndexStyle(1,DRAW_LINE); SetIndexStyle(2,DRAW_LINE, STYLE_DOT); SetIndexBuffer(0, PrevWeekHiBuffer); SetIndexBuffer(1, PrevWeekLoBuffer); SetIndexBuffer(2, PrevWeekMidBuffer); short_name="Prev Hi-Lo levels"; IndicatorShortName(short_name); SetIndexLabel(0, short_name); SetIndexDrawBegin(0,1); //---- for(y=0;y<=space;y++) { Space=Space+" "; } return(0); } //+------------------------------------------------------------------+ //| Custom indicator iteration function | //+------------------------------------------------------------------+ int start() { int counted_bars=IndicatorCounted(); int limit, i; if (counted_bars==0) { x=Period(); if (x>240) return(-1); ObjectCreate("PrevWeekHi", OBJ_TEXT, 0, 0, 0); ObjectSetText("PrevWeekHi", Space+"HIGH minggu lalu",fontsize,"Arial", Tomato); ObjectCreate("PrevWeekLo", OBJ_TEXT, 0, 0, 0); ObjectSetText("PrevWeekLo", Space+"LOW minggu lalu",fontsize,"Arial", DeepSkyBlue); ObjectCreate("PrevWeekMid", OBJ_TEXT, 0, 0, 0); ObjectSetText("PrevWeekMid", Space+"50% hi-low ",fontsize,"Arial", LimeGreen); } limit=(Bars-counted_bars)-1; for(i=limit; i>=0;i--) { if (High[i+1]>LastWeekHi) LastWeekHi=High[i+1]; if (Low [i+1]<LastWeekLo) LastWeekLo=Low [i+1]; if (TimeDay(Time[i])!=TimeDay(Time[i+1])) { if(TimeDayOfWeek(Time[i])==1) { PrevWeekHi =LastWeekHi; PrevWeekLo =LastWeekLo; LastWeekHi =Open[i]; LastWeekLo =Open[i]; PrevWeekMid=(PrevWeekHi + PrevWeekLo)/2; } } PrevWeekHiBuffer [i]=PrevWeekHi; PrevWeekLoBuffer [i]=PrevWeekLo; PrevWeekMidBuffer[i]=PrevWeekMid; //---- ObjectMove("PrevWeekHi" , 0, Time[i], PrevWeekHi); ObjectMove("PrevWeekLo" , 0, Time[i], PrevWeekLo); ObjectMove("PrevWeekMid", 0, Time[i], PrevWeekMid); } return(0); } //+------------------------------------------------------------------+
Can anyone overwrite this in the metatrader editor and perhaps explain me "How To Growth It ???"
By the way this indicator is very simple and working very well !!!
Thanks ahead, best regards & have a great weekend :
Attached File(s)
Weekly_HILO_Shj.mq4
4 KB
|
1,032 downloads