Constant or variable in More Settings/Adjust
-
Hi,
Instead of using "1" inside the yellow rectangle of the image, I would like to use a constant or variable. I tried "-variablepips" but it didn't work.
Thanks.
-
you need define your variable into Variables, let say: Variable1
after this you type into adjust field: +Variable1 (not with right click, but normal with keyboard)
but dont forget, your variable must have right value, like Variable1=0.0010 for 10pips, you can not define Variable1=10pips (I am no sure, but I think this way it is not working) ...
or if you will have variable in pips, lets say Variable1=10, than try type into adjust field this:
+(toDigits(Variable1,Symbol()))
not sure if all I typed is working, I have not testing it
-
Well, the word "pips" is a keyword defined by me, but it only works after a numeric value. If you have "variablepips", the whole thing is considered as a variable name. After all, you may really want to name some variable like that, for example "SLpips" or "TPpips". In the same time I'm not sure whether something like (variable)pips would work. I guess no, but I can't tell for sure.
I don't really recommend using this function toDigits(), because I may decide to change it in future. It can stay the same for years as well, I can't give any guarantee

-
Thank you, but it didn't work. I decided to change it manually on the mq4 script.