How do I optimize taking the hours of the day in consideration?
-
I'm trying to do this but with "string" data type I can't.
Also, when I put "int" data type the optimization doesn't work. -
@pyrziel Time optimization is very tricky. You can do it by using UNIX time, but you will need to transform those values into components if you want to visualize it easily. That is not a trivial thing to do. Do you really need it?
-
@l-andorrà Thanks for the answer.
Well, since I consider hours of the day critical to a bot's performance I'd like to have it. It would accelerate my optimizations.
I already tried what the user Aizen recommended in a post "Time optimization", but it didn't work to me. -
@pyrziel But have you ever used UNIX time? Have you ever seen how it shows? It is a number like 1636554284, for example. This was a real example (UNIX time when I type this reply right now). You will need to translate that number into component if you want to understand it-
-
@l-andorrà I understand that UNIX system takes the seconds occurred since January 1st, 1970 at UTC.
Is there a way to ask the program to run a backtest changing the hour on each pass using UNIX? -
@pyrziel Honestly that I don't know. What I know is that every tick has its time arrival in UNIX time but not sure a backtest can run that way. We should need an MT4 expert here more than an fxDreema one, sorry.
-
@l-andorrà I understand. Thank you very much!