Use currency pairs to define trading hours.
-
I want to assign different trading hours for different groups of currency pairs (#9). I know if I create a condition for each of the single currency pairs (#28) in different branches and then connect them to a modify variable block, where I store the time ,I will be able to do it. But doing it by symbol group would be more efficient. Can I use a "no trade" block to group symbols ? or create an condition using a random indicator that always passes as true and use the symbol field to group symbols in that block?
-
@gonza said in Use currency pairs to define trading hours.:
different groups of currency pairs
What do you exactly mean by 'different groups of currency pairs'? Have you created different group numbers in you project?
-
@l-andorrà . Thanks for your time. I grouped currency pairs (offline, not in my project) based on first session open, last session close time. So after doing that I ended up with 9 groups of different currency pairs. So basically, what I want my EA to do is to read the market symbol, check to which currency group it belongs, then assign the trading open and close time. I know I can create a condition for every single currency pair and connect it to a modify variable block to assign the time. But wondering if there is a block in the system I can use to group, say 3 currency pairs and then connect it to a modify variable block , rather than 3 condition blocks connected to a modify variable...
-
@gonza You can try this for all symbols including EUR. Didn't test it, though.

-
@l-andorrà Thanks, I saw another option to use base and quote currencies as parameters, might be useful as well. But in the end still need to create to many blocks. I think I will adjust it on the settings for each chart. Thanks again.