PositionModify , change TP but leaving SL the same
do i have to get the SL value and place it again if i want to change only TP value ?
cause placing a 0 delete my SL value .
thanks !
Yes, for the PositionModify method function, you have to supply both the Stop-Loss and Take-Profit prices, even if you only want to change one of them.
Please refer to the documentation ...
Parameters
sl
[in] The new price by which the Stop Loss will trigger (or the previous value, if the change is not necessary).
tp
[in] The new price by which the Take Profit will trigger (or the previous value, if the change is not necessary).
- www.mql5.com
do i have to get the SL value and place it again if i want to change only TP value ?
cause placing a 0 delete my SL value .
thanks !