Adding SWAP to TP/SL?
-
Hi all,
Is there any way to add the swap value to the SL / TP?
Thank you in advance.
-
@jferreira you can get the swap amount from market properties
-
@roar Thank you. I already search for it but i can’t find. Probably with another name?

-
@jferreira oh, it seems the swaps arent available as pre-made options. However you can use the actual mql5 function that is behind the other options as well:
SymbolInfoDouble(Symbol(), SYMBOL_SWAP_LONG)
^ Select "Value" -> "Numeric" and then just paste that code snippet in there.
https://www.mql5.com/en/docs/constants/environment_state/marketinfoconstants#enum_symbol_info_double