Can not set timer

 

I have an simple EA "test" that  when I run it it , calls "FFC" indicator , but I see (Can not set timer)

It happens when VPS is a little busy !

Is there solve for it ?

Files:
test.mq4  3 kb
ffc.mq4  71 kb
 
  1. a=iCustom(
       Symbol(),            // symbol 
          0,               // timeframe 
       "FFC_urlupdate_20210324 without numbers",           // path/name of the custom indicator compiled program 
         true,            // true/false: Active chart only 
        ⋮

    Make sure the filename matches. "ffc_1" is not "FFC_urlupdate_20210324 without numbers".

  2. Set timer sometimes fails. Check your return codes, and report your errors, loop until it succeeds.
              "cannot set timer(1)" problem in calling iCustom() function in EA - EA Forum - MQL4 programming forum #6 2021.03.17

 

Thanks for reply

1.Is true and no problem

2.FFC is working ok , but EA return "can not settimet()

I tried fix it by using loop before creating this topic but It no was success.

Can you do it if it does not waste your time ?
 
Javad Nejati: 2.FFC is working ok , but EA return "can not settimet()

I tried fix it by using loop before creating this topic but It no was success.

Your posted code has no such call.

 
William Roeder:

Your posted code has no such call.

Sorry ? I dont understand you!

EA (test) has icustom(FFC,...) .

This cusome makes this error "can not set timer"

 

Javad Nejati: , but EA return "can not settimet()

William Roeder: Your posted code has no such call.

Javad Nejati: Sorry ? I dont understand you!


There is no such SetTimer call in your posted EA code.

 
William Roeder:

There is no such SetTimer call in your posted EA code.

No , not in EA , It is in indicator

When I run EA  , EA calls indicator, I get this error !!

How to call indicators in MQL5
How to call indicators in MQL5
  • www.mql5.com
With new version of MQL programming language available not only the approach of dealing with indicators have changed, but there are also new ways of how to create indicators. Furthermore, you have additional flexibility working with indicator's buffers - now you can specify the desired direction of indexing and get exactly as many indicator's values as you want. This article explains the basic methods of calling indicators and retrieving data from the indicator's buffers.
 
William Roeder:

There is no such SetTimer call in your posted EA code.

Do you have any idea ?

I tried so much to using loop or ontick in indicatror

 
Comments that do not relate to this topic, have been moved to "Off Topic Posts".
Reason: