Use the following </> button to post your program.
int limit; if (prev_calculated == 0) limit = InpMAPeriod; else limit = prev_calculated - 1;
Naguisa Unada:
Thanks, but this code doesn't work, I still need to refresh the indicator to get latest, do I missing some code?
Use the following </> button to post your program.
I thought it's for MT5 because this is not MT4 section.
Post questions about MT4 in https://www.mql5.com/en/forum/mql4
int i,limit; if(prev_calculated==0) limit=rates_total-InpMAPeriod; else limit=rates_total-prev_calculated; for(i=limit; i>=0; i--) {
UpCloseBuffer[i]=(high[i]+ma)*ma /10000;
The number is too small
UpCloseBuffer[i]=(high[i]+ma)*ma;

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
Can someone tell me or help me edit this, how to make the indicator synchronize with current chart? Thanks
//+------------------------------------------------------------------+