Is it possible to modify this OverlayChart indicator so it displays with Heiken Ashi and/or Synergy APB candles and still keep the "mirroring" option?
Attached File(s)
OverLayChart.mq4
9 KB
|
463 downloads
I will code your pivot EAs for no charge 24 replies
I will code your scalping EAs for no charge 163 replies
Oanda MT4 - Indicators and EAs not showing 2 replies
EAs and indicators relating to moutaki... 22 replies
InterbankFX has loaded its MT4 platform with custom EAs, indicators and scripts 1 reply
Dislikedyou could use the forumsearch or go to the original thread: http://www.stevehopwoodforex.com/php....php?f=21&t=64Ignored
Disliked{quote} Dear Fxdaytrader,(...) Can you please have a look and help me to correct the same.Ignored
DislikedHey Guys, i want to learn and improve my MQL4 skills. I think the best way to do this is to practice. Unfortunately sometimes I don`t have any nice idea which i can implement in a Expert Advisor / Indicator. So if any of you is interested, please post in this forum your ideas and i will try to implement it into mql4. AndiIgnored
QuoteDisliked//+------------------------------------------------------------------+
//| Period Seperator.mq4 |
//| [email protected] |
//+------------------------------------------------------------------+
#property link "[email protected]"//edited by trendchaser
#property indicator_chart_window
extern int tf=60;
extern int start_minute=0;
extern int interval=15;
extern color line_color=Red;
int interval2=0;
extern string inputs="15-30-60-240-1440-10080-43200";
extern string inputs2="one year is 518400";
extern string inputs3="set tf to 0 to use interval";
extern string inputs4="interval only works under 60 minutes";
int iMinute1=00; // I use 12 as it corresponds with 8am EST, when the metals get active.
int iMinute2=00;
int iMinute3=00;
int iMinute4=00;
int iSecond=00;
int x=0;
double minutes = 0;
int init()
{
interval2=start_minute;
}
int deinit()
{
for(int z=1;z<=x;z++)
{
ObjectDelete("Time" + z);
}
}
int start()
{
int iIndicatorCounted=IndicatorCounted();
if(iIndicatorCounted<0)
{
return(-1);
}
// int iLimit=Bars-iIndicatorCounted;
int iLimit=1000;
for(int i=iLimit;i>=0;i--)
{
if(tf==15&&TimeMinute(Time[i])==0)
{
x++;
ObjectCreate("Time" + x,OBJ_VLINE,0,Time[i]+tf*60,High[i]);
ObjectSet("Time" + x,OBJPROP_COLOR,line_color); // Color value to set/get object color.
ObjectSet("Time" + x,OBJPROP_STYLE,STYLE_DOT); // Value is one of STYLE_SOLID, STYLE_DASH, STYLE_DOT, STYLE_DASHDOT, STYLE_DASHDOTDOT constants to set/get object line style.
ObjectSet("Time" + x,OBJPROP_WIDTH,1); // Integer value to set/get object line width. Can be from 1 to 5.
ObjectSet("Time" + x,OBJPROP_BACK,true); // Boolean value to set/get background drawing flag for object. (for example "true" will hide the value at the bottom of the chart.)
}
if(tf==15&&TimeMinute(Time[i])==15)
{
x++;
ObjectCreate("Time" + x,OBJ_VLINE,0,Time[i]+tf*60,High[i]);
ObjectSet("Time" + x,OBJPROP_COLOR,line_color); // Color value to set/get object color.
ObjectSet("Time" + x,OBJPROP_STYLE,STYLE_DOT); // Value is one of STYLE_SOLID, STYLE_DASH, STYLE_DOT, STYLE_DASHDOT, STYLE_DASHDOTDOT constants to set/get object line style.
ObjectSet("Time" + x,OBJPROP_WIDTH,1); // Integer value to set/get object line width. Can be from 1 to 5.
ObjectSet("Time" + x,OBJPROP_BACK,true); // Boolean value to set/get background drawing flag for object. (for example "true" will hide the value at the bottom of the chart.)
}
if(tf==15&&TimeMinute(Time[i])==30)
{
x++;
ObjectCreate("Time" + x,OBJ_VLINE,0,Time[i]+tf*60,High[i]);
ObjectSet("Time" + x,OBJPROP_COLOR,line_color); // Color value to set/get object color.
ObjectSet("Time" + x,OBJPROP_STYLE,STYLE_DOT); // Value is one of STYLE_SOLID, STYLE_DASH, STYLE_DOT, STYLE_DASHDOT, STYLE_DASHDOTDOT constants to set/get object line style.
ObjectSet("Time" + x,OBJPROP_WIDTH,1); // Integer value to set/get object line width. Can be from 1 to 5.
ObjectSet("Time" + x,OBJPROP_BACK,true); // Boolean value to set/get background drawing flag for object. (for example "true" will hide the value at the bottom of the chart.)
}
if(tf==15&&TimeMinute(Time[i])==45)
{
x++;
ObjectCreate("Time" + x,OBJ_VLINE,0,Time[i]+tf*60,High[i]);
ObjectSet("Time" + x,OBJPROP_COLOR,line_color); // Color value to set/get object color.
ObjectSet("Time" + x,OBJPROP_STYLE,STYLE_DOT); // Value is one of STYLE_SOLID, STYLE_DASH, STYLE_DOT, STYLE_DASHDOT, STYLE_DASHDOTDOT constants to set/get object line style.
ObjectSet("Time" + x,OBJPROP_WIDTH,1); // Integer value to set/get object line width. Can be from 1 to 5.
ObjectSet("Time" + x,OBJPROP_BACK,true); // Boolean value to set/get background drawing flag for object. (for example "true" will hide the value at the bottom of the chart.)
}
if(tf==30&&TimeMinute(Time[i])==0)
{
x++;
ObjectCreate("Time" + x,OBJ_VLINE,0,Time[i]+tf*60,High[i]);
ObjectSet("Time" + x,OBJPROP_COLOR,line_color); // Color value to set/get object color.
ObjectSet("Time" + x,OBJPROP_STYLE,STYLE_DOT); // Value is one of STYLE_SOLID, STYLE_DASH, STYLE_DOT, STYLE_DASHDOT, STYLE_DASHDOTDOT constants to set/get object line style.
ObjectSet("Time" + x,OBJPROP_WIDTH,1); // Integer value to set/get object line width. Can be from 1 to 5.
ObjectSet("Time" + x,OBJPROP_BACK,true); // Boolean value to set/get background drawing flag for object. (for example "true" will hide the value at the bottom of the chart.)
}
if(tf==30&&TimeMinute(Time[i])==30)
{
x++;
ObjectCreate("Time" + x,OBJ_VLINE,0,Time[i]+tf*60,High[i]);
ObjectSet("Time" + x,OBJPROP_COLOR,line_color); // Color value to set/get object color.
ObjectSet("Time" + x,OBJPROP_STYLE,STYLE_DOT); // Value is one of STYLE_SOLID, STYLE_DASH, STYLE_DOT, STYLE_DASHDOT, STYLE_DASHDOTDOT constants to set/get object line style.
ObjectSet("Time" + x,OBJPROP_WIDTH,1); // Integer value to set/get object line width. Can be from 1 to 5.
ObjectSet("Time" + x,OBJPROP_BACK,true); // Boolean value to set/get background drawing flag for object. (for example "true" will hide the value at the bottom of the chart.)
}
if(tf==60&&TimeMinute(Time[i])==iMinute1 && TimeSeconds(Time[i])==iSecond)
{
x++;
ObjectCreate("Time" + x,OBJ_VLINE,0,Time[i]+tf*60,High[i]);
ObjectSet("Time" + x,OBJPROP_COLOR,line_color); // Color value to set/get object color.
ObjectSet("Time" + x,OBJPROP_STYLE,STYLE_DOT); // Value is one of STYLE_SOLID, STYLE_DASH, STYLE_DOT, STYLE_DASHDOT, STYLE_DASHDOTDOT constants to set/get object line style.
ObjectSet("Time" + x,OBJPROP_WIDTH,1); // Integer value to set/get object line width. Can be from 1 to 5.
ObjectSet("Time" + x,OBJPROP_BACK,true); // Boolean value to set/get background drawing flag for object. (for example "true" will hide the value at the bottom of the chart.)
}
if(tf==240&&TimeMinute(Time[i])==0&&TimeHour(Time[i])==0)
{
x++;
ObjectCreate("Time" + x,OBJ_VLINE,0,Time[i]+tf*60,High[i]);
ObjectSet("Time" + x,OBJPROP_COLOR,line_color); // Color value to set/get object color.
ObjectSet("Time" + x,OBJPROP_STYLE,STYLE_DOT); // Value is one of STYLE_SOLID, STYLE_DASH, STYLE_DOT, STYLE_DASHDOT, STYLE_DASHDOTDOT constants to set/get object line style.
ObjectSet("Time" + x,OBJPROP_WIDTH,1); // Integer value to set/get object line width. Can be from 1 to 5.
ObjectSet("Time" + x,OBJPROP_BACK,true); // Boolean value to set/get background drawing flag for object. (for example "true" will hide the value at the bottom of the chart.)
}
if(tf==240&&TimeMinute(Time[i])==0&&TimeHour(Time[i])==4)
{
x++;
ObjectCreate("Time" + x,OBJ_VLINE,0,Time[i]+tf*60,High[i]);
ObjectSet("Time" + x,OBJPROP_COLOR,line_color); // Color value to set/get object color.
ObjectSet("Time" + x,OBJPROP_STYLE,STYLE_DOT); // Value is one of STYLE_SOLID, STYLE_DASH, STYLE_DOT, STYLE_DASHDOT, STYLE_DASHDOTDOT constants to set/get object line style.
ObjectSet("Time" + x,OBJPROP_WIDTH,1); // Integer value to set/get object line width. Can be from 1 to 5.
ObjectSet("Time" + x,OBJPROP_BACK,true); // Boolean value to set/get background drawing flag for object. (for example "true" will hide the value at the bottom of the chart.)
}
if(tf==240&&TimeMinute(Time[i])==0&&TimeHour(Time[i])==8)
{
x++;
ObjectCreate("Time" + x,OBJ_VLINE,0,Time[i]+tf*60,High[i]);
ObjectSet("Time" + x,OBJPROP_COLOR,line_color); // Color value to set/get object color.
ObjectSet("Time" + x,OBJPROP_STYLE,STYLE_DOT); // Value is one of STYLE_SOLID, STYLE_DASH, STYLE_DOT, STYLE_DASHDOT, STYLE_DASHDOTDOT constants to set/get object line style.
ObjectSet("Time" + x,OBJPROP_WIDTH,1); // Integer value to set/get object line width. Can be from 1 to 5.
ObjectSet("Time" + x,OBJPROP_BACK,true); // Boolean value to set/get background drawing flag for object. (for example "true" will hide the value at the bottom of the chart.)
}
if(tf==240&&TimeMinute(Time[i])==0&&TimeHour(Time[i])==12)
{
x++;
ObjectCreate("Time" + x,OBJ_VLINE,0,Time[i]+tf*60,High[i]);
ObjectSet("Time" + x,OBJPROP_COLOR,line_color); // Color value to set/get object color.
ObjectSet("Time" + x,OBJPROP_STYLE,STYLE_DOT); // Value is one of STYLE_SOLID, STYLE_DASH, STYLE_DOT, STYLE_DASHDOT, STYLE_DASHDOTDOT constants to set/get object line style.
ObjectSet("Time" + x,OBJPROP_WIDTH,1); // Integer value to set/get object line width. Can be from 1 to 5.
ObjectSet("Time" + x,OBJPROP_BACK,true); // Boolean value to set/get background drawing flag for object. (for example "true" will hide the value at the bottom of the chart.)
}
if(tf==240&&TimeMinute(Time[i])==0&&TimeHour(Time[i])==16)
{
x++;
ObjectCreate("Time" + x,OBJ_VLINE,0,Time[i]+tf*60,High[i]);
ObjectSet("Time" + x,OBJPROP_COLOR,line_color); // Color value to set/get object color.
ObjectSet("Time" + x,OBJPROP_STYLE,STYLE_DOT); // Value is one of STYLE_SOLID, STYLE_DASH, STYLE_DOT, STYLE_DASHDOT, STYLE_DASHDOTDOT constants to set/get object line style.
ObjectSet("Time" + x,OBJPROP_WIDTH,1); // Integer value to set/get object line width. Can be from 1 to 5.
ObjectSet("Time" + x,OBJPROP_BACK,true); // Boolean value to set/get background drawing flag for object. (for example "true" will hide the value at the bottom of the chart.)
}
if(tf==240&&TimeMinute(Time[i])==0&&TimeHour(Time[i])==20)
{
x++;
ObjectCreate("Time" + x,OBJ_VLINE,0,Time[i]+tf*60,High[i]);
ObjectSet("Time" + x,OBJPROP_COLOR,line_color); // Color value to set/get object color.
ObjectSet("Time" + x,OBJPROP_STYLE,STYLE_DOT); // Value is one of STYLE_SOLID, STYLE_DASH, STYLE_DOT, STYLE_DASHDOT, STYLE_DASHDOTDOT constants to set/get object line style.
ObjectSet("Time" + x,OBJPROP_WIDTH,1); // Integer value to set/get object line width. Can be from 1 to 5.
ObjectSet("Time" + x,OBJPROP_BACK,true); // Boolean value to set/get background drawing flag for object. (for example "true" will hide the value at the bottom of the chart.)
}
if(tf==1440&&TimeHour(Time[i])==0&&TimeMinute(Time[i])==0 )
{
x++;
ObjectCreate("Time" + x,OBJ_VLINE,0,Time[i]+tf*60,High[i]);
ObjectSet("Time" + x,OBJPROP_COLOR,line_color); // Color value to set/get object color.
ObjectSet("Time" + x,OBJPROP_STYLE,STYLE_DOT); // Value is one of STYLE_SOLID, STYLE_DASH, STYLE_DOT, STYLE_DASHDOT, STYLE_DASHDOTDOT constants to set/get object line style.
ObjectSet("Time" + x,OBJPROP_WIDTH,1); // Integer value to set/get object line width. Can be from 1 to 5.
ObjectSet("Time" + x,OBJPROP_BACK,true); // Boolean value to set/get background drawing flag for object. (for example "true" will hide the value at the bottom of the chart.)
}
if(tf==10080&&TimeDayOfWeek(Time[i])==1&&TimeMinute(Time[i])==0 &&TimeHour(Time[i])==0 )
{
x++;
ObjectCreate("Time" + x,OBJ_VLINE,0,Time[i]+tf*60,High[i]);
ObjectSet("Time" + x,OBJPROP_COLOR,line_color); // Color value to set/get object color.
ObjectSet("Time" + x,OBJPROP_STYLE,STYLE_DOT); // Value is one of STYLE_SOLID, STYLE_DASH, STYLE_DOT, STYLE_DASHDOT, STYLE_DASHDOTDOT constants to set/get object line style.
ObjectSet("Time" + x,OBJPROP_WIDTH,1); // Integer value to set/get object line width. Can be from 1 to 5.
ObjectSet("Time" + x,OBJPROP_BACK,true); // Boolean value to set/get background drawing flag for object. (for example "true" will hide the value at the bottom of the chart.)
}
if(tf==43200&&TimeDay(Time[i])==1&&TimeMinute(Time[i])==0 &&TimeHour(Time[i])==0 )
{
x++;
ObjectCreate("Time" + x,OBJ_VLINE,0,Time[i]+tf*60,High[i]);
ObjectSet("Time" + x,OBJPROP_COLOR,line_color); // Color value to set/get object color.
ObjectSet("Time" + x,OBJPROP_STYLE,STYLE_DOT); // Value is one of STYLE_SOLID, STYLE_DASH, STYLE_DOT, STYLE_DASHDOT, STYLE_DASHDOTDOT constants to set/get object line style.
ObjectSet("Time" + x,OBJPROP_WIDTH,1); // Integer value to set/get object line width. Can be from 1 to 5.
ObjectSet("Time" + x,OBJPROP_BACK,true); // Boolean value to set/get background drawing flag for object. (for example "true" will hide the value at the bottom of the chart.)
}
if(tf==518400&&TimeMonth(Time[i])==1&&TimeDayOfYear(Time[i])<=10 )
{
x++;
ObjectCreate("Time" + x,OBJ_VLINE,0,Time[i]+tf*60,High[i]);
ObjectSet("Time" + x,OBJPROP_COLOR,line_color); // Color value to set/get object color.
ObjectSet("Time" + x,OBJPROP_STYLE,STYLE_DOT); // Value is one of STYLE_SOLID, STYLE_DASH, STYLE_DOT, STYLE_DASHDOT, STYLE_DASHDOTDOT constants to set/get object line style.
ObjectSet("Time" + x,OBJPROP_WIDTH,1); // Integer value to set/get object line width. Can be from 1 to 5.
ObjectSet("Time" + x,OBJPROP_BACK,true); // Boolean value to set/get background drawing flag for object. (for example "true" will hide the value at the bottom of the chart.)
}
if(tf==0&&TimeMinute(Time[i])==interval2 )
{
interval2=interval2+interval;
x++;
ObjectCreate("Time" + x,OBJ_VLINE,0,Time[i]+interval2*60,High[i]);
ObjectSet("Time" + x,OBJPROP_COLOR,line_color); // Color value to set/get object color.
ObjectSet("Time" + x,OBJPROP_STYLE,STYLE_DOT); // Value is one of STYLE_SOLID, STYLE_DASH, STYLE_DOT, STYLE_DASHDOT, STYLE_DASHDOTDOT constants to set/get object line style.
ObjectSet("Time" + x,OBJPROP_WIDTH,1); // Integer value to set/get object line width. Can be from 1 to 5.
ObjectSet("Time" + x,OBJPROP_BACK,true); // Boolean value to set/get background drawing flag for object. (for example "true" will hide the value at the bottom of the chart.)
}
if(tf==0&&interval2>59 ){interval2=start_minute;
}
}
}
DislikedHello everybody! I am new here and I am enjoying reading this forum because there is ALOT of great information!! I need a little help with something if that's ok.... I downloaded a martingale ea and it works fine, I just have a problem with adjusting the settings of this EA. It opens up 0.40 lots and my account can't handle that much. I would like to edit the settings so it only opens 0.19 maximum! How do I adjust the maximum lot size?? Also, this martingale open up lots in multiples like this: 0.01, 0.02, 0.03, 0.05, 0.09, 0.19, 0.40 Is it possible...Ignored
Disliked{quote} That EA is called Tengri and it's free on the internet. The reason for being free is that it brings daily results but when it crashes it takes 50% of the account or more. I have not seen anyone to have the mql4 and just the ex4 which does not help as you can't edit how it was written but just play with the settings that the creator has put on settings. If you want the biggest trade to be 0.19 you can simply set max 6 trades allowed at a time. I have used that setting and the EA brought consistent profit for 90 days and in one day took off...Ignored
Disliked{quote} That EA is called Tengri and it's free on the internet. The reason for being free is that it brings daily results but when it crashes it takes 50% of the account or more. I have not seen anyone to have the mql4 and just the ex4 which does not help as you can't edit how it was written but just play with the settings that the creator has put on settings. If you want the biggest trade to be 0.19 you can simply set max 6 trades allowed at a time. I have used that setting and the EA brought consistent profit for 90 days and in one day took off...Ignored
DislikedWHO is the creator of the EA, please? Because Tengri means God in old old Turkish {quote}Ignored