![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
<Deleted>
<Post only in English please>
<Deleted>
<Post only in English please>
please repeat write
Here is the utility advisor: iMACD Difference Close All
The utility advisor looks for the moment when the main line of the iMACD (Moving Average Convergence / Divergence, MACD) indicator is above the signal line by the specified value ' MACD Difference -> Close All '. As soon as such a moment is found for the current symbol, all positions are closed.I want additional features to my robot. The code I want is only about the macd indicator. The code I want is: When it is in the long position (histogram value-macd value) if it is greater than 0.00100, the position is closed.
I want additional features to my robot. The code I want is only about the macd indicator. The code I want is: When it is in the long position (histogram value-macd value) if it is greater than 0.00100, the position is closed.
I did just that.
I did just that.
How can I add these codes to my robot?
How can I add these codes to my robot?
Using CopyPaste.
Using CopyPaste.
It gave 2 errors and 1 warning. I just copied and pasted. look at the screen shot please
It gave 2 errors and 1 warning. I just copied and pasted. look at the screen shot please
You have a description of the errors: You copied very straightforwardly - you need to copy the contents of OnInit and OnTick when copying.
You have a description of the errors: You copied very straightforwardly - you need to copy the contents of OnInit and OnTick when copying.
I was able to do the q error I can't do the other one. If I send the robot to you, can you edit it?
I was able to do the q error I can't do the other one. If I send the robot to you, can you edit it?
Lay out your robot right here.