Powerlanguage: First Friday

Questions about MultiCharts and user contributed studies.
duration
Posts: 175
Joined: 20 Dec 2005

Powerlanguage: First Friday

Postby duration » 04 Jun 2010

Hello,

Is it possible, using powerlanguage, to tell a signal not to trade each first friday of the month?

Or do I have to write the date of each first friday of the month for the last 10 years?

Many thanks,

User avatar
TJ
Posts: 6550
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 965 times
Been thanked: 1892 times

Postby TJ » 04 Jun 2010

just make a counter...

1. starting counting when a new month begins,
2. when the day reaches a Friday, make count = 1,
3. if it reaches a Friday and the count is already equals to 1,
you have reached the second Friday.


for more information:

press [F1],

look under

Contents >
PowerLanguage >
Keyword Refereence > Date and Time Rountines

duration
Posts: 175
Joined: 20 Dec 2005

Postby duration » 05 Jun 2010

Hi TJ,

Thanks a lot for your reply. I think I have found a problem with date and the bar magnifier, and there is nothing much I can do right now.


Return to “MultiCharts”