Invalid SL or TP

 

2016.10.04 17:59:52.325 '70294368': order sell 8.00 #Euro50 opening at 3010.40 sl: 3026.37 tp: 2994.43 failed [Invalid S/L or T/P]

 

I get the above error, the stops level is 30, so I do not understand why error occurs and how to resolve?

 

The issue does not occur in strategy tester only when I run my expert on my demo account when the market is live

 
paristrading:

2016.10.04 17:59:52.325 '70294368': order sell 8.00 #Euro50 opening at 3010.40 sl: 3026.37 tp: 2994.43 failed [Invalid S/L or T/P]

 

I get the above error, the stops level is 30, so I do not understand why error occurs and how to resolve?

 

The issue does not occur in strategy tester only when I run my expert on my demo account when the market is live


Share the code then we can see where the problem is
 
Muhammad Mudasir:

Share the code then we can see where the problem is

error states; Failed to Sell: 130

I'm using FX Pro Quant so not actually writing the code 

 
paristrading:

error states; Failed to Sell: 130

I'm using FX Pro Quant so not actually writing the code 

You have to round up price for SL and TP according to the tick size, and check min stops distance. Regards.
 
Jose Francisco Casado Fernandez:
You have to round up price for SL and TP according to the tick size, and check min stops distance. Regards.

Thanks Jose, I will give rounding up the SL and TP a go.

 

Cheers 

Reason: