Download MetaTrader 5

Discussion of article "MQL5: Create Your Own Indicator"

To add comments, please log in or register
MetaQuotes Software Corp.
Moderator
182373
MetaQuotes Software Corp. 2010.01.06 16:12 

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 2010.01.09 20:57  

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 2010.05.12 18:15  

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
1633
okwh 2010.08.22 07:43  

   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
11988
Rashid Umarov 2010.08.22 10:06  
To add comments, please log in or register