How to get ATR multiple as an adjustable input filed?
-
I have a SL and TP set to a multiple of the ATR period 14.. I cannot seem to figure out how to adjust these values as an input field. I have to go into Met editor and adjust the code manually. If I try to add the multiple to the constant I get an error because it does not like the * (multiplier). Any help is appreciated. Thanks.
-
in your constants window, try changing the data type to STRING instead of DOUBLE
-
Thanks for your response. I just tried it and that did not work. The input is editable but seems to have no effect.
-
Can you please share the link to the project?
-
Yes here it is https://fxdreema.com/shared/JmpTrzivc
-

-

-
you can't use the * in a constant. You need it to just be a number and then put the * in the block that's using it

-
@Castlemaine Thank for your response. I tried doing exactly what you have here and I still get the same 'Illegal operation use' errors. I'm pretty sure I matched exactly what you have here. Does it work for you when you try to compile to .ex4? Try that and see if you don't get any errors.

-
Yeah you're right, not working for me either! Sorry, i'm sure someone else will have the answer!
-
The * symbols needs to be out of the parenthesis.
-
@l-andorrà Thank you that is what I needed to do to get it to work.
-
You're welcome.