Look for last lost closed orders
cashmaker:
Hi,
I need my EA finds all the losing orders closed in the last 30 minutes, and returns me the total lost (in cash), so it can place an order to hedge that amount.
Example:
It runs the search routine and in the last 30 minutes there are found 3 sell orders which were losers.
Order A lost $100
Order B lost $150
Order C lost $250
So, it must returns me a total lost of $500, to it places a new order according some other parameters to hedge that $500 lost.
There's anyone who can place here the piece of code to make this kind of search? Thank you.
You will find people here that will do that for you: MT4 & MT5 coding
Hi,
I need my EA finds all the losing orders closed in the last 30 minutes, and returns me the total lost (in cash), so it can place an order to hedge that amount.
Example:
It runs the search routine and in the last 30 minutes there are found 3 sell orders which were losers.
Order A lost $100
Order B lost $150
Order C lost $250
So, it must returns me a total lost of $500, to it places a new order according some other parameters to hedge that $500 lost.
There's anyone who can place here the piece of code to make this kind of search? Thank you.
Best Regards