MAD1995 / Publications
Forum
How to get the latest open position?
Can anyone share to me how to get the price of latest open position if I have 2 or more open positions. double OpenTrade = PositionGetDouble( POSITION_PRICE_OPEN ); I guess this code does not get the latest open position I opened
how to count buy and sell positions at the same time?
This code of mine was not counting only buy positions it count also sell position but I want it to count it separately to have a value of how many buy and sell position I have. Please help me find the problem. #include <Trade\Trade.mqh> CTrade trade; void OnTick () { Comment ( "BUY = "
FXDREEMA CODES NOT WORKING ON MT5,,,IT would be a great help if anyone can troubleshoot it.
please see attached file, thank you
Please help me in creating EA.
I want to create an EA with simple buy and sell stop order, the problem is I want to constantly placing a pending order (buy/sell stop depending on the first executed pending order) every time an order is place with a condition of deleting all positions and orders if take profit or stop loss had