Create comment based on the defined constant
-
Hello good people

I have set the constant for the comment and put it on the buy now block and it works as it supposed to.


But I would like to have the comment based on the time constant (or any other constants)

so every time I changed the time constant or the other constants, it will show in the comment section.Is that possible?
-
@andrewfrank Is hard to see in your pictures. type needs to be ENUM_TIMEFRAMES and value needs to be capital at start Period_H4.
-
@jstap
Did you mean like this?
-
@andrewfrank Yes and this will only work in the timeframes box.
-
@jstap ok. so whenever I changed the timeframe from the other constant, the comment will be changed accordingly?
-
@andrewfrank Yes when you put this in a constant then in the inputs you should get a dropdown list Where you can select, as long as constant is in each required block then all will change from inputs.
-
@jstap oh okay. Thanks for the explanation, but I think I wasn't clear explaining my question..Sorry
What I would like to do, is it possible to add comment constant where it will automatically take the value from the other constant (for instance, time constant) without giving any input to the comment constant.
Lets say, I have time constant as below:

How do I set my comment constant, where it will take the value of time constant automatically, whenever I change the Timeframe_1?
Because what you mentioned above, in order to get the comment I need to select the period everytime I set the EA, right?

-
@andrewfrank This is a good question and I'm not sure, if you use a variable rather than a constant then a condition/modify block can change, not sure if it will work though, the value would be text.
-
@jstap ok. If I put the Timeframe_1 constant in the comment, so whenever I change the Timeframe_1, the comment would also change..
would this be possible?

-
@jstap it did work. I tried it on my demo
-
@andrewfrank
