Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

Financial Predictor via Neural Network

, 25 May 2011
Exploring the prediction capability of neural networks
// ciumac.sergiu@gmail.com
using System;

namespace FinancialMarketPredictor.Entities
{
    /// <summary>
    /// All four financial indexes are stitched in this class
    /// </summary>
    public class FinancialIndexes : IComparable<FinancialIndexes>
    {
        /// <summary>
        /// Public constructor
        /// </summary>
        /// <param name="dowIndex">Dow index</param>
        /// <param name="nasdaqIndex">Nasdaq index</param>
        /// <param name="spIndex">S&P index</param>
        /// <param name="pirIndex">Prime interest rate index</param>
        /// <param name="date">Date</param>
        public FinancialIndexes(double dowIndex, double nasdaqIndex, double spIndex, double pirIndex, DateTime date)
        {
            DowIndex = dowIndex;
            NasdaqIndex = nasdaqIndex;
            Sp = spIndex;
            PrimeInterestRate = pirIndex;
            Date = date;
        }

        /// <summary>
        /// Dow Jones index
        /// </summary>
        public double DowIndex { get; set; }

        /// <summary>
        /// NASDAQ index
        /// </summary>
        public double NasdaqIndex { get; set; }

        /// <summary>
        /// The value of Adj Close of S&P500 index
        /// </summary>
        public double Sp { get; set; }

        /// <summary>
        /// Prime interest rate
        /// </summary>
        public double PrimeInterestRate { get; set; }

        /// <summary>
        /// Date with corresponding S&P500 Adj Close and Prime Interest PrimeInterestRate
        /// </summary>
        public DateTime Date { get; set; }

        #region IComparable<FinancialIndexes> Members
        /// <summary>
        /// Compare by date
        /// </summary>
        /// <param name="other">Other financial pair</param>
        /// <returns></returns>
        public int CompareTo(FinancialIndexes other)
        {
            return Date.CompareTo(other.Date);
        }

        #endregion
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

About the Author

Ciumac Sergiu
Software Developer
Moldova (Republic Of) Moldova (Republic Of)
Interested in computer science, math, research, and everything that relates to innovation. Fan of agnostic programming, don't mind developing under any platform/framework if it explores interesting topics. In search of a better programming paradigm.
Follow on   Twitter   LinkedIn

| Advertise | Privacy | Mobile
Web03 | 2.8.140721.1 | Last Updated 25 May 2011
Article Copyright 2011 by Ciumac Sergiu
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid