gippo37It / Publications
Forum
Positions for loop order.
Hi I'd need to check the profit/loos of several positions, I'm using a for loop from PositionsTotal()-1 to 0. How the positions have been sorted? If the position[PositionsTotal()-1] the oldest? Here is the code: int total = PositionsTotal (); uint trade_error_code; double profit;
_point and take profit
Hi everyone, I'm new in MQL5/Metatrader, I'm wiritng my first EA and I'm a bit confused with Takeprofit calculation. I want to place a buy order with 60pips take profit target, looking at some example and documentation I thought the code below was correct, but it creates orders with take profit of 6