How extract data such as "used margin" of previously taken trades in mt4?

hey there pipers

is there any way to extract “used margin” data of previously taken trades in mt4 ?

account history extraction doesn’t show such info , any suggestions ?

Hi, you can do it manually based on MAE / MFE.

i did a research on MAE (maximum Adverse Excursion ) and MFE (maximum Forward Excursion) but it seems like extracting these info will require coding , and i think MAE or MFE wont contain USED MARGIN info , is that right ?

As I mentioned before, use MAE / MFE to calculate margin manually, use excel to do it