After order closed by reaching target price or stoploss, I want to print this amount to a log

 

In my EA, I would like to print to my log (I have this already setup), the closed order if the stoploss or target price are reached. How would I do this?


thanks

 
Craig Snively: How would I do this?

Learn to code. Find the latest closed order, select it, get whatever you want, print it. What's the problem.

Help you with what? You haven't stated a problem, you stated a want. Show us your attempt (using the CODE button) and state the nature of your problem.
          No free help 2017.04.21

Or pay someone. Top of every page is the link Freelance.
          Hiring to write script - General - MQL5 programming forum 2018.05.12

 

Thanks for the help William. Got it.

William Roeder:

Learn to code. Find the latest closed order, select it, get whatever you want, print it. What's the problem.

Help you with what? You haven't stated a problem, you stated a want. Show us your attempt (using the CODE button) and state the nature of your problem.
          No free help 2017.04.21

Or pay someone. Top of every page is the link Freelance.
          Hiring to write script - General - MQL5 programming forum 2018.05.12

Reason: