Issue with ModifyStopLossPips() method
Issue with ModifyStopLossPips() method
13 Aug 2019, 01:50
Hi all,
Would much appreciate clarification on position.ModifyStopLossPips()
Question:
When modifying stop loss second or n times after deal already placed does ModifyStopLossPips takes into account original price when position entered market or it uses current (bid/ask) to determine stop loss?
Example (for simplicy numbers rounded so we can divide by 10):
Place order SELL: EURUSD @ 1.10000 stop loss 1 pips stop loss price (1.10010)
Price moves to 1.10005 and we update stop loss with ModifyStopLossPips(20)
Will ModifyStopLossPips take original price into calculation (1.10000) or last/current price 1.10005?
Any help would be much appreciated.
Thanks
Replies
timofeynz
13 Aug 2019, 09:15
RE:
Panagiotis Charalampous said:
Hi timofeynz,
Thanks for posting in our forum. Stop losses are always set based on the position's entry price.
Best Regards,
Panagiotis
Thanks Panagiotis,
However I find from my tests that it's not the case, can you please confirm that after adjusting stop loss and passing parameter as pips it would use original price of the position.
Thanks
@timofeynz
PanagiotisCharalampous
13 Aug 2019, 09:28
Hi timofeynz,
Can you please provide us with such a case?
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
13 Aug 2019, 09:00
Hi timofeynz,
Thanks for posting in our forum. Stop losses are always set based on the position's entry price.
Best Regards,
Panagiotis
@PanagiotisCharalampous