How to Count market days since entry?

Questions about MultiCharts and user contributed studies.
jimpe606
Posts: 6
Joined: 19 Aug 2013

How to Count market days since entry?

Postby jimpe606 » 31 Aug 2013

Hi,

I want to code an exit based on number of days since entry, it should only count market days or at least not include weekends. Looking forward for some input on best/easy way to do this?

Example:
If Entry is on Thursday, with a five days exit. it should exit on next thursday.


It should work for intradays, i.e. I cannot count bars, I tried with several data streams but did not work.
I tried the "date" - "dayssinceentry" functions but found out it include weekends. e.g. it could exit already after three market days.

Cheers,
Jimmy

User avatar
TJ
Posts: 7742
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1033 times
Been thanked: 2222 times

Re: How to Count market days since entry?

Postby TJ » 31 Aug 2013



Return to “MultiCharts”