Forum

Trading different chart windows with one ea

Hi, I´m assuming this question came a lot but I couldnt find anythin helpful.. Currently My ea works like: if(OrdersTotal()==0){ placing order ... etc .. } The problem with the code above is, that it stops trading as soon as one order is open regardless of the conditions to open a new order. So it

Differntiate between Market and Pending Orders

Hey, I´m just programming my ea and have some questions, I want to differentiate between pending and open orders, Since I´m working with pending stopporders and my ea is placing them he should keep looking look for signals as long as there are only pending orders open, but if there´s already one

Close orders after time

Hey, I´ve been searching quite some time now but didnt find anything, so I hope anyone can help me here I want to close an order after 24 Hours, but it should be at the end of the current bar(Dailyperiod), not at the start of the new one, in case of gaps. And I dont want to close all open trades