Is there something out there ( a script ? ) That would document for me the draw downs / profits of a transaction as it advances through the day at every and subsequent swing high / low ?

So for example a trade may be 30 in the very first swing high ( for quite a while obviously ), then -50 in the following swing reduced,then -50 70 in the following fold high,then -100 at the following swing low as on. So the data collected is :-

30 , -50 , 70, -100

It is for a system that's being developed and need the data to try and maximise profits.The system is a day commerce.

It may already be around ( not holding my breath ) or maybe someone may be interested in coding one ?

Anyhow thanks for reading.