Distinguishe ECN from MM broker

 

Hi all,

If you want your ea to automatically determine the broker type (ECN or MM), is it save to say that if
stoplevel or freezelevel returned by marketinfo is 0, you're dealing with an ECN broker and therefore
you have to add your stop loss and and take profit with ordermodify?


thanks!

 
This is what I was doing before . . but I changed my code to have an extern bool to set if the Broker is and ECN Broker . . that is the safest option.
 
RaptorUK:
This is what I was doing before . . but I changed my code to have an extern bool to set if the Broker is and ECN Broker . . that is the safest option.

Hi Raptor,

Did you change to an external bool more as a precaution or did you really experience problems with the stoplevel/freezelevel method?

 
It was a precaution.
Reason: