How to define a portion of a variable name from user input as a constant
-
Hi,
Is there a way to define a portion of a variable name using a user-defined string (as an input constant)?For instance, if I have a variable named "Lotsize_XX" in my algorithm, and I want to run the EA for XAUUSD.
I want to be able to define a string constant "XAUUSD" which will then change my variable's name from "Lotsize_XX" to "Lotsize_XAUUSD"Is there a way to do this in fxdreema?
Thanks
-
@nmbruno easiest way to comment is in the bottom of each buy and sell block.
-
@nmbruno Interesting question. Not sure if that is possible in fxDreema without custom code. Any programmer here to let us know?
-
@nmbruno In this link you can see how to put the current symbol into a variable, and how to take the first 3 and last 3 and put them into separate variables, using these principles you should be able to do all you require, it doesn't whether the starting point is a constant or variable just make sure their named differently. Hope this helps
-
@jstap Thanks, I believe this will help me.
-
@jstap Interesting. I think this is the proof that only custom code can do that.
-
@l-andorrà Yes I try to stay away from custom but some times it is the only way.
-
@jstap Agreed. And that's a tragedy for all of un non-programmers.
