02-13-2007, 05:32 PM
Junior Member
Join Date: Oct 2006
Posts: 13
Quote:
Originally Posted by et_phonehome_2
You could use Thursday or Friday. On Friday, traders tend to close out positions before the weekend.
And how can I code these days in EA please...
Thanks
02-13-2007, 07:13 PM
Senior Member
Join Date: Nov 2005
Posts: 168
if (DayOfWeek()==5 && Hour()==20)
{
Closing order routine.......closes open orders the last last hour of Friday
}
if (DayOfWeek()>0 && DayOfWeek()<6)
{
Opening order routine......opens orders only on weekdays
}
02-14-2007, 09:40 PM
Member
Join Date: Feb 2007
Posts: 45
i tried that code.. it isnt working for me.. what am i doing wrong?
06-17-2007, 10:10 PM
Senior Member
Join Date: Oct 2006
Posts: 123
MT4 platform without Sunday
Hi guys,
Just wondering, are there any MT4 brokers who do not have a Sunday bar for their daily charts?
Thanks.
06-21-2007, 03:34 AM
Member
Join Date: Jan 2006
Location: Arlington, VA, USA
Posts: 91
FXDD, which has time zone GMT+3, starts Monday at 0:00.
06-21-2007, 06:23 AM
Senior Member
Join Date: Jun 2006
Posts: 1,510
hi
Quote:
Originally Posted by fx_geezer
Hi guys,
Just wondering, are there any MT4 brokers who do not have a Sunday bar for their daily charts?
Thanks.
Hi I think We need Sunday Chart to predict Monday movement ...and monday gap exist coz we didn't know saturday and sunday movement
===================
Forex Indicators Collection
06-21-2007, 10:58 PM
Member
Join Date: Jan 2006
Location: Arlington, VA, USA
Posts: 91
Quote:
Originally Posted by
prasxz
Hi I think We need Sunday Chart to predict Monday movement ...and monday gap exist coz we didn't know saturday and sunday movement
Not many bars on Sunday to base your prediction on, if it all possible...
. Anyway, they're the same bars, only the time stamp is shifted 3hours.
09-08-2007, 03:34 PM
Member
Join Date: Nov 2005
Posts: 42
Deleting 2 Hour Sunday Bars from IBFX Daily Charts Using MQL Code
Hello,
I need to delete some bad data from daily chart. Some history center functions needed to be coded in mql.
Ibfx opens a wrong bar for sundays, a day bar with 2 hour data, disturbing daily charts and producing dirty signals.
I need to remove these bars immediatly, using my trading expert. Without disturbing loaded indicators on daily data?
Any coding idea..?
Thanks.
Last edited by mcbalta; 09-09-2007 at 08:41 PM .
09-09-2007, 08:19 AM
Member
Join Date: Nov 2005
Posts: 42
a solution, offline daily charts produced..
Quote:
Originally Posted by
Eric
Someone please correct me if I am wrong, but I think you need a broker that has their platform set to GMT+2 to avoid the Sunday "daily" bar. Interbankfx recently considered changing their server time to GMT+2 for this very reason, although they eventually decided against it and have left their server time at GMT.
a solution, offline daily charts produced..
09-11-2007, 07:44 PM
Member
Join Date: Feb 2006
Posts: 63
I use tihs code to remove sundays from my moving average.
TempBuffer3 = Is just a bunch of close data
BufferAVE = Is array that ends up on chart
Code:
for(i=0; i<limit; i++)
{
if(No_Sundays ==true)
{
int z = 0;
int HLsum = 0;
for(int x = i; x < i + (Period * 2); x++)
{
if(SundayCheck(x) !=0)
{
HLsum += TempBuffer3[x];
z =z+ 1;
//if(i ==0) Print(x, " ", z);
}
if(z >= Period) break;
}
BufferAVE[i] = NormalizeDouble(HLsum/z,0);
}
else
BufferAVE[i]=iMAOnArray(TempBuffer3,Bars,Period,0,MODE_SMA,i);
}
//Sunday check
int SundayCheck(int Index)
{
datetime data = iTime(NULL, PERIOD_D1, Index);
return(TimeDayOfWeek(data));
}
Thread Tools
Display Modes
Linear Mode
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
fxdd MT4 platform
forextrader123
Metatrader 4
3
08-01-2006 06:22 AM
All times are GMT. The time now is 12:35 PM .