Discussion of article "MQL5: Create Your Own Indicator" - page 3

 

Could you please tell me what is the deeper meaning of using indicator buffers for intermediate calculations ? What does it give ?

 
VictorD:

Could you please tell me what is the deeper meaning of using indicator buffers for intermediate calculations ? What does it give ?

You can't see them.
 

TheXpert:
Их не видно.

I don't get it, why don't you use regular arrays, are they visible ?

 

Ah, I finally got it. I wish everything would reindex itself !

 

Is it possible to access these indicator buffers for intermediate calculations from the Expert Advisor? I.e. they are like regular indicator buffers, but they are not displayed?

 
Hexen:

Can these indicator buffers be accessed from the EA for intermediate calculations?

Why don't you try
 
Rashid Umarov:
You try it
You can, transmits, miracles.
 

In the final section of the OnCalculate function, the "for" loop command has been translated from English and reads "for", as shown below. I suggest fixing it to avoid errors with beginners in programming.

//--- agora calcular os valores do indicador
   para(int i=r+s-1;i<rates_total;i++)
     {
      TSIBuffer[i]=100*EMA2_MTMBuffer[i]/EMA2_AbsMTMBuffer[i];
     }
 
Very good everybody, could you tell me if it is possible to build an indicator like the"equidistant channel" but instead of with two lines, do it with three lines? thank you very much.
 
Léo Muniz:

In the final section of the OnCalculate function, the "for" loop command has been translated from English and reads "for", as shown below. I suggest fixing it to avoid errors with beginners in programming.

Great observation, Leo =)