|
Description |
Displays a Summer Natural Gas Strip (April to October) for the year specified. |
|
|
Formula |
StripNatGasSummer(nvYear)=begin retval = NG#.YEAR divisor = 7 if nvYear == vchart(NG#.YEAR[-1]) then begin cMonth = vchart(NG#.MONTH[-1]) if cMonth >= 4 AND cMonth <= 10 then begin divisor = 10 - cMonth if divisor == 0 then divisor = 1 end if cMonth > 10 then divisor = 1 end if
nvYear == 2003 then retval = Scale(Sum(NGJ3.recent, if
nvYear == 2004 then retval = Scale(Sum(NGJ4.recent, if
nvYear == 2005 then retval = Scale(Sum(NGJ5.recent, if
nvYear == 2006 then retval = Scale(Sum(NGJ6.recent, if
nvYear == 2007 then retval = Scale(Sum(NGJ7.recent, if
nvYear == 2008 then retval = Scale(Sum(NGJ8.recent, if
nvYear == 2009 then retval = Scale(Sum(NGJ9.recent, if
nvYear == 2010 then retval = Scale(Sum(NGJ0.recent, if
nvYear == 2011 then retval = Scale(Sum(NGJ1.recent, if
nvYear == 2012 then retval = Scale(Sum(NGJ2.recent, if
nvYear == 2013 then retval = Scale(Sum(NGJ3.recent, if
nvYear == 2014 then retval = Scale(Sum(NGJ4.recent, if
nvYear == 2015 then retval = Scale(Sum(NGJ5.recent, if
nvYear == 2016 then retval = Scale(Sum(NGJ6.recent, if
nvYear == 2017 then retval = Scale(Sum(NGJ7.recent, if
nvYear == 2018 then retval = Scale(Sum(NGJ8.recent, if
nvYear == 2019 then retval = Scale(Sum(NGJ9.recent, if
nvYear == 2020 then retval = Scale(Sum(NGJ0.recent, if
nvYear == 2021 then retval = Scale(Sum(NGJ1.recent, if
nvYear == 2022 then retval = Scale(Sum(NGJ2.recent, if
nvYear == 2023 then retval = Scale(Sum(NGJ3.recent, if
nvYear == 2024 then retval = Scale(Sum(NGJ4.recent, if
nvYear == 2025 then retval = Scale(Sum(NGJ5.recent, if retval == 0 then retval = nonum retval end |
|
|
Parameters |
year Four digit year (i.e., 2008) for which you want a Summer Strip. |
|
|
Return Value |
A Summer Strip. |
|
|
Examples |
StripNatGasSummer(2008)
Displays a strip of 2008 Natural Gas summer contracts. |
|
|
Comments |
|
©2008 Aspen Research Group, Ltd. All rights reserved. Terms of Use.