I want to know what base currency of the Symbol.
I need this because depending of the base currency I will use a Risk % per trade. My broker have stocks from UK, US and EUR. Each one of this is in different currency and my money function always is considering my account currency (USD), so is not exactly the % I want to risk.
Is there a function to do this? I have look but not found anything. Please help.
const string base = StringSubstr(symbol,0,3);
const string quote = StringSubstr(symbol,3);
This might work:
I don't know what is wrong. My broker have FX, futures and Stocks from UK, EUR and US. And I want a risk per trade calculation for everything. This is the part of the code that is giving me trouble. "PorcentajeRiesgo" variable is a input of course.