Current Profile

 

Hi All,

I pride myself on finding answers to my problems as I learn MQL5. I have however, been stumped by this one.  I just need the name of the currently active profile. A search returns Current.Profile() but I cant find any reference to it nor does it work in the editor.

The reason I am looking for this is so I can open different files dependant on Profile.

tia

 

As far as I know, there is no programmatic way in MQL, to determine the current profile. It may be possible using the Windows API, but I don't believe it is possible in pure MQL.

In fact, I don't think one can even determine what template was applied, if any.

 
Fernando Carreiro #:

As far as I know, there is no programmatic way in MQL, to determine the current profile. It may be possible using the Windows API, but I don't believe it is possible in pure MQL.

In fact, I don't think one can even determine what template was applied, if any.

Thank you. I have put a text box on the main chart so I can check.