PyTrader-python-mt4-mt5-trading-api-connector-drag-n-drop icon indicating copy to clipboard operation
PyTrader-python-mt4-mt5-trading-api-connector-drag-n-drop copied to clipboard

setting trailing stop

Open bhralzz opened this issue 3 years ago • 3 comments

Hi, is it possible to set trailing stop while sending order via mt5? if no, is there another mechanism doing that automatically using Metatrader itself? thanks

bhralzz avatar Jan 19 '22 17:01 bhralzz

Hi,

You can set the SL as a trailing, but it means you have to regularly retrieve the open positions and check distance market price and SL.

This is the way you can do. But it needs some code. I think I have somewhere the code for this.

But there is now not an auto trailing stop. I'm not sure if it will be possible to do this by code, only once. I will check if possible.

BR

Branly76 avatar Jan 19 '22 17:01 Branly76

Thanks for your kindly reply, waiting to hear from you.

bhralzz avatar Jan 19 '22 17:01 bhralzz

Hi,

You can set the SL as a trailing, but it means you have to regularly retrieve the open positions and check distance market price and SL.

This is the way you can do. But it needs some code. I think I have somewhere the code for this.

But there is now not an auto trailing stop. I'm not sure if it will be possible to do this by code, only once. I will check if possible.

BR

Did you checked that? trailing stop code?

bhralzz avatar Jan 29 '22 17:01 bhralzz