Forum

How to close all orders when price reaches take profit?

Hi all! I've been trying to close all orders with my custom function CloseAllOrders which works fine but cant seem to be triggered with the condition if(Bid==OrderTakeProfit()) as seen below in my code. What seems to be the problem? hoping for your help on this guys. Thanks. for

Hedging EA needs fix. Help!

Hi guys! so i've been trying to create a Hedging EA but I can't find the reason why I can't send a pending order once the price reaches the stoploss of the other open order. Hope you guys can help! A lot of thanks! here is the code. if (OpenOrdersThisPair( Symbol ())>= 2 ) { for