How to save MARGIN LEVEL to a file

To add comments, please log in or register
Juraj Ondrusek
397
Juraj Ondrusek  

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);

mohsankhan
5
mohsankhan  
if we use a stop loss minimum and take profit long then we save over account and aover account money management account
Juraj Ondrusek
397
Juraj Ondrusek  

I have it


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

To add comments, please log in or register