Newbie Coding Question: Get deal results New comment Georg Frieske 2013.10.20 19:03 Hi,I would like to know, if and how it is possible to obtain trade results into an EAs code.What I want to do is to have a counter that adds up when the last trade closed in loss.Exemplary:i=1 if (lasttradeclosednegative) i=i+1;E.g., after 5 losing trades i would be at 6.The parameter i will then be called by another function.Can you help a me? :)Kind regards How can I get the last trades results into an expert last bid or last ask What is normal broker delay between last tick and Market Close Alain Verleyen 2013.10.20 19:10 #1 You can use OnTrade() or OnTradeTransaction() for that, or check the history of deals. New comment
Hi,
I would like to know, if and how it is possible to obtain trade results into an EAs code.
What I want to do is to have a counter that adds up when the last trade closed in loss.
Exemplary:
E.g., after 5 losing trades i would be at 6.
The parameter i will then be called by another function.
Can you help a me? :)
Kind regards