I'm currently attempting to make this code name my file after the date of the first opened order. I have tried using Order_Select to grab the first order by ticket, but I cannot get it to return the date of the order.
Could anybody please explain how I would do this? Thanks in advance.
Edit:
I've change "trades.csv" to
but how do I make it return the value of the first ticket's time? Right now it just seems to return an arbitrary time.
Inserted Code
handle=FileOpen("trades.csv",FILE_CSV|FILE_WRITE,",");
Could anybody please explain how I would do this? Thanks in advance.
Edit:
I've change "trades.csv" to
Inserted Code
(TimeToStr(OrderOpenTime())