EarnForex / PositionSizer

Calculate your position size based on the risk and account size and execute your trades with this free MetaTrader expert advisor.
https://www.earnforex.com/metatrader-expert-advisors/Position-Sizer/
Apache License 2.0
416 stars 162 forks source link

SL line stuck and not moving with current price #67

Closed domdonit13 closed 1 year ago

domdonit13 commented 1 year ago

Hi, I set a stop loss of 100 points but sometimes the SL line gets stuck and this value changes to a smaller stop loss. I've already set the Max/Min Entry SL distance and the Default stop-loss value, in points to the 100 points that I want but the same keeps happening, any ideia?

EarnForex commented 1 year ago

Hello!

So, you are running the PS EA (by the way, is it on MT4 or on MT5?) with SLDistanceInPoints set to true and DefaultSL set to 100. And normally, the SL remains equal 100, but sometimes it changes its value, right? Does that happen with the Instant order type or with the Pending order type? Could this be happening because you accidentally move the SL line on the chart? Does clicking the SL button reset it to the default value (100)?

domdonit13 commented 1 year ago

Hello, My platform is MT5.

Yes, SLDistanceInPoints is set to true and DefaultSL is set to 100. That's right, the stop loss changes sometimes and then it returns to 100 again, then changes again and so on (btw about the TP it is always fixed and I'm not having problem with it). As I noticed, its happening only with Instant orders. The line is always deselected and when a click on SL, points: it resets to 100 again.

EarnForex commented 1 year ago

Yeah, now I've been able to reproduce this bug in MT5. I will fix it in the next version. Thank you for reporting!

EarnForex commented 1 year ago

Should be fixed in 3.04. Thank you!