@l-andorrà sorry, I should have left some more detailed explanation with my scribble.
- Is the 'conversion_pair' variable of a string type? What is its default value?
Yes, it's a string. It has empty default value - the value will anyway get replaced here:

- What if the account is in USD and not in EUR? Some symbols are 'USD'+conversion_pair and others conversion_pair+'USD'. Should I modify the formula text on a case by case basis?
The "lots" you buy or sell are always in the base currency. So the first part of the formula calculates the SL in terms of that base currency, whatever it is.

Now that we have solved the SL in the base currency, we have to set a multiplier to get the correct EUR value (or dollar, or whatever you like)

This is done by getting the current exchange rate of the base currency of our trade and EUR (or dollar, or whatever you like).
I find the exchange rate by building the symbol in the string:

Note that I select the "Quote currency" instead of "Base currency", because we are sort of reversing the effect.
If you need the SL in dollars instead of euros, just replace EUR with USD in the string. Just those 3 letters, nothing else. This should work in all cases, no matter if its USDxxx or xxxUSD, the EA will always know the base currency.
BUT you need to have that EURxxx currency in your symbols list, otherwise you must take a detour:
If EURJPY is missing from your mt4, use USDJPY * EURUSD to get the value.
@trader-philipps I couldn't get proper results from your example, maybe I tested it wrong 
Here's my version in mql4: https://fxdreema.com/shared/VO1OeuqKb
And a backtest result on AUDJPY, sl and tp set to 50 euros (note the average profit/loss differs a bit from 50, because the EA doesn't take trading costs into account.
