pipspiper:
Hello guys,
i managed to add a MA to an indicator, using the MAOnBuffer,
What is MAOnBuffer?
Keith Watford:
What is MAOnBuffer?
#include <MovingAverages.mqh>
switch(*MA MODE*)
{
case MODE_EMA:
ExponentialMAOnBuffer(rates_total,prev_calculated,begin,*MA period*,*indicator buffer*,*MA buffer*);
break;
case MODE_LWMA:
LinearWeightedMAOnBuffer(rates_total,prev_calculated,begin,*MA period*,*indicator buffer*,*MA buffer*);
break;
case MODE_SMA:
SimpleMAOnBuffer(rates_total,prev_calculated,begin,*MA period*,*indicator buffer*,*MA buffer*);
break;
case MODE_SMMA:
SmoothedMAOnBuffer(rates_total,prev_calculated,begin,*MA period*,*indicator buffer*,*MA buffer*);
break;
}
Any ideas guys ???
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
Hello guys,
i managed to add a MA to an indicator, using the MAOnBuffer,
now i need to create a MACD of the same buffer, so i want to have an MA and a MACD on the same indicator
i tried the iMACD, but i'm getting weird results, i'm not sure if iMACD can be applied to indictor buffers
anyone can give a hint or help with this issue ??
Thanks!