How to make MT4 auto refresh - page 6

Mohammad Hasan Mosaddeqi
302
Mohammad Hasan Mosaddeqi  
Mladen Rakic:

Yes, it is normal

When you post a bars refresh message to a chart it writes that in a log file. Why is it writing that (which is no error at all) and it is not logging errors - we should ask the mq

dear Mladen,

I attach this indicator to chart on VPS that VPS operating system is windows server 2016,

and this error appeared:

any solution?

William Roeder
24607
William Roeder  
Mohammad Hasan Mosaddeqi: I attach this indicator to chart on VPS that VPS operating system is windows server 2016,
  1. What ever DLL your code is calling does not exist on your VPS.
  2. You can't run DLLs on Metaquote's VPS. Are you allowed to on your VPS?
Mohammad Hasan Mosaddeqi
302
Mohammad Hasan Mosaddeqi  
William Roeder:
  1. What ever DLL your code is calling does not exist on your VPS.
  2. You can't run DLLs on Metaquote's VPS. Are you allowed to on your VPS?

1.These DLLs:

2.How can run DLL on VPS?

Occultic Nine
9
Occultic Nine  

I fixed the same problem in FAMA indicator by changing a line in strat() function

after variables were declared there was a loop for calculation --> 

int    counted_bars=IndicatorCounted();
for(cb=Bars-counted_bars-Range-1;cb>=0;cb--)

I just changed it into -->

 for(cb=Bars-Range-1;cb>=0;cb--)

So i guess the problem in general with these indicators is just the index of calculation.

William Roeder
24607
William Roeder  
  1. See How to do your lookbacks correctly #9 - #14 & #19.

  2. You should stop using the old event handlers and IndicatorCounted() and start using new event handlers.
              Event Handling Functions - MQL4 Reference
              How to do your lookbacks correctly - MQL4 programming forum #9-14 & #19 2016.05.11