//CALCULATE and PRINT RISK REWARD risk = buyEntryPrice - buystopTrigger; reward= buyEntryPrice + profitTarget * TickSize; ratio = Math.Round((reward/risk) * 100); //Print to Screen the Percentage Return on Trade DrawText("Percent Return" + CurrentBar, true, "ROI %: " + Instrument.MasterInstrument.Round2TickSize(ratio).ToString(), 1,trigLow - 42 * TickSize, 3, Color.Orange, new Font ("Arial", 9, FontStyle.Bold), StringAlignment.Center, Color.Transparent, Color.Transparent, 0 );
What am I doing wrong. can anyone show me Code snippet to get results to show a proper %.
thank you!
Comment