dlmandalia
New Member
- Joined
- Jul 6, 2012
- Messages
- 12
Hi,
I don't know how to code but I want to create code where as it check with today's date and define current contact and next contact.
All the time I have to change current contract and next contract manually I want computer update it automatically.
below is table for gold and silver contract for COMEX Exchange.
Example
From 1 Jan to 28 Feb For gold February contact as current contract and April as next Contract,
From 1 March to 30 April For gold April as Current Contract and JUNE AS NEXT CONTRACT.
<tbody>
</tbody>
Thanking you in advance. Let me know how can i do it.
Regards, Dipen Mandalia
I don't know how to code but I want to create code where as it check with today's date and define current contact and next contact.
All the time I have to change current contract and next contract manually I want computer update it automatically.
below is table for gold and silver contract for COMEX Exchange.
Example
From 1 Jan to 28 Feb For gold February contact as current contract and April as next Contract,
From 1 March to 30 April For gold April as Current Contract and JUNE AS NEXT CONTRACT.
Month | Code | Gold | Silver |
January | F | FEBRUARY | MARCH |
February | G | FEBRUARY | MARCH |
March | H | APRIL | MARCH |
April | J | APRIL | MAY |
May | K | JUNE | MAY |
June | M | JUNE | JULY |
July | N | JULY | JULY |
August | Q | JULY | SEPTEMBER |
September | U | OCTOBER | SEPTEMBER |
October | V | OCTOBER | DECEMBER |
November | X | DECEMBER | DECEMBER |
December | Z | DECEMBER | DECEMBER |
<tbody>
</tbody>
Thanking you in advance. Let me know how can i do it.
Regards, Dipen Mandalia