I require a script or partial EA that copies MQL rates to two arrays buy array and sell array.
Buy Array must be ranked Lowest to highest.
Buy Array
| Index/Rank | PRICE | ORIGIONAL INDEX |
|---|---|---|
| 0 | 1.18000 | 2 |
| 1 | 1.18200 | 3 |
| 2 | 1.18300 | 1 |
| 3 | 1.18400 | 0 |
Sell Array must be ranked Highest to lowest
Sell Array
| Index/Rank | PRICE | ORIGIONAL INDEX |
|---|---|---|
| 0 | 1.18500 | 2 |
| 1 | 1.18400 | 3 |
| 2 | 1.18300 | 1 |
| 3 | 1.18200 | 0 |
I must also be provided with a method or a way of getting the buyarray or sellarray index/rank using the original index