fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search

    How to do I trade the AUDUSD with the USDCAD as a filter

    Questions & Answers
    2
    3
    153
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      Cameron101 last edited by Cameron101

      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

      https://fxdreema.com/shared/BnngeT43e

      1 Reply Last reply Reply Quote 0
      • willramsey
        willramsey last edited by

        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.

        https://fxdreema.com/shared/O6CkX98rb

        1 Reply Last reply Reply Quote 0
        • C
          Cameron101 last edited by

          Wow thank you so much. I really appreciate your help

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post

          Online Users

          C
          H

          6
          Online

          146.8k
          Users

          22.4k
          Topics

          122.6k
          Posts

          Powered by NodeBB Forums | Contributors