for(int a=200;a>0;a--) ExtMapBuffer2[a]=iMAOnArray(ExtMapBuffer1,0,MAPeriod,0,MODE_SMA,0);
maybe you mean
for(int a=200;a>0;a--) ExtMapBuffer2[a]=iMAOnArray(ExtMapBuffer1,0,MAPeriod,0,MODE_SMA,a);
and the first buffer should be filled by at least a+MAPeriod
Keith Watford:
ahaha...thanks Keith! what a dumb error! thank you!
maybe you mean
and the first buffer should be filled by at least a+MAPeriod

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
Hi all,
I am trying to create a simple indicator that tracks the movements of the account equity and provides 2 values:
Buffer 0=account equity (taken from another indicator with iCustom function)
Buffer 1= simple moving average of the account equity
For Buffer 0 everything is fine, I cross checked with the original indicator.
For Buffer 1 there is no way to get correct values...I get an extremely high value on the average, that has no sense.
can you please help me?
Thanks a lot
ciao