.Net · F# · Finance · Functional Programming · Uncategorized

Historical Volatility

The code snippet is capable of calculating historical volatility using Close Price, High Low Price and Close High Low Price methods. Simply provide symbol, start date and end date of the specific volatility method and it extracts the market data from the yahoo service and calculated the volatility. open System open System.IO open System.Xml open… Continue reading Historical Volatility

Uncategorized

Open new window with its own UI thread.

The code below speaks for itself on how to open multiple windows which have there own dispatcher. private void CreateNewWindow() { Thread thread = new Thread(() => { Window1 w = new Window1(); w.Show(); w.Closed += (sender2, e2) => w.Dispatcher.InvokeShutdown(); System.Windows.Threading.Dispatcher.Run(); }); thread.SetApartmentState(ApartmentState.STA); thread.Start(); }

.Net · C#

CSLA.Net framework for developing business objects.

I have been fan of CSLA.Net(component-based, scalable, logical architecture) framework since early days of my career had ported it from VB.Net to C# then. This framework comes handy for development of N-Tier architecture. Following are the feature highlights. Tracking Broken Business Rules Tracking Whether the Object Has Changed Strongly Typed Collections of Child Objects Simple and… Continue reading CSLA.Net framework for developing business objects.