How to do I trade the AUDUSD with the USDCAD as a filter
-
Hi guys.
I am trying to build a bot on MT5 that will only take trades on an asset when conditions in another asset are met. As an example, lets say I only wanted to buy the AUDUSD when the USDCAD was also going down. I have tried to do this 1000 ways to no avail. Can anyone share some light on this? I have attached my very basic attempt.
Many thanks
-
You need to set the current markets for the blocks so it loads within the tester for the pairs you want to use. In each condition, specify which pair the condition is for, and also specify the pair you want to buy/sell. Here is a basic example. I'm assuming that the 3 bar conditions are for AUDUSD and then your checking USDCAD before buying AUDUSD. If not, then you can change things accordingly. The set market for blocks also needs to be placed correctly in the tree or it won't work. This code here seemed to load both pairs and took trades.
-
Wow thank you so much. I really appreciate your help