Indicator or EA ?

Hello,

is there any way to find if a given function from an external mqh is called from a custom indicator or from an expert advisor?


Thanks in advance!

Ex Ovo Omnia:
Check MQL_PROGRAM_TYPE.

Thank you!