Forecasting Financial markets using neural networks