I think I almost have it done except for that I believe the values must be rounded to the nearest whole number to be used in a strategy to set the tick value of the stop loss. I don't know how to round although I've searched and found something for (Math.Round or Truncate on the web).
Can someone help with this please? I have attached the indicator which seems to work at least to the point of plotting the values on a chart.
Thank.
Comment