Set Fixed SL and TP

CARPARK

Trader
Mar 29, 2021
5
0
7
44
Hi there, I'm trying to apply the following script available in the software library to DAX30 CFD (have also tried with regular fx pair) but it fails with the error:

2021.09.15 10:18:40.714 SetFixedSLandTP_v1-0 GER30.cash,M1: Order failed to update with error - 1

I was wondering if anyone was familiar with this script could tell me what I am doing wrong?

Settings attached
 

Attachments

Enivid

Administrator
Staff member
Nov 30, 2008
15,991
803
144
Odessa
www.earnforex.com
Hi there, I'm trying to apply the following script available in the software library to DAX30 CFD (have also tried with regular fx pair) but it fails with the error:

2021.09.15 10:18:40.714 SetFixedSLandTP_v1-0 GER30.cash,M1: Order failed to update with error - 1

I was wondering if anyone was familiar with this script could tell me what I am doing wrong?

Settings attached
Error 1 means ERR_NO_RESULT (No error returned, but the result is unknown). I only get this error when I am trying to set the same SL and TP as the order already has set on it. Try modifying the SL and TP to some different values.
 

CARPARK

Trader
Mar 29, 2021
5
0
7
44
Yeah I've used it on a symbol I frequently use different EAs on.

I'll try some other stuff and see if I can get anywhere with it...