Invalid SL/TP

 

just place valid sl/tp (more than 10 pips; 4 digit pips).

by the way, the brokers may established the different limitation so it is up to the broker sorry.

 
TMakhoali:
I want to open and order on MT4 but it says invalid sl/tp..what's causing this

Your SL/TP values are totally invalid or were caught in the "Broker Buffer ZOne" where Stops are too tight to be put... Check with your Broker, or search the documentation for Freeze Level...

;)

 

MODE_STOPLEVEL

14

Stop level in points

 

A zero value of MODE_STOPLEVEL means either absence of any restrictions on the minimal distance for Stop Loss/Take Profit or the fact that a trade server utilizes some external mechanisms for dynamic level control, which cannot be translated in the client terminal. In the second case, GetLastError() can return error 130, because MODE_STOPLEVEL is actually "floating" here.


Also want to check Freeze Level as @Minions Labs mentions.

Reason: