SwapMon

See Also...

Related Topics

 

 

Description

Displays a swap between any two expirations of a futures contract.

 

 

Formula

SWAPMON(inst1, inst2, thisDate)=begin

   val1 = inst1 * BusDays(FirstOfMonth(thisDate),inst1.expire)

   val2 = inst2 * BusDays(inst1.expire + 1, LastOfMonth(thisDate))

   retval = Scale((Sum(val1, val2))/BusDaysInAnyMonth(thisDate),SWAP_SCALE)

end

 

 

Parameters

inst1

The nearer expiration of a futures contract.

 

inst2

The contract following the contract given in the inst1 variable.

 

thisDate

Any date within the month of the inst1 variable's expiration.

 

 

Return Value

A swap.

 

 

Examples

SwapMon(NG#,NG#1,date)

 

Displays a swap of the Natural Gas lead-month and first out-month.

 

 

Comments

NA

 

©2008 Aspen Research Group, Ltd. All rights reserved. Terms of Use.