First, thanks for the article.
Though please correct if I am wrong, I could see only 7 indicator buffers being created, but there are 8 declared
Did you mis-calculate?
No as the counting start at 0 (=1st): #7 means the 8th indicator.
Hi great paper,
why do you fill in smperiod 1 in the bottom 2 functions and not 0.
if(ExponentialMAOnBuffer(rates_total,prev_calculated,0,smperiod1,momBuff,momSmBuff1)==0) return 0; if(ExponentialMAOnBuffer(rates_total,prev_calculated,0,smperiod1,absMomBuff,absMomSmBuff1)==0) return 0; if(ExponentialMAOnBuffer(rates_total,prev_calculated,smperiod1,smperiod2,momSmBuff1,momSmBuff2)==0) return 0; if(ExponentialMAOnBuffer(rates_total,prev_calculated,smperiod1,smperiod2,absMomSmBuff1,absMomSmBuff2)==0) return 0;
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
New article How to create a custom True Strength Index indicator using MQL5 has been published:
Here is a new article about how to create a custom indicator. This time we will work with the True Strength Index (TSI) and will create an Expert Advisor based on it.
As we can see as we have the four inputs of the MA type, price type, the fast MA period, and the slow MA period. After setting our preferences and pressing OK we can find that the EA is attached to the chart and its signals will be the same as the following:
In case of buy signal
As we can see in the previous chart we have a buy signal as a comment in the top left corner as per our strategy conditions the same as the following:
Author: Mohamed Abdelmaaboud