Detect the last valid trading day of the month

If you need an Indicator or Signal developed or translated from other language, please post all Indicator development REQUESTS to this section here.

Moderator: admin

Detect the last valid trading day of the month

Postby conjure » Wed Jun 08, 2022 2:46 pm

Hi...
I need a script, EA, or Indicator, or just the code, (on mql4) to detect the last valid trading day of the month ..
If 31 of month is Sunday, i need to close my trades on Friday 29.
if first day of month is Sunday,and month has 30 days, the last day should be 29 Friday.
If it is February and 28 is on Saturday, 27 Friday should be the last day.
and so on...
Is it possible?
conjure
FXCodeBase: Initiate
 
Posts: 135
Joined: Sat Jul 22, 2017 7:27 am

Re: Detect the last valid trading day of the month

Postby Apprentice » Fri Jun 10, 2022 5:59 am

We have added your request to the development list.
Development reference 341.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36435
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia


Re: Detect the last valid trading day of the month

Postby conjure » Wed Jun 22, 2022 3:49 am

Thank you Mario
conjure
FXCodeBase: Initiate
 
Posts: 135
Joined: Sat Jul 22, 2017 7:27 am


Return to Indicator and Signal Requests

Who is online

Users browsing this forum: No registered users and 18 guests