Watch how to download trading robots for free
Interesting script?
So post a link to it -
let others appraise it
You liked the script? Try it in the MetaTrader 5 terminal
Scripts

History to CSV - script for MetaTrader 4

TAT DAT NGUYEN
Published by:
Tat Dat Nguyen
Views:
859
Rating:
votes: 11
Published:
2021.10.18 15:20
for(int i=0; i<hst; i++)
   {  if(OrderSelect(i,SELECT_BY_POS,MODE_HISTORY)==true)
      {  //if(OrderType()>=2 && OrderType()!=6) continue;
         //if(OrderSymbol()!="GBPUSD") continue;
         FileWrite(handle,
                   OrderTicket(),TimeToStr(OrderOpenTime(),TIME_DATE|TIME_MINUTES),
                   OrderType(),
                   OrderLots(),
                   OrderSymbol(),
                   OrderOpenPrice(),
                   OrderStopLoss(),
                   OrderTakeProfit(),
                   TimeToStr(OrderCloseTime(),TIME_DATE|TIME_MINUTES),
                   OrderClosePrice(),
                   OrderCommission(),
                   OrderSwap(),
                   OrderProfit(),
                   OrderMagicNumber(),
                   OrderComment());
      }
   }


Muti-Open Grids From HLine Muti-Open Grids From HLine

Mở đồng thời nhiều lệnh cùng lúc

Mother Bar Mother Bar

Nến mẹ là InsideBar, Price Action

Chart Format Chart Format

Định dạng chart

CLOSE ALL BY ORDERTYPE CLOSE ALL BY ORDERTYPE

Close All Order