using System.Collections.Generic;
private static Random _random;
public decimal Value {get; set;}
public decimal StopLost {get; set;}
public decimal TakeProfit {get; set;}
public void SimulateTime() {
var step =(decimal)(_random.NextDouble() - 0.5D) / 5;
return Value > TakeProfit;
public static void Main()
int mumberSamples = 10000;
for (int i= 0; i< mumberSamples; i++)
Asset etherehum = new Asset();
etherehum.StopLost = stopLost;
etherehum.TakeProfit = takeProfit;
etherehum.SimulateTime();
Console.WriteLine("Number of lost: " + numberLost + " " + (numberLost * 100.0M / mumberSamples).ToString("0.00") + "%" );
Console.WriteLine("Number of Win: " + numberWin + " " + (numberWin * 100.0M / mumberSamples ).ToString("0.00") + "%");