magicjakub: Can you give me an idea how to write a function which closes a transaction and open opposite one if TP hadn't been taken for 2 bars period or help me with writing something like this.
- How do you think you do it?
- Find the open order.
- Get the open time.
- Use iBarShift to find how many bars ago.
- If more than two, close the trade and open the other.
- Help you with what?
You haven't stated a problem, you stated a want.
You have only four choices:- Search for it,
- Beg at Will code your trading systems for free - Free Expert Advisors - Trading Systems - MQL5 programming forum, or Coding help - MQL4 and MetaTrader 4 - MQL4 programming forum, or Need help with coding - General - MQL5 programming forum, or Free MQL4 To MQL5 Converter - General - MQL5 programming forum, or Requests & Ideas (MQL5 only!).
- learn to code it. If you don't learn MQL4/5, there is no common language for us to communicate. If we tell you what you need, you can't code it. If we give you the code, you don't know how to integrate it into yours.
- or pay (Freelance) someone to code it.
No free help
urgent help.
Thanks, that's all i wanted to :) Thanks for an idea :)
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hello,
Can you give me an idea how to write a function which closes a transaction and open opposite one if TP hadn't been taken for 2 bars period or help me with writing something like this.
Thank you in advance for any kind of help :)
Jakub