I'm not a programmer, so the only thing I can give back for all the help I have received here is this Excel Workbook. It contains a lot of useful items. I use it to track my position and S/R. It will give you the correct number of contracts to add at S/R to get your avg. price within xx ticks of that level. It gives you the cost of a stop out with or without an add in.
It helps to keep you abreast of the correct front month contracts, which month is the next front month, start and stop times for a lot of futures contracts. You can put in whatever time zone you are in by adjusting the Offset on the Contract Times worksheet. Everything can be changed to your customization.
Anything that is protected is not protected with a password. Just protected to prevent accidental deleting.
The workbook does contain macros. I have used this for years with no problems. I first put it together 3 years ago and it has been a work in progress ever since.
Anyway, I find it very useful and I hope you will also.