Use existing codebase and add storing of calculation history.
1) Add "lookback period" input on front end ([login to view URL] and [login to view URL]) which will define how far back (in seconds) to look for certain data
2) Add "trailingstopvalue" input on frontend
3) Add code to compare current weighted ratio to Max weighted ratio between lookback period and current, and modify marginratio code to set marginratio to 0 when maxweightedratio - trailingstopvalue < currentratio
13 freelancers are bidding on average $157 for this job
I read the task description and I can do it.I have worked on many such projects.I can work on urgent basis and for a reasonable rate..Contact me so we can discuss further