Beispiel #1
0
            /// <summary>
            /// ProcessLeveragedChange
            /// </summary>
            /// <param name="fileName"></param>
            /// <param name="asset"></param>
            /// <returns></returns>
            internal static string ProcessLeveragedChange(string fileName, object asset)
            {
                CftcFinancialsWorkbook workbook = new CftcFinancialsWorkbook(fileName);

                var colDate  = workbook.IndexOfDate;
                var colLong  = workbook.IndexOfLeveragedLong;
                var colShort = workbook.IndexOfLeveragedShort;

                stringBuilder.Clear();

                return(processingLogicChange(workbook.FirstWorksheet.Cells, colDate, colLong, colShort, (string)asset, false));
            }
Beispiel #2
0
            /// <summary>
            /// ProcessDealerInverted
            /// </summary>
            /// <param name="fileName"></param>
            /// <param name="asset"></param>
            /// <returns></returns>
            internal static string ProcessDealerInverted(string fileName, object asset)
            {
                CftcFinancialsWorkbook workbook = new CftcFinancialsWorkbook(fileName);

                var colDate  = workbook.IndexOfDate;
                var colLong  = workbook.IndexOfDealerLong;
                var colShort = workbook.IndexOfDealerShort;

                stringBuilder.Clear();

                return(processingLogic(workbook.FirstWorksheet.Cells, colDate, colLong, colShort, (string)asset, true));
            }