Experts: Get Nth Active Trade from the end in MT5

 

Get Nth Active Trade from the end in MT5:

This EA will scan all the open trades and then print the nth trade from the end

Author: Biswarup Banerjee

 
Hello,

Can you make the code always take a specific position. Example: you have 8 open positions and always take the data on 2 open positions
 
Marin Zlatev #:
Hello,

Can you make the code always take a specific position. Example: you have 8 open positions and always take the data on 2 open positions

in this example I have done that only , nth means any number it can be 2,3, anything

Reason: