Best time of day to trade testing
-
Hi all,
I want to set a test up where an existing EA i currently use which does all its work from a "once per bar" block will be changed for "once per day" at a particular hour.I know I can create a string variable to change the time before starting optimisation, but that doesn't allow a range to step through and find the optimum time.
How can I make a variable for the "once per day" block which will give a list of all 24 hours that are selectable when starting the EA or optimisation?
Many thanks in advance for any advice or help.
-
@philmorgan0382 I think if you use int instead of string then 1-24 will give you the hour, not sure if you can use double to use minutes, but worth a try.
-
Yes thats it! Fantastic!
optimization with a range from 0 to 96 shows results for all from 0 to 23, the rest were no trades made. thankyou!! -
@philmorgan0382 Your welcome
-
Hello, I’m curious about this. Is there a way to that the EA shows you the optimum hour of profits in back test? And if it available and it has 2 o 3 periods, can I select 3 different periods for the EA? Example, 2 am to 5am, 7am to 11am and 3pm to 7pm. Thanks