Forum

Please help to open order on current timeframe and close order on another timeframe

Hi, as the title. Can anyone help me? Ex: I have order on H4 and i want to close it (use OrderClose()) on H1. Im thinking but have no idea to code. Please help

Please help to detect highest or lowest of bars

As the title, can anyone help me? I tried to code, but it not work. :(

Help to auto close order when new bar opens

Hi, I want to close old order when new bar is opened. I tried to code it, but it doesn't work. Please tell me what its wrong. Thank you. double last_bar; int init() { //---- last_bar = Open[ 1 ]; //---- return ( 0 ); } //------------------------------------------------------------------ int

Please help to auto close order

Hi, please help me. This is what i want: I open order on bar. After 3 new bars, this order will auto close

How to check the first order and orther orders in one candle

The first sorry for my English. This is what i want: When the EA is running, in the one candle, I want the first order has Stop loss and Take profit = Stop loss, but the orther orders in this candle i want they have Take profit = Stop loss * 2. Thank all :)