Discussion of article "MQL5: Create Your Own Indicator"

To add comments, please log in or register
MetaQuotes
Moderator
215047
MetaQuotes  

New article MQL5: Create Your Own Indicator is published:

By describing creation of True Strength Index, the author shows how to write indicators in MQL5.

The second version of True Strength Index indicator looks better

Author: MetaQuotes

Wolfgang
83
Wolfgang  

Dear Mr Umarov!

Professional developers please understand  that most  traders are not professional coders and find it very hard to get things done.

With MQL5 it's even harder. 

The trader who wants to learn to work with MT5 needs articles like this to understand how to do it. 

Please write more articel like this. Thank's a lot for htis one. 

regards

walb 

OldZ
53
OldZ  

Very good! Thank you !

Teach our newbies step by step.

I have a question,

is it necessary or more proper to add the below code ?

ArraySetAsSeries(price,true);

 

okwh
1644
okwh  

   for(int i=1;i<rates_total;i++)
     {
      MTMBuffer[i]=price[i]-price[i-1];
      AbsMTMBuffer[i]=fabs(MTMBuffer[i]);
     }

 

Why use [i-1] to calculate [i] and start i=1 ?  no [0] ?

  MTMBuffer[i]=price[i]-price[i-1];

Rashid Umarov
Admin
16612
Rashid Umarov  
To add comments, please log in or register