I'm sorry I have to bug you guys again with one of my small problems.
This time I'm trying to calculate the Minimum Payoff Ratio of my strategy with this code:
// Minimum Payoff Ratio private string MinPayoff = "Not enough trades to calculate Minimum Payoff Ratio"; private double MinPayoff2 = 1337; // Value is just to see when it prints this. if((Performance.AllTrades.WinningTrades.TradesCount == 0) || (Performance.AllTrades.LosingTrades.TradesCount == 0)) MinPayoff = "Not enough trades to calculate Minimum Payoff Ratio"; else { MinPayoff = "Current Minimum Payoff Ratio is: "; MinPayoff2 = (Performance.AllTrades.LosingTrades.TradesCount / Performance.AllTrades.WinningTrades.TradesCount); } Print(MinPayoff + MinPayoff2); // Not working
Anyone have an idea on how I can make it work?
Comment