Welcome to the Traders Laboratory Forums.
Automated Trading Black box systems, strategy automation, algorithmic trading, etc...

Reply
Old 11-01-2009, 06:53 AM   #1

Join Date: Jan 2009
Location: tiruchendur
Posts: 38
Ignore this user

Thanks: 51
Thanked 1 Time in 1 Post

How to Check if a Particular Day is Holiday in Easylanguage

I wanted to test one long only strategy which buys on 10th of every month.But the problem is suppose the 10 th is holiday it should buy at next working day.Can anybody help me to know how to give the condition that 10th is holiday
rajatheroyal is offline  
Reply With Quote
Old 11-01-2009, 08:34 AM   #2

Tams's Avatar

Join Date: Sep 2008
Location: Geelong
Posts: 3,778
Ignore this user

Thanks: 2,084
Thanked 1,474 Times in 912 Posts

Re: How to Check if a Particular Day is Holiday in Easylanguage

in backtest...

if the data does not exist on the 10th, it must be a holiday...



;-)
__________________



Only an idiot would reply to a stupid post
Tams is offline  
Reply With Quote
Old 11-01-2009, 01:37 PM   #3

suriNotes's Avatar

Status: Educational Partner
Join Date: Nov 2007
Location: Seattle, WA
Posts: 165
Ignore this user

Thanks: 8
Thanked 156 Times in 59 Posts

Re: How to Check if a Particular Day is Holiday in Easylanguage

hi,

Here is a post about an EasyLanguage function to check if a given calendar date (from 1998 to 2010)
is a Trading or a Half-Day or a Holiday

http://www.traderslaboratory.com/for...html#post79435

regards,
Suri
suriNotes is offline  
Reply With Quote
The Following User Says Thank You to suriNotes For This Useful Post:
rajatheroyal (11-02-2009)
Old 11-02-2009, 01:10 AM   #4

Join Date: Jan 2009
Location: tiruchendur
Posts: 38
Ignore this user

Thanks: 51
Thanked 1 Time in 1 Post

Re: How to Check if a Particular Day is Holiday in Easylanguage

Quote:
Originally Posted by Tams »
in backtest...

if the data does not exist on the 10th, it must be a holiday...



;-)

yes i know that.But i have to give condition if 10 th is a holiday then buy on the next working day.So for that i have to check if 10 th was a holiday or not this the problem.
rajatheroyal is offline  
Reply With Quote
Old 11-02-2009, 01:12 AM   #5

Join Date: Jan 2009
Location: tiruchendur
Posts: 38
Ignore this user

Thanks: 51
Thanked 1 Time in 1 Post

Re: How to Check if a Particular Day is Holiday in Easylanguage

Quote:
Originally Posted by suriNotes »
hi,

Here is a post about an EasyLanguage function to check if a given calendar date (from 1998 to 2010)
is a Trading or a Half-Day or a Holiday

http://www.traderslaboratory.com/for...html#post79435

regards,
Suri
Thanks sir,but this is for US market i think.I m from India and i wan to check indian holidays for the past data so for that is there any fuction or how to give condition that if a day is holiday then do so and so.
rajatheroyal is offline  
Reply With Quote
Old 11-02-2009, 01:53 AM   #6

Kiwi's Avatar

Join Date: Oct 2006
Location: the zone
Posts: 986
Ignore this user

Thanks: 248
Thanked 844 Times in 391 Posts

Re: How to Check if a Particular Day is Holiday in Easylanguage

Unless an Indian has written one you are unlikely to find one.

Last edited by Kiwi; 11-02-2009 at 02:07 AM.
Kiwi is offline  
Reply With Quote
Old 11-02-2009, 06:34 AM   #7

suriNotes's Avatar

Status: Educational Partner
Join Date: Nov 2007
Location: Seattle, WA
Posts: 165
Ignore this user

Thanks: 8
Thanked 156 Times in 59 Posts

Re: How to Check if a Particular Day is Holiday in Easylanguage

Quote:
Originally Posted by rajatheroyal »
Thanks sir,but this is for US market i think.I m from India and i wan to check indian holidays for the past data so for that is there any fuction or how to give condition that if a day is holiday then do so and so.
Hi rajatheroyal,

You could compile a list of Holidays/Half-Days from Indian Exchanges and replace the U.S. exchanges HOLIDAYS data in the ELD posted.

Regards,
Suri
suriNotes is offline  
Reply With Quote
The Following User Says Thank You to suriNotes For This Useful Post:
rajatheroyal (11-02-2009)
Old 11-02-2009, 07:59 AM   #8

Tams's Avatar

Join Date: Sep 2008
Location: Geelong
Posts: 3,778
Ignore this user

Thanks: 2,084
Thanked 1,474 Times in 912 Posts

Re: How to Check if a Particular Day is Holiday in Easylanguage

Quote:
Originally Posted by rajatheroyal »
yes i know that.But i have to give condition if 10 th is a holiday then buy on the next working day.So for that i have to check if 10 th was a holiday or not this the problem.

if you can describe your thought process...
you can program it

I can write it out for you,
but I would do you a disservice,
because you will come back again,
and again,
to ask similar "thinking required" questions,
like what you are doing now.

my suggestion:
write out your thoughts,
one logic at a time,
one action at a time,
one action per sentence,
ONE SENTENCE PER LINE
I repeat,
ONE SENTENCE PER LINE

you can make it if you want to,
__________________



Only an idiot would reply to a stupid post
Tams is offline  
Reply With Quote
The Following User Says Thank You to Tams For This Useful Post:
rajatheroyal (11-02-2009)

Reply

Thread Tools
Display Modes Help Others By Rating This Thread
Help Others By Rating This Thread:


Similar Threads
Thread Thread Starter Forum Replies Last Post
Price Direction Check Against Position estate1997 Coding Forum 3 04-11-2011 12:07 AM
HSI - Tomorrow is a Holiday Kiwi Trading and the Markets 0 06-30-2009 02:34 AM
Holiday thetradingdoctor Trading Psychology 9 09-09-2007 03:17 AM
Error trying to check email address brownsfan019 Support Center 6 05-29-2007 10:41 AM
Friday, April 6th is a US holiday brownsfan019 Market Analysis 6 05-06-2007 11:30 AM

All times are GMT -4. The time now is 10:50 AM.
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
CS to VB integration by DeskLancer
©2006-2011 Traders Laboratory, All Rights Reserved.