Hello Mr. Pip.
Like everyone else, I appreciate you helping out. Could I ask you to make one slight change. Can you add a user input option to use either the trendmagic indicator or the supertrend indicator in this post http://www.forexfactory.com/showpost.php?p=3747621
The reason I ask is the trendmagic indicator repaints and the supertrend indicator does not.
Regards,
Jeff
Like everyone else, I appreciate you helping out. Could I ask you to make one slight change. Can you add a user input option to use either the trendmagic indicator or the supertrend indicator in this post http://www.forexfactory.com/showpost.php?p=3747621
The reason I ask is the trendmagic indicator repaints and the supertrend indicator does not.
Regards,
Jeff
DislikedGood bug catch on order closing loop.
It should be i >= 0 in two spots, when calculating number of open orders and when closing orders. That is why there were 2 trades left open.
Test this version.
I also modified to close trades from 0 to OrdersTotal by always closing trade 0. Hope that fixes the issue of closing first order through last order as required by new rules.
Don,
I prefer not to use global variables for keeping track of open orders because of possible bugs when updating the global.
RobertIgnored