- Search Metals Mine
- 4 Results
- dragonregure replied Feb 14, 2020
You misunderstood, i want to close buy and sell orders at the same time if the target profit reached, not pending orders, and pending orders doesn't affect orders profit. Sorry my explanation isn't enough in the previous post. But i already found ...
I will code your EAs and Indicators for no charge
- dragonregure replied Feb 14, 2020
You are right! The problem is the loop order, because if using the ic++ logic, it will make OrdersTotal messed up. I try opposite loop and it worked! Thanks a lot! I will close this thread asap.
Please help with custom function code
- dragonregure replied Feb 11, 2020
You mean like this right? This is my first version of my code, originally it looks like this: void close(bool accumulation, double target){ if (accumulation == true){ double orderProfit = 0; for (int i=0; i<OrdersTotal(); i++){ if (OrderSelect(i, ...
Please help with custom function code
- dragonregure replied Feb 7, 2020
Hi, i don't really need you to make me an indicator or EA, just tell me where my code is wrong. So i want make a function to close all open orders(regardless of order type) after reach target profit, but somehow, the EA only close buy or only close ...
I will code your EAs and Indicators for no charge
- Posts by Trader Search: 'dragonregure'