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.
[TABLE="width: 297"]
<tbody>[TR]
[TD]Month[/TD]
[TD]Code[/TD]
[TD]Gold[/TD]
[TD]Silver[/TD]
[/TR]
[TR]
[TD]January[/TD]
[TD]F[/TD]
[TD]FEBRUARY[/TD]
[TD]MARCH[/TD]
[/TR]
[TR]
[TD]February[/TD]
[TD]G[/TD]
[TD]FEBRUARY[/TD]
[TD]MARCH[/TD]
[/TR]
[TR]
[TD]March[/TD]
[TD]H[/TD]
[TD]APRIL[/TD]
[TD]MARCH[/TD]
[/TR]
[TR]
[TD]April[/TD]
[TD]J[/TD]
[TD]APRIL[/TD]
[TD]MAY[/TD]
[/TR]
[TR]
[TD]May[/TD]
[TD]K[/TD]
[TD]JUNE[/TD]
[TD]MAY[/TD]
[/TR]
[TR]
[TD]June[/TD]
[TD]M[/TD]
[TD]JUNE[/TD]
[TD]JULY[/TD]
[/TR]
[TR]
[TD]July[/TD]
[TD]N[/TD]
[TD]JULY[/TD]
[TD]JULY[/TD]
[/TR]
[TR]
[TD]August[/TD]
[TD]Q[/TD]
[TD]JULY[/TD]
[TD]SEPTEMBER[/TD]
[/TR]
[TR]
[TD]September[/TD]
[TD]U[/TD]
[TD]OCTOBER[/TD]
[TD]SEPTEMBER[/TD]
[/TR]
[TR]
[TD]October[/TD]
[TD]V[/TD]
[TD]OCTOBER[/TD]
[TD]DECEMBER[/TD]
[/TR]
[TR]
[TD]November[/TD]
[TD]X[/TD]
[TD]DECEMBER[/TD]
[TD]DECEMBER[/TD]
[/TR]
[TR]
[TD]December[/TD]
[TD]Z[/TD]
[TD]DECEMBER[/TD]
[TD]DECEMBER[/TD]
[/TR]
</tbody>[/TABLE]
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.
[TABLE="width: 297"]
<tbody>[TR]
[TD]Month[/TD]
[TD]Code[/TD]
[TD]Gold[/TD]
[TD]Silver[/TD]
[/TR]
[TR]
[TD]January[/TD]
[TD]F[/TD]
[TD]FEBRUARY[/TD]
[TD]MARCH[/TD]
[/TR]
[TR]
[TD]February[/TD]
[TD]G[/TD]
[TD]FEBRUARY[/TD]
[TD]MARCH[/TD]
[/TR]
[TR]
[TD]March[/TD]
[TD]H[/TD]
[TD]APRIL[/TD]
[TD]MARCH[/TD]
[/TR]
[TR]
[TD]April[/TD]
[TD]J[/TD]
[TD]APRIL[/TD]
[TD]MAY[/TD]
[/TR]
[TR]
[TD]May[/TD]
[TD]K[/TD]
[TD]JUNE[/TD]
[TD]MAY[/TD]
[/TR]
[TR]
[TD]June[/TD]
[TD]M[/TD]
[TD]JUNE[/TD]
[TD]JULY[/TD]
[/TR]
[TR]
[TD]July[/TD]
[TD]N[/TD]
[TD]JULY[/TD]
[TD]JULY[/TD]
[/TR]
[TR]
[TD]August[/TD]
[TD]Q[/TD]
[TD]JULY[/TD]
[TD]SEPTEMBER[/TD]
[/TR]
[TR]
[TD]September[/TD]
[TD]U[/TD]
[TD]OCTOBER[/TD]
[TD]SEPTEMBER[/TD]
[/TR]
[TR]
[TD]October[/TD]
[TD]V[/TD]
[TD]OCTOBER[/TD]
[TD]DECEMBER[/TD]
[/TR]
[TR]
[TD]November[/TD]
[TD]X[/TD]
[TD]DECEMBER[/TD]
[TD]DECEMBER[/TD]
[/TR]
[TR]
[TD]December[/TD]
[TD]Z[/TD]
[TD]DECEMBER[/TD]
[TD]DECEMBER[/TD]
[/TR]
</tbody>[/TABLE]
Thanking you in advance. Let me know how can i do it.
Regards, Dipen Mandalia