Reply

stop loss can’t modified (Cannot set order SL/PT. Error: 4756) [Invalid stops]

3 replies

ftkensin

Customer, bbp_participant, 17 replies.

Visit profile

2 years ago #276902

I  just slightly changed the algowizard example “Trail Stop by Lowest” then it went wrong.

When Ask-orderopenprice >= convertpipstpprice(100)

then  move SL to the price level “orderopenprice +convertpipstpprice(50).

The result shows only some work well but others don’t and show” Cannot set order SL/PT. Error: 4756″ “Invalid stops” .

Please help me check this how to fix it? Thanks.

 

The following log shows it can’t move SL to a new level (1.36449=>1.36949):

PP 0 22:24:50.726 Core 1 2021.02.02 18:30:00 —VERBOSE— 2021.02.02 18:30 The order has been successfully placed with Ticket#:4!!
IM 0 22:24:50.726 Core 1 2021.02.05 16:30:00 —VERBOSE— 2021.02.05 16:30 Moving SL 2 BE for order with ticket: 4 to :1.36449000
QO 0 22:24:50.726 Core 1 2021.02.05 16:30:00 position modified [#4 buy 0.1 GBPUSD 1.36449 sl: 1.36449 tp: 1.41449]
NL 0 22:24:50.726 Core 1 2021.02.08 17:30:00 position modified [#4 buy 0.1 GBPUSD 1.36449 sl: 1.36949 tp: 1.41449]
GK 2 22:24:50.726 Core 1 2021.02.09 00:01:30 failed modify #4 buy 0.1 GBPUSD sl: 1.36949, tp: 1.41449 -> sl: 1.36949, tp: 1.41449 [Invalid stops]
CO 0 22:24:50.726 Core 1 2021.02.09 00:01:30 Cannot set order SL/PT. Error: 4756
NI 0 22:24:50.726 Core 1 2021.02.09 00:01:30 —VERBOSE— 2021.02.09 00:01 Closing order with ticket: 4
HE 0 22:24:50.726 Core 1 2021.02.09 00:01:30 market sell 0.1 GBPUSD, close #4 (1.37306 / 1.37454 / 1.37306)
HI 0 22:24:50.726 Core 1 2021.02.09 00:01:30 deal #5 sell 0.1 GBPUSD at 1.37306 done (based on order #5)
ES 0 22:24:50.726 Core 1 2021.02.09 00:01:30 deal performed [#5 sell 0.1 GBPUSD at 1.37306]
CQ 0 22:24:50.726 Core 1 2021.02.09 00:01:30 order performed sell 0.1 at 1.37306 [#5 sell 0.1 GBPUSD at 1.37306]

0

ftkensin

Customer, bbp_participant, 17 replies.

Visit profile

2 years ago #276908

I found the example “Trail Stop by Lowest” also encounter “Error:4756” when open duplicated trades. IF I just want to open duplicated trades ,how should I make the right settings?

0

tomas262

Administrator, sq-ultimate, 2 replies.

Visit profile

2 years ago #276915

Hello, just sent you an email you can check ..

0

ftkensin

Customer, bbp_participant, 17 replies.

Visit profile

2 years ago #276933

May I ask how to make multiple entries and each having independent own trailing SL right?

If I just turn on duplicate trade without change the other settings , orders would have problems such as use the wrong open price to calculate SL ,when it happened and show [Invalid stops] message the orders would be forced to close at the same time.

Thanks!

0

Viewing 3 replies - 1 through 3 (of 3 total)