Mida
Mida copied to clipboard
Error setStopLoss
Hello, how are you? I have error in my code, when I try set stop loss, follow error below:

you can help me?
Thanks!
Hi! What version of Mida are you using? You are using Mida with cTrader? In that case what version of the plugin are you using?

Yes, I'm using mida with Ctrader!

Thank you for letting me know! I'm investigating. In the meanwhile you can try using changeProtection() instead of setStopLoss() and let me know if the issue persists? Thank you!
- Example
const stop = 1.01045;
await position.changeProtection({ stopLoss: stop, });
Vasile, I use "changeProtection", I work to me!!! Fix error it.
Thanks for helping!!!