histogram difference with macd

 
I want macd to close all positions if the histogram difference is 0.00050. The code should be very simple. I will integrate it into my robot. I have shown it with the attached picture. The only condition is that if the difference between the macd line and the histogram is 0.00050, all positions are closed.
Files:
Adspz.png  24 kb
 
demirfurkan01:
I want macd to close all positions if the histogram difference is 0.00050. The code should be very simple. I will integrate it into my robot. I have shown it with the attached picture. The only condition is that if the difference between the macd line and the histogram is 0.00050, all positions are closed.
macd indicators add to ea
macd indicators add to ea
macd indicators add to ea
  • 2021.06.06
  • www.mql5.com
Hello, there are 2 lines of the macd indicator in the picture. If the difference between these 2 lines is more than 0...
 
Vladimir Karputov : macd göstergeleri ona eklenecek

I saw it. long and not useful. i need practice code

 
demirfurkan01 :

I saw it. long and not useful. i need practice code

Those who do not want to study can contact the Freelance service.

Trading applications for MetaTrader 5 to order
Trading applications for MetaTrader 5 to order
  • 2021.07.26
  • www.mql5.com
The largest freelance service with MQL5 application developers
 
Vladimir Karputov :

Eğitim almak istemeyenler Freelance hizmeti ile ilgilenenler .

vladimir your codes are very detailed. The code I want is very simple:

  If signal-macd>0.0050 close all positions

 
demirfurkan01: vladimir your codes are very detailed. The code I want is very simple:  If signal-macd>0.0050 close all positions
That is not possible in just a few lines lines. If you truely understood the complexity involved you would know this!

Forum on trading, automated trading systems and testing trading strategies

Is it easy (or difficult) to …?

Fernando Carreiro, 2017.08.30 21:43

This post could be considered a “rant”, but I would like to take the opportunity to relay to those that ask similar questions, the difficulty involved in answering such a simple query – “Is it is easy (or difficult) to …?”

  • “Easy” would imply that anyone can do it, but that is obviously not the case.
  • “Easy” depends on the ability, skill, knowledge and experience of the one that is tasked to do it.
  • That ability, skill, knowledge and experience took time to establish and it had a cost, and if you sum it all up, it can be quite high.
  • So, “easy” means that if you don’t know how to do it yourself (or not able to do it yourself), then you will have to “compensate” someone else to do it for you.
  • You will be “compensating” him or her for all the effort and cost that went into acquiring the ability, skill, knowledge and experience and NOT for the actual time spent carrying out the task.

So, even if the task is just changing one line of code; remember that you are “compensating” the person for his knowledge and skills and not for just one line of code.

The same applies to those that request for something “simple” to be done for free. It is NEVER “simple”. If it were that “simple” then you would be able to do it yourself.

So, respect the hard work and effort the coder went through to gain his skills and knowledge and “compensate” him/her for it. Wanting it for free is being totally disrespectful!

PS! In conclusion, learn to use the Freelance Jobs section and recognise and respect those more skilled, knowledgeable and experienced than you!

EDIT: Please note that I use the term "compensation" and not "payment", because there are many ways to "compensate" for work done. Sometimes a coder will be "compensated" with gained or shared knowledge instead of money, or by an exchange of ideas or other things. It is not always about the money but it is about the "compensation"!