Bug with Adjust on Condition Block when using Variable
-
Hi,
On Local Version.
Please find attached picture showing issue - when I use a variable for the adjust the output is not merging correctly with
your toDigits code.If you could fix that would be great.
Thanks
-
Interesting. Well, I now have brand new code for the whole website and my focus is in it, so will probably not fix that problem (also because I don't want to break something). Otherewise the problem comes from the "pips" part in "trade_sl_pips". For the "Adjust" field this keyword "pips" is special, so if you write 20pips it will convert it into something else containing toDigits... and the rest you can see. But maybe something is confused, wrong regular expression probably.
My suggestion is to change variables or to write both of them in one place.
-
Thanks
Perhaps you can have the best of both scenarios e.g
If condition adjust value contains variable name - replace variable name with ToDigits(variable_value_here,CurrentSymbol());
Else
Check & replace like you currently do