Only one trade with same base or quote
-
Dear FXDreema developers,
I have a question about the following. For example I have a trade on EURUSD with the base being EUR and the Quote being USD. I now trade on two currencies EUR and USD. Now I want the bot to skip any EUR or USD pair to prevent having more exposure on 1 currency pair. Any one has an idea how to do this?
Thank you in advance!

-
@dutchyynl In market properties you have base/quote, when placing a trade save this into a variable, check with a condition if different before placing a trade.
-
Thank you sir! @jstap
Okay, but what if there are multiple trades running(not on same symbol) Do you need multiple variables to save the base/quote too?
-
@dutchyynl Most likely if you want the EA to control trades other than the chart you are on.
-
@dutchyynl said in Only one trade with same base or quote:
ve a question about the following. For example I have a trade on EURUSD with the base being EUR and the Quote being USD. I now trade on two currencies EUR and USD. Now I want the bot to skip any EUR or USD pair to prevent having more exposure on 1 currency pair. Any one has an idea how to do this?
Thank you in advance!
I have an idea but didn't test it. Instead of using variable which is limited to the same currency pair loaded in the same Chart, try to use Global Variable (terminate variable) to modify global variable for all charts.