Communicating between in and out in deals in history
My suggestion is you create input(s) for trading hours.
Use that input(s) for optimization and find the best trading hours for your expert.
My suggestion is you create input(s) for trading hours.
Use that input(s) for optimization and find the best trading hours for your expert.
You agree to website policy and terms of use
Hi.
I have created an expert that makes many transactions daily. Now I want to improve its performance.
I want to write a script that calculates how much the profit would have been if that expert had not traded between 16:00 and 20:00 (Iranian local time).
Unfortunately, there is no command in the meta editor to check the positions, but I can achieve what I want by using the deals. I want the opening time of the deals and the amount of their profit, but inside the deals there is the opening time in the type (in) and their profit in the type (out).
Please show me a way that I can connect these two types of data together to do my calculations. What way do you suggest me? Or if you know a better way, please guide me.