Download MetaTrader 5

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

To add comments, please log in or register
tvh
40
tvh  
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.
Simon Gniadkowski
Moderator
18058
Simon Gniadkowski  
tvh168:
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.
Orders are not timeframe related . . . find the Order, OrderClose() it, job done.
tvh
40
tvh  
RaptorUK:
Orders are not timeframe related . . . find the Order, OrderClose() it, job done.


Can you explain more? Thank you.
whroeder1
17122
whroeder1  
What part of "find the Order" is unclear? What part of "close it" is unclear? You have only three choices: Search for it, learn to code it, or pay someone. We're not going to code it FOR you. We are willing to HELP you when you post your attempt (using SRC) and the nature of your problem.
Simon Gniadkowski
Moderator
18058
Simon Gniadkowski  
tvh168:

Can you explain more? Thank you.
Can you explain exactly what you need more help with ?
tvh
40
tvh  
As i said. Ex I put the order on H4 and it will auto close on H1 when if = true
tvh
40
tvh  
i know how to do it. Thank you
To add comments, please log in or register