namespace StockSharp.Algo.Derivatives
{
    using System;

    using Ecng.Common;
    
    using StockSharp.BusinessEntities;

    public class MyBlackScholes : BlackScholes
    {
    	public MyBlackScholes(Security option) : base(option)
    	{
	        SecurityPriceMode = SecurityMiscPrice;
    	}

    	private static decimal UnderlyingPrice { get; set; }
    	
    	public static readonly Func<Security, decimal> SecurityMiscPrice = s => UnderlyingPrice;
    	
        new public decimal Premium(decimal price)
        {
        	UnderlyingPrice = price;
            return base.Premium();
        }
    }
}
