//+------------------------------------------------------------------+ //| essai.mq4 | //| LM | //| https://www.mql5.com | //+------------------------------------------------------------------+ #property copyright "LM" #property link "https://www.mql5.com" #property version "1.00" #property strict #include "..\include\calculs_LM.mq4"; void OnStart() { //--- // Sleep(1900); // Ajuter Bid Ask Jours Boucle string rep = "d:\\_mt4_data\\" ; // ne fonctionne pas string symb; string ligne; int i,j,k; int t[9]={PERIOD_M1,PERIOD_M5,PERIOD_M15,PERIOD_M30,PERIOD_H1,PERIOD_H4,PERIOD_D1,PERIOD_W1,PERIOD_MN1}; string per[9]={"_M1","_M5","_M15","_M30","_H1","_H4","_D1","_W1","_MN1"}; Comment("Exporte Marketinfo en cours d'execution"); //string fichier =symb+per[k]+".txt"; ResetLastError(); int file_handle=FileOpen("Market_info-r marges2.csv",FILE_READ|FILE_WRITE|FILE_TXT," "); if(file_handle!=INVALID_HANDLE) { FileWrite(file_handle,"Ecart_type 15'*20;Marge*minilot;Prix mini tick;Ratio gain;Ecart;Ecart levier % /heure;Levier;Symbol;Bid;Ask;Point/Frs;Digits;Spread/point;TickSize/point;TickValue/Frs;LotSize/Frs;LotStep/lot;MinLot/lot;MAXLOT;STARTING;EXPIRATION;TRADEALLOWED;SWAPTYPE;PROFITCALCMODE;MARGINCALCMODE;MARGININIT;MARGINMAINTENANCE;MARGINHEDGED;MARGINREQUIRED;FREEZELEVEL;CLOSEBY_ALLOWED;Levier;"); for(j=0;j