How? By learning to code in MQL, either by reading the documentation or by reading a book on the subject. Others prefer to follow video tutorials.
There are also plenty of examples in the CodeBase of different EAs which will serve to help you to learn and for you to see how others approach the problem.
So, put in the effort and do your research. It will be a long road ahead. Alternatively, if you don't want that, then just hire someone to code it for you.
How? By learning to code in MQL, either by reading the documentation or by reading a book on the subject. Others prefer to follow video tutorials.
There are also plenty of examples in the CodeBase of different EAs which will serve to help you to learn and for you to see how others approach the problem.
So, put in the effort and do your research. It will be a long road ahead. Alternatively, if you don't want that, then just hire someone to code it for you.
You must be joking! If that is the only piece of code missing, then I shudder in fear of what the rest of the code looks like!
Show your attempted code, or else we can not help you much!
- When candle opens, save the opening price to a variable.
- Calculate the upper offset from the opening price and save it to a new variable.
- On every tick, check if the current price has moved above the upper offset price saved in the variable.
- When that happens, place the market buy order.
- Clear the condition so as not to place new orders on the following ticks.
- When candle opens, save the opening price to a variable.
- Calculate the upper offset from the opening price and save it to a new variable.
- On every tick, check if the current price has moved above the upper offset price saved in the variable.
- When that happens, place the market buy order.
- Clear the condition so as not to place new orders on the following ticks.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use