How to save MARGIN LEVEL to a file

 

Please, how to change this line in the way to write a MARGIN LEVEL % into a file MARGIN.TXT?

if(!FileWriter("SEURUSD.TXT", (string)(MarketInfo("EURUSD",MODE_SPREAD)/mult) )) return(false);        ===>   if(!FileWriter("MARGINL.TXT", ???...................... return(false);

 
if we use a stop loss minimum and take profit long then we save over account and aover account money management account
 

I have it


 if(!FileWriter("MAR_LVL.TXT", (string)(AccountInfoDouble(ACCOUNT_MARGIN_LEVEL)) )) return(false);