Second Screenshot: Contract Specifications for US100.cash

This provides detailed specifications for the US100.cash CFD contract:

| **Parameter**           | **Value**                     |
| ----------------------- | ----------------------------- |
| Spread                  | Floating                      |
| Digits                  | 2                             |
| Stops Level             | 0                             |
| Contract Size           | 1                             |
| Margin Currency         | USD                           |
| Profit Calculation Mode | CFD                           |
| Margin Calculation Mode | CFD-Leverage                  |
| Margin Hedge            | 1.00                          |
| Margin Percentage       | 200.0%                        |
| Trade                   | Full Access                   |
| Execution               | Market                        |
| GTC Mode                | Pendings are good till cancel |
| Minimal Volume          | 0.01                          |
| Maximal Volume          | 1000.00                       |
| Volume Step             | 0.01                          |
| Swap Type               | in points                     |
| Swap Long               | \-380.66                      |
| Swap Short              | \-15.77                       |
| 3-Days Swap             | Friday                        |

First Screenshot: Trade History and Positions

This screenshot displays active and closed trade orders for the US100.cash (Nasdaq 100 index CFD). Here are key details:

| Order     | Time                | Type                                                                                                   | Size | Symbol     | Price    | S/L | T/ P | Price    | Swap   | Profit |
| --------- | ------------------- | ------------------------------------------------------------------------------------------------------ | ---- | ---------- | -------- | --- | ---- | -------- | ------ | ------ |
| 127649141 | 2024.09.30 19:08:05 | buy                                                                                                    | 0.01 | US100.cash | 20027.75 | 0   | 0    | 20049.85 | \-0.04 | 0.22   |
| 127651294 | 2024.09.30 17:34:08 | buy                                                                                                    | 0.01 | US100.cash | 19992.65 | 0   | 0    | 20049.85 | \-0.04 | 0.57   |
| 127651989 | 2024.09.30 17:27:35 | buy                                                                                                    | 0.02 | US100.cash | 19947.65 | 0   | 0    | 20049.85 | \-0.08 | 2.04   |
| 127652503 | 2024.09.30 17:32:12 | buy                                                                                                    | 0.01 | US100.cash | 19963.15 | 0   | 0    | 20049.85 | \-0.04 | 0.87   |
| 127657739 | 2024.09.30 18:49:03 | buy                                                                                                    | 0.04 | US100.cash | 20011.95 | 0   | 0    | 20049.85 | \-0.15 | 1.52   |
| 127657816 | 2024.09.30 19:07:11 | buy                                                                                                    | 0.04 | US100.cash | 20018.55 | 0   | 0    | 20049.85 | \-0.15 | 1.25   |
| 127657830 | 2024.09.30 18:47:56 | buy                                                                                                    | 0.01 | US100.cash | 20005.75 | 0   | 0    | 20049.85 | \-0.04 | 0.44   |
| 127659973 | 2024.09.30 19:50:11 | buy                                                                                                    | 0.01 | US100.cash | 20018.05 | 0   | 0    | 20049.85 | \-0.04 | 0.32   |
| 127660002 | 2024.09.30 19:42:49 | buy                                                                                                    | 0.01 | US100.cash | 20004.45 | 0   | 0    | 20049.85 | \-0.04 | 0.45   |
| 127660045 | 2024.09.30 20:00:03 | buy                                                                                                    | 0.01 | US100.cash | 19997.05 | 0   | 0    | 20049.85 | \-0.04 | 0.53   |
| 127660162 | 2024.09.30 19:47:54 | buy                                                                                                    | 0.01 | US100.cash | 20008.85 | 0   | 0    | 20049.85 | \-0.04 | 0.41   |
| 127660984 | 2024.09.30 20:09:18 | buy                                                                                                    | 0.01 | US100.cash | 19983.75 | 0   | 0    | 20049.85 | \-0.04 | 0.66   |
| 127661048 | 2024.09.30 20:10:11 | buy                                                                                                    | 0.01 | US100.cash | 19978.25 | 0   | 0    | 20049.85 | \-0.04 | 0.72   |
| 127661297 | 2024.09.30 20:16:43 | buy                                                                                                    | 0.01 | US100.cash | 19966.75 | 0   | 0    | 20049.85 | \-0.04 | 0.83   |
| 127665595 | 2024.09.30 21:32:50 | buy                                                                                                    | 0.01 | US100.cash | 19875.45 | 0   | 0    | 20049.85 | \-0.04 | 1.74   |
| 127677672 | 2024.10.01 08:06:44 | buy                                                                                                    | 0.01 | US100.cash | 20040.35 | 0   | 0    | 20049.85 | 0      | 0.1    |
| 127677712 | 2024.10.01 08:40:09 | buy                                                                                                    | 0.01 | US100.cash | 20023.45 | 0   | 0    | 20049.85 | 0      | 0.26   |
| 127678600 | 2024.10.01 08:42:00 | buy                                                                                                    | 0.01 | US100.cash | 20027.25 | 0   | 0    | 20049.85 | 0      | 0.23   |
|           |                     | Balance: 99 968.88 USD Equity: 99 981.18 Margin: 99.99 Free margin: 99 868.89 Margin level: 99 995.13% |      |            |          |     |      |          |        | 12.3   |
| 127678639 | 2024.10.01 08:44:02 | sell stop                                                                                              | 0.25 | US100.cash | 19993    | 0   | 0    | 20049.85 | 0      | 0      |
----

im searching for a trading logic for a script for automatic risk management calculation in manual trading. i want to use hedging technique. above you have me a translation of my two screenshots of my currently open trades in my trading account incl. the Symbol Specifications from MT4. You see, that there are several smaller buy positions open with an overall lotsize of 0.25. this positions are hedged with a “bigger” stop order in reverse direction. first of all i want you to calculate the current rsik which my account is exposed to the market. in detail, in case the sell stop order is getting triggered, how much i would be in loss at this time (in currency)?