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

Reply
Old 11-02-2009, 08:18 AM   #9

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 »
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,
You are correct Tams.I understand that u want others to think and work before asking any question,but when we are urgent and want immediate results we sometimes think "why not post in a forum any experienced person will answer".
Sorry Tams if i have wasted ur time here after please ingore my questions in the forum.
rajatheroyal is offline  
Reply With Quote
Old 11-02-2009, 08:41 AM   #10

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 »
You are correct Tams.I understand that u want others to think and work before asking any question,but when we are urgent and want immediate results we sometimes think "why not post in a forum any experienced person will answer".
Sorry Tams if i have wasted ur time here after please ingore my questions in the forum.

I say what I said...
because the logical requirement is very simple,
so as the solution... it is VERY VERY VERY simple...
if only you would take the time to write out your thoughts as I suggested.

note taken, I will put you on ignore.


.
__________________



Only an idiot would reply to a stupid post

Last edited by Tams; 11-02-2009 at 09:28 AM.
Tams is offline  
Reply With Quote
Old 11-02-2009, 02:28 PM   #11

Join Date: Nov 2006
Location: N/A
Posts: 612
Ignore this user

Thanks: 62
Thanked 294 Times in 177 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.
Removed duplicate post from me.
sevensa is offline  
Reply With Quote
Old 11-02-2009, 02:28 PM   #12

Join Date: Nov 2006
Location: N/A
Posts: 612
Ignore this user

Thanks: 62
Thanked 294 Times in 177 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 did what Tam's suggested and read what he told you, you would know the answer...

If your statement say "Buy next bar on open" and there is no data,i.e. no bar exist for the 10th, on what bar would this statement buy?
sevensa is offline  
Reply With Quote
The Following User Says Thank You to sevensa For This Useful Post:
Tams (11-02-2009)
Old 11-02-2009, 05:45 PM   #13

Join Date: Jan 2008
Location: San Francisco
Posts: 394
Ignore this user

Thanks: 17
Thanked 338 Times in 156 Posts

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

not super elegant but one solution is just to build the holiday dates in as a condition:

-------------------------

condition1=
date<>1101009 and
date<>1101008; //reads as. to pass this condition, the date does not equal the following, I made it 10/10/08 and 10/10/09 just for illustrative purposes

if condition1 then buy next bar on open;

-------------------------

why all the snarky answers guys? just a simple solution takes about same amount of effort.
Frank is offline  
Reply With Quote
Old 11-02-2009, 08:39 PM   #14

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 Frank »
not super elegant but one solution is just to build the holiday dates in as a condition:

-------------------------

condition1=
date<>1101009 and
date<>1101008; //reads as. to pass this condition, the date does not equal the following, I made it 10/10/08 and 10/10/09 just for illustrative purposes

if condition1 then buy next bar on open;

-------------------------

why all the snarky answers guys? just a simple solution takes about same amount of effort.

...because you have just demonstrated what would happen if you don't put on your thinking hat.
__________________



Only an idiot would reply to a stupid post

Last edited by Tams; 11-02-2009 at 08:45 PM.
Tams is offline  
Reply With Quote

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.