Insert multiple constants in a box
-
Hallo,
I need to know how to insert various text constants into one box.
Specifically, I need to insert the symbols (eurusd, eurgbp etc.) but these need to be constants and not simply a written text.
thank you -
@artistikidea Constants are what you type in the inputs, what exactly do you mean? If you want to type in inputs create as a string.
-
So,
It is necessary that the symbols are controlled by constants in order to be able to adapt to each broker, sometimes in fact some brokers differ in the nomenclature of the symbol.Now, in some boxes I have to insert more symbols, depending on the case I can go up to 8-9 (I do not explain the reasons for not dwelling on it).
The problem is that the boxes are many, the symbols are many, and if I simply entered EURUSD, EURGBP, etc ... and the broker had to have other nomenclatures, a hundred of them would have to be changed manually, it would be exhausting (the bot would not be used only by me) .
With the textual constants, it is sufficient to change the text (with which the symbol is shown), and it would automatically update all the boxes.The problem is that in these boxes, in which I want to insert more symbols in the form of constants, it is not possible to insert more than one constant (as well as - another thing that would be useful - it does not allow you to insert more variables)
Forgive my English. I'm italian.
-
@artistikidea I am not sure what you mean exactly, the EA will work on any symbol regardless on how it's spelt, if you are struggling to get EA to work somehow put a shared link here and ask the question, this way blocks can be looked inside to help with problems.
-
https://fxdreema.com/shared/p90VlMaM
Open the block. In the box "symbol" there is a constant.
I want to put more than one (regardless of whether it's a symbol or whatever, or whether it's constants or variables).
In the end, regardless of the reasons you want to do it, it's conceptually simple. The question is whether it can be done or not. Thanks. -
@artistikidea In that box is the symbol name that will be checked for a position (trade), if you want to work on another symbol from a different one you add what is needed here, make the variable/constant a string, if you want to add multiple symbols here leave the box blank, use the set market for next blocks so all blocks beneath are set to chosen market.
-
I didn't make myself clear.
What you say I already know.
Please, let me explain.
But since there are about ... 20 similar boxes, maybe more, it is necessary (according to the broker, and my bots are used by many people) in some cases to modify something like a hundred parameters.
Imagine rewriting 100 times:
EURUSD.r
GBPUSD.r
etc ...
I can't know who will be using this robot, I don't know what broker they will use, and I can't ask people to change 93 parameters, or 87 or, in short, crazy numbers. If only I used it, then the problem would not arise.
Now, with a constant, just do it 9 times (because this bot works on 9 markets), and automatically all the boxes will be changed.
That's all.
We try not to hypothesize different needs or what I have or do not have in mind. The question is more easily conceivable like this: regardless, I repeat regardless (in Italian "a prescindere") of any other question and motivation, I would kindly like to know, simply, if it is possible to insert more than one variable / constant into a box. End. The request is simple, what I want to do with this box is beyond the question. -
Hmm... @artistikidea , are you trying to write many symbols in a single constant? If that's the case, i guess you just need to separate each symbol with comma, that's all.
-
No, I have already created a constant for each symbol, for a total of 9 constants.
I need to enter several constants in the box. -
So has anyone ever needed, for example, to have to put several variables (or constants) in a single box, separated by a comma?
-
@artistikidea That constant will show in inputs, every block that needs the same symbol to work put the constant, when you rename the input constant all blocks will change, if you need more than 1 symbol you have to use the set market for next blocks, by using commas here you will create a conflict, each block activates the symbol that's in it, so to change this needs to do each block then loop to the next symbol.
-
@artistikidea ok now i understand, few constants in a single input box. Sorry i don't know if it's possible in fxdreema.
-
@jstap I know all of these things. This is not the focus.
The focus is: more constants in a box. Can it be? The rest, really, I don't understand why to discuss it. Can it be done or can't it be done? -
@biztet Ok, Thank you
-
@artistikidea AFAIK the only way to do it is via custom code.
-
Thanks.
I think I'm not capable of it