www.financialwisdomf...tuff/kelly-ratio.htm
Used to help determine the % of your balance to place per trade.
Used to help determine the % of your balance to place per trade.
//Read up on the Kelly Ratio the same place I got the algo for it. //http://www.financialwisdomforum.org/gummy-stuff/kelly-ratio.htm //Thanks to @mr.blonde for the share. study("Kelly Ratio") p = input(50, "Probability of a Win - It may be 30% or 60% for a stock, but 50% for a coin toss!") / 100 w = input(1.25, "Average amount of winnings (when you win)") l = input(1, "Average amount of losses (when you lose)") kr = (p - (1-p) / (w/l)) * 100 plot(kr, color=red)