Hi folks,
One of forex-tsd forum members asked me for a price of code to check if last [closed] trade was a win or lose, That's why I've wrote this script (you can copy-paste the function you want to the expert advisor you are wiring).
The script has 5 self-explained functions:
This is the function my friend has asked for, it returns the last closed trade profit or loss.
This function returns the biggest profit of the closed trades.
This function returns the biggest loss of the closed trades.
This function returns the number of profit trades of the closed trades.
This function returns the number of loss trades of the closed trades.