I am developing a market trade bot and need to extract some parameters from market data but I don't have idea how to do it exactly. need your help.
1) How to reproduce if market is increasing or decreasing at certain point? (ex. see below picture)
![1.png 1.png](https://www.freemathhelp.com/forum/data/attachments/13/13934-c4ac034b20dae4c9091c28018154e136.jpg)
2) Does exist any formula how to reproduce index or something which would show how strongly market price is bouncing? it means if there are huge price spikes in short time then bouncing is big, if price spikes or not high or rare in time then bouncing is not high. (ex. see below pictures)
![2.png 2.png](https://www.freemathhelp.com/forum/data/attachments/13/13935-b018e996c4f2bda877bb21958bf90290.jpg)
![3.png 3.png](https://www.freemathhelp.com/forum/data/attachments/13/13936-f6869dc4f224904b227127344a23be6c.jpg)
Thanks for any help, any programming libraries or tools which would help to solve these problems are welcome too.
1) How to reproduce if market is increasing or decreasing at certain point? (ex. see below picture)
![1.png 1.png](https://www.freemathhelp.com/forum/data/attachments/13/13934-c4ac034b20dae4c9091c28018154e136.jpg)
2) Does exist any formula how to reproduce index or something which would show how strongly market price is bouncing? it means if there are huge price spikes in short time then bouncing is big, if price spikes or not high or rare in time then bouncing is not high. (ex. see below pictures)
![2.png 2.png](https://www.freemathhelp.com/forum/data/attachments/13/13935-b018e996c4f2bda877bb21958bf90290.jpg)
![3.png 3.png](https://www.freemathhelp.com/forum/data/attachments/13/13936-f6869dc4f224904b227127344a23be6c.jpg)
Thanks for any help, any programming libraries or tools which would help to solve these problems are welcome too.