MQL4 - code to check for break in brokers signal

 

Hi

Does anybody have a good way of checking for a break in signal from your broker? I'm sure I saw something like this in Jim Dandy's tutorial videos, but can't find it in my notes.

D

 
  1. Why did you post your MT4 question in the Root / MT5 General section instead of the MQL4 section, (bottom of the Root page?)
              General rules and best pratices of the Forum. - General - MQL5 programming forum
    Next time post in the correct place. The moderators will likely move this thread there soon.

  2. When OnTick/OnCalculate is called, you know you have a connection. No need to check.

  3. There is IsConnected, but it takes ½ minute before the network times out, therefor it is also useless because you must be connected to have it called. It is only useful after a failed OrderSend. I never use it; I just log the error and return. On the next tick, it's connected and I retest/retry the operation.