Forum

How to find the index of open order

Hi, i need to find the index of an open order relative to the open of any other candle afterwards and then displaying it in metatrader using comment. I have tried using orderselect and iBarshift and have only been successful using print but cannot get comment to display the results, please any help

How do i open another trade on another day if the previous days trade is open

Please, I have an EA written which opens one trade per day ( I use OrdersTotal() <1 to make it so), but I want it to open another trade whenever it enters another day when it sees a trade advantage. Any suggestion will be appreciated